vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What's up with this? (https://vborg.vbsupport.ru/showthread.php?t=68795)

Davey 08-28-2004 12:49 AM

What's up with this?
 
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:

PHP Code:

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
Code:

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.


All times are GMT. The time now is 12:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00960 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete