vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL Errors (https://vborg.vbsupport.ru/showthread.php?t=61871)

pgowder 02-24-2004 06:37 PM

MySQL Errors
 
Not sure if this is the right thread--moderators please move if needed!

Several times a week I see my load spike for a few minutes and I get a flood of vBulletin error messages in my email. And by a flood, I mean 100-200 at a time. vBulletin generates 1 for everytime someone sees the error page, so I'm not sure if all of my users are seeing this, or if a bot is crawling a bad page???

Here is what they look like:

Quote:

Database error in vBulletin 2.2.8:

Invalid SQL: Select styleid, styleoverride from usergroup where usergroupid=
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

mysql error number: 1064

Date: Tuesday 24th of February 2004 03:08:11 PM
Script: http://www.powwows.com/gathering/gat...?s=&forumid=34
Referer: http://www.powwows.com/gathering/sho...&postid=363631
Quote:

Database error in vBulletin 2.2.8:

Invalid SQL: Select styleid, styleoverride from usergroup where usergroupid=
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

mysql error number: 1064

Date: Tuesday 24th of February 2004 03:07:45 PM
Script: http://www.powwows.com/gathering/gat...p?postid=88010
Referer: http://www.powwows.com/gathering/sho...0&pagenumber=2
What could be causing these?? Anyone ever seen this??

Help!!!

Xenon 02-24-2004 09:10 PM

Quote:

where usergroupid=
there is an ID missing.

you may have installed a hack incorrectly.

pgowder 02-25-2004 01:31 AM

What files should I start looking in?

pgowder 02-25-2004 02:14 PM

1 Attachment(s)
I did a search through my vBulletin files and here are the results I found where there is code for usergroupid=.

Do any of these look wrong?

pgowder 02-25-2004 02:20 PM

1 Attachment(s)
Here are two other shots of where I found the code.

Xenon 02-25-2004 08:26 PM

well it's a hack which seems to produce this, so upload unhacked files to avoid the error

pgowder 02-25-2004 10:56 PM

Ok, that sounds easy, but what file? I have multiple hacks installed. I can't just upload all new files--that would cause tones of errors in my templates.

So can anyone help me figure out which file it could be?

Xenon 02-27-2004 07:51 PM

as it shows up very often, it seems to be a glitch in global.php, also the fact, that different caller files are mentioned.

try to upload an unchanged global.php :)

btw. you should really upgrade to the newest vb2 version, as 228 has some problems

pgowder 02-27-2004 08:33 PM

Thanks, I'll try that.

pgowder 03-03-2004 01:17 AM

I just noticed something strange about these errors.

They point to files at /gathering/gathering/showthre....

My forum is /gathering/showthread.php

Where and why would it be getting the /gathering/gathering


All times are GMT. The time now is 04:34 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.01534 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete