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
Error messages Details »»
Error messages
Version: , by Skyline_GT Skyline_GT is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

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

I got when i click Manage Warning Types
Code:
Database error in vBulletin 3.0.3:

Invalid SQL: select * from warning_types order by warn_points, warn_maturity, warn_name
mysql error: Unknown column 'warn_maturity' in 'order clause'

mysql error number: 1054

Date: Wednesday 27th of July 2005 02:37:44 AM
Script: /admin_warn.php?act=view
Referer: /index.php?do=nav
got
Code:
Database error in vBulletin 3.0.3:

Invalid SQL: select w.*,u.username as wusername,u.userid as wuserid,wt.*,wuser.username as warned_username_v,wuser.userid as warned_userid_v, ruser.username as removed_by_v, (w.warned_time+wt.warn_maturity*24*60*60) AS maturitydate from
	warnings w
	left join user wuser on(wuser.userid=w.warned_user)
	left join user u on(u.userid=w.warned_by)
	left join user ruser on(ruser.userid=w.removed_by)
	left join warning_types wt on(wt.tid=w.warned_warning_id) ORDER BY w.warned_time DESC LIMIT 0, 15
mysql error: Unknown column 'wt.warn_maturity' in 'field list'
when View Warning Logs

got
Code:
Database error in vBulletin 3.0.3:

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

mysql error number: 1054
when View Warned Users

got
Code:
Database error in vBulletin 3.0.3:

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

mysql error number: 1054
Statistics - Warnings per Warner


got
Code:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT COUNT(*) AS users FROM user AS user where warnings>0 OR alerts>0
mysql error: Unknown column 'warnings' in 'where clause'
on Statistics - Warnings per User

Show Your Support

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

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

Your database tables have not been created or updated as they should be. Did you run the installation script (install_warn.php), or did you create the tables manually?

Try re-running that script again, or manually run the following queries:

Code:
ALTER TABLE ".TABLE_PREFIX."warning_types ADD COLUMN warn_maturity int(5)
then

Code:
ALTER TABLE ".TABLE_PREFIX."user ADD COLUMN warnings int(5) default '0'
Remember to edit or remove the ".TABLE_PREFIX." thing according to your environment.

Rgds
  #3  
Old 07-27-2005, 09:13 AM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I ran the script.

there are still error for
View Warning Logs
View Warned Users
and
Statistics - Warnings per User
  #4  
Old 07-27-2005, 09:37 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems as if the installation script didn't create several fields in the various tables. I am not sure why. Run this query:

Code:
ALTER TABLE ".TABLE_PREFIX."warning_types ADD COLUMN warn_permban char(3)
Better yet, open the install_warn.php script and verify that all the columns for all the tables are there. You can see what columns you have by running the following query:

Code:
DESCRIBE TABLE tablename
Somehow I have the feeling that there will be other fields that haven't been added.
  #5  
Old 07-27-2005, 09:38 AM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed them.
..

I wonder how come on the warn.php I see

Quote:
Once you reach warning level , you will be banned for days
but it doesnt show the number of days.. I already set it 10 in the option..

how come when I try to warn someone, the warn type are all gone..
  #6  
Old 07-27-2005, 09:58 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please make sure you have saved your options. Go to AWS options and change them according to your preferences. Click on Update and then verify that the updates are saved.

If not, you have not run the warn_install_setting.php script.
  #7  
Old 07-27-2005, 10:00 AM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Add the latest settings to the Advanced Warning System.
Running this part even if you have the latest version does not cause any harm.
You are running version 3.4.14.
This hack is version 3.4.14.
already ran before..and checked to make sure it is saved. i still don't see the number of days on the warn.php as well, all the warn types are gone when trying to warn people.

btw.. I installed the zero telorance hack before..
  #8  
Old 07-27-2005, 10:36 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you had Zero's hack before, there is a special script which should be run to do the updates. Did you run it? It is called upgrade_warn.php.
  #9  
Old 07-27-2005, 10:37 AM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
If you had Zero's hack before, there is a special script which should be run to do the updates. Did you run it? It is called upgrade_warn.php.
oh crap....
no good.

ok... but I still can't see any warning for the Warning Selection:
  #10  
Old 07-27-2005, 10:42 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack has a lot of differences compared with Zero's. If the suggested upgrade procedure is not followed, strange things result. Sorry about that, it is well documented in the installation instructions.

I am not sure why the warning types do not show, I am not sure what is there in your database and what is not. I would suggest that you delete the tables that Zero's hack create and start from scratch.
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 08:26 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.05253 seconds
  • Memory Usage 2,298KB
  • 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
  • (9)bbcode_code
  • (3)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
  • (2)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