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
SQL errors Details »»
SQL errors
Version: , by KimmiKat KimmiKat is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

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

I installed the hack and I get this when I hit "View Warned Users"

Code:
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT COUNT(*) AS users FROM user AS user where warnings>0
mysql error: Unknown column 'warnings' in 'where clause'

mysql error number: 1054
And the following when I try to unban a user...

Code:
Database error in vBulletin 3.0.7:

Invalid SQL: 
				SELECT user.userid, user.username, user.posts, user.warning_bans,
				userban.usergroupid, userban.displaygroupid, userban.customtitle, userban.usertitle,
				IF(userban.userid, 1, 0) AS banrecord,
				IF(usergroup.genericoptions & 32, 1, 0) AS isbannedgroup
				FROM user AS user
				INNER JOIN usergroup AS usergroup ON(usergroup.usergroupid = user.usergroupid)
				LEFT JOIN userban AS userban ON(userban.userid = user.userid)
				WHERE user.userid = 148
			
mysql error: Unknown column 'user.warning_bans' in 'field list'

mysql error number: 1054
I've been scratching my head and can't figure it out.

Thanks

Show Your Support

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

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

Well, obviously your user table does not have the needed columns.

Run this query:

describe user

Check that the following columns are defined:

`warnings` int(5) default '0'
`warning_level` int(15) default '0'
`warning_bans` int(2) default '0'

If they are not defined (why?), add them using the following query:

ALTER TABLE `".TABLE_PREFIX."user`
add `warnings` int(5) default '0',
add `warning_level` int(15) default '0',
add `warning_bans` int(2) default '0'

Remember to change the Table Prefix if you are using one.

Rgds
  #3  
Old 04-10-2005, 05:46 PM
KimmiKat KimmiKat is offline
 
Join Date: Jul 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is going to sound dumb, but what is a "table Prefix?" My co-admin (who knows this stuff) started this modification before she left and I am so lost since I can't get a hold of her for help.
  #4  
Old 04-11-2005, 06:01 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a prefix that is used in front of every table name. For example, in some installations, where the admin didn't want to leave the default naming alone, he may have added a table prefix like "vb_", in which every table in his database would start with those three letters. In other words, his user table will no longer be named user, but vb_user.

Rgds
  #5  
Old 04-11-2005, 06:04 PM
KimmiKat KimmiKat is offline
 
Join Date: Jul 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! I wasn't sure since my former co-admin did most of the work on the board.
  #6  
Old 04-12-2005, 08:45 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem.
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 07:03 AM.


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.04295 seconds
  • Memory Usage 2,242KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete