vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Disable query/Fuction??? Mysql Errors (https://vborg.vbsupport.ru/showthread.php?t=216520)

stryka 06-19-2009 02:07 AM

Disable query/Fuction??? Mysql Errors
 
:confused:

What option disables the following query:

Quote:

SELECT COUNT(DISTINCT(userid)) AS count FROM vb_session WHERE vb_session.userid>0 AND vb_session.lastactivity>1245253343;
I implemented some memory configurations from EVA and ever since then i get tons of MYSQL memory errors relating to this query... and he hasn't come back to forum on vb.com so i need ot figure this out quick... i have faith in his configuration suggestions so something else muss be wrong

I currently disabled all of the "ACTIVE" member options that i can think of. Plus the vb_session table is not something that can be repaired... and it only have a few hundred records there currently

BUt its definetly related to the "Active Members Time Cut-Off" settings... cuz the timestamp is always a difference of 90mins in the query.... but I already zerioed that value out...

ANY HELP would be appreciated

Lynne 06-19-2009 02:38 AM

I did a search in the files for 'COUNT(DISTINCT(userid))' and came back with nothing. Then I tried a search on "vb_session.userid", which if it was in there, should have a result and I still got nothing. So, I'd guess that is from a modification.

stryka 06-19-2009 03:30 AM

Hmm... maybe no one ever had problems with it... but "session.lastactivity" should even exist...

i wonder where VB does the session queries...

i am really at a lost here...

Lynne 06-19-2009 03:45 AM

What I meant was, that query doesn't show up in any of the vbulletin files. Doing a search on "session.userid" should show me that query somewhere in a file, and it didn't. I get only 15 occurances of that 'word' in the files but none of them are for a query that looks anything like that. So, that query is not from a standard vbulletin file. So, I would guess that you added it from a modification yourself.


All times are GMT. The time now is 01:22 PM.

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.01108 seconds
  • Memory Usage 1,713KB
  • 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_quote_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