Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > Advanced Warning System (AWS)
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
warn member error Details »»
warn member error
Version: , by xtreme-mobile xtreme-mobile is offline
Developer Last Online: Nov 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-05-2005 Last Update: Never Installs: 0
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-06-2005, 06:27 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 02-07-2005, 06:12 AM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 02-07-2005, 10:41 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
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
Which version of AWS are you running? There doesn't seem to be any error with the SQL statement, except that 'a' , at WHERE userid = 166' a

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  
Old 02-07-2005, 04:50 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 02-08-2005, 05:16 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
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
Please try to upload the file includes/funtions_warning.php to your web server. Download the zip file from the initial thread and extract the above file. Then upload it to your web server. It looks as if the syntax of that file is wrong, near line 304. If you can send me some of the lines of that file, say from line 290 up to 320, I can check it out, but I am sure that the latest one is working fine, haven't touched that file for a while.

Rgds
  #7  
Old 02-08-2005, 05:53 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 02-08-2005, 04:30 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Revan
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)
Revan,

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  
Old 02-08-2005, 06:51 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 02-09-2005, 06:50 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
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
I guess you had installed a previous version first and now you are upgrading. That's why you do not have the warning_bans column. Try running this query:

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
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06876 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete