Log in

View Full Version : Sql error when uploading a plug


VBUsers
06-27-2006, 08:46 PM
ok my issue is im getting this error when i upload a a plug in that is suppose to help me show my forum stats globaly. can any one help

heres the error:
Database error in vBulletin 3.6.0 Beta 3:

Invalid SQL:
SELECT userid, username FROM adminrev_user WHERE adminrev_userid=3;

MySQL Error : Unknown column 'adminrev_userid' in 'where clause'
Error Number : 1054
Date : Tuesday, June 27th 2006 @ 05:43:25 PM
Script : http://www.adminrevo.com/
Referrer :
IP Address : 0000000000
Username : Steve
Classname : vB_Database


and im attaching the plug in as well thank you

K1ng0e
06-27-2006, 09:35 PM
Have you got a table prefix ?

VBUsers
06-27-2006, 09:49 PM
Have you got a table prefix ?


yes i do but it seems to be looking for another table or something.

Paul M
06-27-2006, 09:52 PM
There is an error in that line of the plugin that the Author should fix - they have missed the table name after the table prefix in the 'where' clause (actually it should be rewritten to avoid table prefix code in where clauses, but that's another story).

Btw, are you aware that this code adds 6 new select queries to every page on your forum ?

VBUsers
06-27-2006, 10:03 PM
There is an error in that line of the plugin that the Author should fix - they have missed the table name after the table prefix in the 'where' clause (actually it should be rewritten to avoid table prefix code in where clauses, but that's another story).

Btw, are you aware that this code adds 6 new select queries to every page on your forum ?


thank you for the information. no i wasn't aware of the extra queries. do you happen to have an alternate solution for me? if you go to the link in my sig you will see on the top of the forum is where the forum stats will go. i tried adding them in the regular way but failed. if you can point me in the direction of a hack or template mod that will do what I'm looking for i would be very grateful.