Log in

View Full Version : database error


xixxon
03-25-2008, 10:28 PM
i got this db error message...someone please help me out

Invalid SQL:
SELECT * FROM user WHERE username='Fa'Sol';

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 'Sol'' at line 1
Error Number : 1064
Date : Tuesday, March 25th 2008 @ 04:24:41 PM
Script : http://xxxx/4room/showthread.php?t=1074&page=2
Referrer : http://xxxx/4room/showthread.php?t=1074
IP Address : 206.224.254.17
Username : xxxx
Classname : vB_Database
MySQL Version : 5.0.45-community

is it because the username have the (') thing ??

Jase2
03-25-2008, 10:31 PM
This is caused by a third party add on.

To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

[Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

Next, disable all plugins.

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem?

Regards Jason :)

Opserty
03-26-2008, 10:24 AM
Have you got modifications installed on your board? I recommend you disable them as soon as possible, one of them have a severe security exploit which could be harmful to you board. If you downloaded the modifications from here at vBulletin you should check the modification threads to see if security exploits have been found. (Normally those with exploits are either updated and/or placed in the Modification Graveyard here at vB.org)

I also recommend you create a back up of your database immediately if this exploit is used it is possible that you could lose your board. If all your modifications are secure (once you've checked them against the threads) PM a list of the ones you have installed.

xixxon
03-27-2008, 01:22 PM
its like 2 or 3 weeks i haven't install any modification...so do i have to disable each at a time and check? or just uninstalll all and reinstall again?

Marco van Herwaarden
03-27-2008, 01:29 PM
Reinstalling will not solve anything if you have a serious security issue with the modification!

My advice: Disable them 1 by 1 until this error goes away and once you have identified the problem modification remove it and don't install this again.

Dismounted
03-28-2008, 03:13 AM
And if it was downloaded on vBulletin.org, report it. :)

xixxon
03-31-2008, 01:33 AM
thanks for helping...i fixxed it...1 of my co-admin installed it so i dun even know where it is :D