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
DB Error Details »»
DB Error
Version: , by The Realist The Realist is offline
Developer Last Online: Aug 2017 Show Printable Version Email this Page

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

Clicking a users warning link and I get this error:

Invalid SQL: select * from warnings where warned_post='65273' AND warned_status='A'
mysql error: Unknown column 'warned_status' in 'where clause'


Any ideas?

I know its a missing columb, but what text do I need to put it back?

Laters

Just came accross another DB error:

When I edit the warning options and save them, I get this DB error:

Database error in vBulletin 3.0.6:

Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='No',
warner='1',
automatic_warner='',
collector='',
banned_limit='7',
points_before_banned='5',
warnings_before_banned='10',
banned_usergroup_id='14',
troll_usergroup_id='4',
protected_usergroups='6',
aprotected_usergroups='',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='0',
viewoption='Mgm',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='Yes',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20',
textbutoption='Text',
modoption='All'
where oid='1'
mysql error: Unknown column 'modoption' in 'field list'

HELP

Show Your Support

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

Comments
  #2  
Old 02-14-2005, 05:19 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
Clicking a users warning link and I get this error:

Invalid SQL: select * from warnings where warned_post='65273' AND warned_status='A'
mysql error: Unknown column 'warned_status' in 'where clause'


Any ideas?

I know its a missing columb, but what text do I need to put it back?

Laters
yeah you're missing a table run this MySQL query

Code:
ALTER  TABLE `".TABLE_PREFIX."warnings`ADD COLUM warned_status char(1);
carefull with TABLE_PREFIX .... open install_warn.php there you can see the sql code ...

Quote:
Originally Posted by The Realist
Clicking a users warning link and I get this error:

Invalid SQL: select * from warnings where warned_post='65273' AND warned_status='A'
mysql error: Unknown column 'warned_status' in 'where clause'


Any ideas?

I know its a missing columb, but what text do I need to put it back?

Laters

Just came accross another DB error:

When I edit the warning options and save them, I get this DB error:

Database error in vBulletin 3.0.6:

Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='No',
warner='1',
automatic_warner='',
collector='',
banned_limit='7',
points_before_banned='5',
warnings_before_banned='10',
banned_usergroup_id='14',
troll_usergroup_id='4',
protected_usergroups='6',
aprotected_usergroups='',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='0',
viewoption='Mgm',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='Yes',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20',
textbutoption='Text',
modoption='All'
where oid='1'
mysql error: Unknown column 'modoption' in 'field list'

HELP

ok settle down and please download the latest version the errors you are describing about missing database tables are telling you are trying to install an outdated version of this hack
  #3  
Old 02-14-2005, 05:30 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the latest version.

Ran your SQL code and received this error:

SQL-query:

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUM warned_status char( 1 )

MySQL said: Documentation
#1103 - Incorrect table name '".TABLE_PREFIX."warnings'
  #4  
Old 02-14-2005, 06:28 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah,

i already warned you about "TABLE_PREFIX" he that's a global vb varible for people that use database prefixes (for the tables) so if your table name is without prefix the query becomes

Code:
ALTER TABLE warnings  ADD COLUMN warned_status char( 1 )
ok you might have the latest version BUT if you want to upgrade and you are running an old verion you must perform ALL of the mentioned steps in UpgradeToLatestVersion.txt file the modoption querry is

Code:
ALTER TABLE `".TABLE_PREFIX."warning_options` ADD COLUMN modoption char(3)
again remove the "TABLE_PREFIX" if you don't need it
  #5  
Old 02-14-2005, 06:48 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I click the view warning logs, I get this DB error:

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, 20
mysql error: Unknown column 'w.removed_by' in 'on clause'

mysql error number: 1054

Not my day.
  #6  
Old 02-14-2005, 07:40 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

what are you doing you must install this hack the following way
  • upload the hack files to your server (keeping the standard vb directory structure intact
  • run install_warn.php(lataest version)
  • do ALL of the .php files and templates edits

then and only then you can try to see if it works i think you are trying to see if it works when you are not completely done yet.The database errors you are getting can only be caused by incomplete or outdated installations
  #7  
Old 02-14-2005, 07:50 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed it as you stated. The DB errors are still there:

When I click view log I get a DB error, but now when I click view warnings in a post or if I attempt to give a warming all I see is a white page and thats it?
  #8  
Old 02-14-2005, 08:32 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

well that's odd the "blank page" is a known problem first question i have in this problem

do you use more then one vbulletin style ? if yes then you can use this hack to copy the modified templates to all styles you use (requirerd) also do you use the files from this this thread ?
  #9  
Old 02-14-2005, 08:36 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do have more than style but only use one.
Quote:
also do you use the files from this this thread ?
No I used the original thread.

If the blank pages are a known problem, then whats the fix if there is one?

Thanks for your help by the way.

Regards.
  #10  
Old 02-14-2005, 09:39 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

usually blank pages turn up if you use custom styles but you aren't ... did you got any errors when you edited the templates ? daim this is odd i need some sleep now no more ideas when i wake up tomorrow morning i might have a new idea also there was a problem with an earlies release of aws i believe John updated the files in that "sticky" thread here in this forum
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 01:25 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.04991 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
  • (3)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
  • (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