The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
warn member error Details »» | |||||||||||||||||||||||||
hi guys
have installed the hack but when i click warn member and click what warnig i want to give i get the following error Database error in vBulletin 3.0.6: Invalid SQL: update user set warning_level='3', warnings='1' where userid='166' mysql error: Unknown column 'warnings' in 'field list' mysql error number: 1054 Date: Saturday 05th of February 2005 10:25:27 AM Script: http://www.extreme-mobile.com/forums/Warn.php Referer: http://www.extreme-mobile.com/forums...=166&post=1319 Username: admin any ideas whats wrong? many thanks dean can anyone help with this? Show Your Support
|
Comments |
#2
|
|||
|
|||
Yes, it is obvious that the warnings column does not exist in your table. Add it by running the following query:
ALTER TABLE `user` ADD COLUMN `warnings` int(5) Rgds |
#3
|
|||
|
|||
thanks for your reply mate, i added the query but now get a differnt error:
Database error in vBulletin 3.0.6: Invalid SQL: UPDATE user SET usergroupid = 28, displaygroupid = 28, warnings=2, warning_level=11, warning_bans = , usertitle = 'Temporarily Banned' WHERE userid = 166 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 ' usertitle = 'Temporarily Banned' WHERE userid = 166' a mysql error number: 1064 Date: Monday 07th of February 2005 01:10:51 AM Script: http://www.extreme-mobile.com/forums/Warn.php Referer: http://www.extreme-mobile.com/forums...=166&post=1319 Username: admin IP Address: xxx.xxx.xxx.xx |
#4
|
|||
|
|||
Quote:
But I am not sure if that's from the error message or it got there when copying and pasting. Also, does that happen every time you issue a warning to a user, or only when that user reaches the ban limit? rgds |
#5
|
|||
|
|||
ok im using 3.15 i think
it seems to be working ok, BUT when they go over the maximum warn points (10 in my forums case) it then shows this error Database error in vBulletin 3.0.6: Invalid SQL: UPDATE user SET usergroupid = 28, displaygroupid = 28, warnings=5, warning_level=12, warning_bans = , usertitle = 'Temporarily Banned' WHERE userid = 166 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 ' usertitle = 'Temporarily Banned' WHERE userid = 166' a mysql error number: 1064 Date: Monday 07th of February 2005 11:48:09 AM Script: http://www.extreme-mobile.com/forums/Warn.php Referer: http://www.extreme-mobile.com/forums...=166&post=1319 Username: admin IP Address: xx.xxx.xx.x so basically when they have reached the banned limit the error occurs any ideas? regards dean |
#6
|
|||
|
|||
Quote:
Rgds |
#7
|
||||
|
||||
The error is the fact that it tries to update the warning_bans with an empty string.
This would solve itself if sv1 would just wrap ' around all variables parsing to SQL. (Then again, this way of halting SQL errors makes detecting errors harder, but meh) |
#8
|
|||
|
|||
Quote:
I do not think so. it doesn't act like that on my site, for some reason. If you check the code, warning_bans should have a value, either 1 or previous value+1. So I do not think that's the problem. We will only know when we'll see the code. Rgds |
#9
|
|||
|
|||
right guys ive downloaded the latest files and replaced the "functions_warnings" file on my account and i get the following error when i put the user up to the ban limit
Database error in vBulletin 3.0.6: Invalid SQL: UPDATE user SET usergroupid = 28, displaygroupid = 28, warnings=7, warning_bans = 1, usertitle = 'Temporarily Banned' WHERE userid = 166 mysql error: Unknown column 'warning_bans' in 'field list' mysql error number: 1054 Date: Tuesday 08th of February 2005 01:48:57 PM Script: http://www.extreme-mobile.com/forums/Warn.php Referer: http://www.extreme-mobile.com/forums...=166&post=1319 Username: admin IP Address: xxx.xxx.xxx.xx any ideas? also i dont understand what code you wnat me to show you? sorry mate am quite an amature at this |
#10
|
|||
|
|||
Quote:
ALTER TABLE user ADD COLUMN warning_bans int(2) Remember to add any table prefix if you are using one. Let me know if that works. rgds |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|