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
Getting SQL Error , pls help Details »»
Getting SQL Error , pls help
Version: , by H@K@N H@K@N is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

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

Hi,

first of all, i have to say, that i have used the Warning Hack from ZeroTolerance 1.5.

By mistake i runned first the install script for AWS 3.1.9 instead of the upgrade script.

Afterwards i have run the upgrade Script, no special Messages. Have edited all the Files.

I have set the setting in the Admincp :

If i hit "View Warnings Log" in Admincp, i am getting follwoing SQL Error :

Code:
Ungueltige SQL-Abfrage: 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

all other options are working there.


Second Problem. :

If i try to Warn somebody from Postbit Legacy, i am gettin following Error :

Code:
Ungueltige SQL-Abfrage: select * from warnings where warned_post='86444' AND warned_status='A'
mysql error: Unknown column 'warned_status' in 'where clause'

mysql error number: 1054
Coudl somebody help me ?


gr33tz

Show Your Support

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

Comments
  #2  
Old 03-06-2005, 07:43 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Getting a similar error message on the upgrade from Zero Tolerance's hack, I am using vb 3.0.7 though.


Code:
Database error in vBulletin 3.0.7:
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

Code:
 Database error in vBulletin 3.0.7:
Invalid SQL: select * from warnings where warned_post='2800' AND warned_status='A'
mysql error: Unknown column 'warned_status' in 'where clause'
mysql error number: 1054
Date: Sunday 06th of March 2005 10:22:16 PM
  #3  
Old 03-07-2005, 05:13 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add the missing column, by running the following queries:

ALTER TABLE `".TABLE_PREFIX."warnings ADD COLUMN removed_by int(15)

ALTER TABLE `".TABLE_PREFIX."warnings ADD COLUMN removed_date int(15)

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

ALTER TABLE `".TABLE_PREFIX."warnings ADD COLUMN caused_ban char(1)

These should fix the missing fields.

Let me know if you get any more errors. It's strange, because these fields exist in the upgrade_warn.php file, and of course, in the install_warn.php file, so they should have been created in either case.

Rgds
  #4  
Old 03-07-2005, 11:03 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi sv1cec,

Those queries did not work for me, what I did instead was uninstall using the uninstaller.php and then done a reinstall afterwards, that seemed to work fine, and now I have the AWS up and working fine So maybe H@K@N should try the same if thequery does not work for him.

thanks
  #5  
Old 03-07-2005, 11:27 AM
H@K@N H@K@N is offline
 
Join Date: Dec 2004
Location: Dortmund
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4 me it worked .... but not with the Strings which was mentioned.

Don't know exactly, but i think the apostroph infront the Table_Prefix is not correct, so i have done this Statement in phpmyadmin, without Prefix.

Now its working ....

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

LoL,

yes, the queries wouldn't work, not because of the first single quote, but because of a missing second single quote:

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN removed_by int(15)

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN removed_date int(15)

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

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN caused_ban char(1)

Sorry folks, I keep saying to myself, not to answer questions early in the morning.

Rgds
  #7  
Old 03-07-2005, 01:54 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi sv1cec,

Thanks for the heads up , anyway I am really happy with this hack, thanks very much for sharing!!
  #8  
Old 03-08-2005, 08:48 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taffy056
Hi sv1cec,

Thanks for the heads up , anyway I am really happy with this hack, thanks very much for sharing!!
Most welcome!
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 09:05 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.05374 seconds
  • Memory Usage 2,266KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete