PDA

View Full Version : skip_config



nicola
05-18-2005, 04:44 AM
I know this has been touched upon before, but I'm getting nowhere. I have the couter set up on three different sites, all with the same host. I have managed to successfully (more or less) add it to the forum for each one. The only problem is, on ONE of them I keep getting the error:

Undefined index: skip_config
File: /usr/local/psa/home/vhosts/ratzrus.co.uk/subdomains/community/httpdocs/stats/classes/mysqldb.php
Line: 24

I tried adding the error reporting at the top, but it made no difference. And I don't think it would be that, anyway, if it works fine on the other two. All paths are correct, by the way. I even literally copied what I had from the other two and just changed the required variables (although thats more or less how I did it in the first place) and still no joy. Any ideas? My error log for the forum is now at over 300 pages, and I've only had the script on it a week...

Patrick
05-18-2005, 05:12 PM
It is caused by the error reporting level on the site, which is probably being set by the forum.

Try opening the classes\mysqldb.php file and:

Find:

if (!$DB['skip_config'])

and replace it with:

if (!isset($DB['skip_config']) || !$DB['skip_config'])

Reupload the file and the error should be gone.

nicola
05-19-2005, 01:49 AM
Aha! I think that may have done it :). I'll keep checking the error log today and make sure it doesn't show up. I just found it odd that one forum does it and the other two don't, when they are all the same forum. But if it works in this one, I may just add it to the others anyway, in case...

nicola
05-19-2005, 02:10 AM
Nope, didn't fix it :(. Now I am getting:

Undefined variable: visits
File: /usr/local/psa/home/vhosts/ratzrus.co.uk/subdomains/community/httpdocs/stats/classes/mysqldb.php
Line: 169

Undefined variable: hits
File: /usr/local/psa/home/vhosts/ratzrus.co.uk/subdomains/community/httpdocs/stats/classes/mysqldb.php
Line: 170