Vbulletin Forum Software Error

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

silentdub

Thread Starter
Joined
Feb 10, 2015
Messages
2
Invalid SQL:
select * from vb_style where styleid = or styleid = 4 ORDER BY styleidASC;

MySQL Error : You have an error in your SQL syntax; check themanual that corresponds to your MySQL server version for the right syntax touse near 'or styleid = 4 ORDER BY styleid ASC' at line 1
Error Number : 1064

Getting the error above when accessing the forum pages (any). I checked the table, vb_style exists and there is a record with an ID of 4.


Any help is appreciated.
Vbulletin 4.2.2
Apache Version2.2.29PHP Version5.3.29MySQL Version
5.5.41-cll-lve
 

silentdub

Thread Starter
Joined
Feb 10, 2015
Messages
2
The problem was caused by incomplete style information.

disable all hooks and then you have access to fix.
 

JiminSA

Jim
Joined
Dec 15, 2011
Messages
3,407
Hi there silentdub and welcome to TSG:)
Code:
select * from vb_style where styleid = or styleid = 4 ORDER BY styleidASC;
Was the problem due to the first comparison of styleid missing the "" ?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top