PDA

View Full Version : What's up with this?


Davey
08-28-2004, 12:49 AM
admin/sessions.php

"Fatal error: Call to a member function on a non-object in /content/StartupHostPlus/a/e/www.ae-hq.co.uk/web/kc/admin/sessions.php on line 80"

line 80:

if ($session=$DB_site->query_first("SELECT sessionhash,userid,host,useragent,styleid FROM session WHERE lastactivity>".($ourtimenow-$cookietimeout)." AND sessionhash='".addslashes($sessionhash)."' AND (host='".addslashes($REMOTE_ADDR)."' OR (althash='".addslashes($bbalthash)."' AND althash<>'')) AND useragent='".addslashes($HTTP_USER_AGENT)."'")) {

I recently downgraded to vB2 so I could use the rpg hack / store.

edit.- Oh forgot to say, it's not letting me logout. It's like sessions from hell, they just wont go away. It can't be cookies because I deleted them all but I'm *still* logged in. I'm not even using a session hash in the url when I visit my index.php. I just can't fathem it.

Xenon
08-28-2004, 03:30 PM
put a global $DB_site; BEFORE that line

Davey
08-29-2004, 09:00 AM
That didn't work it just shifted the error message down ~100 lines. Don't worry about it, thanks anyway, heh.

rake
08-30-2004, 09:44 AM
Use a fresh set of files and re-apply your mods to them.