Log in

View Full Version : MySQL Errors


pgowder
02-24-2004, 06:37 PM
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:

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/gathering/forumdisplay.php?s=&forumid=34
Referer: http://www.powwows.com/gathering/showthread.php?s=&postid=363631


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/gathering/attachment.php?postid=88010
Referer: http://www.powwows.com/gathering/showthread.php?threadid=6442&perpage=20&pagenumber=2


What could be causing these?? Anyone ever seen this??

Help!!!

Xenon
02-24-2004, 09:10 PM
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
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
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

pgowder
03-05-2004, 05:21 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

I did a comparison of a clean global and my global. The only difference is a hack to force style by usergroup. Which is something I really need.

Here's the hack:

https://vborg.vbsupport.ru/showthread.php?t=32857&page=1&pp=15

Can anyone help me figure this out?

pgowder
03-09-2004, 01:35 PM
Anyone have any ideas?

Xenon
03-09-2004, 05:28 PM
you may ask in the hack thread for support

pgowder
03-09-2004, 05:40 PM
I did, no response.