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
Fresh installed AWS 3 Database errors Details »»
Fresh installed AWS 3 Database errors
Version: , by ShadowFun ShadowFun is offline
Developer Last Online: Dec 2005 Show Printable Version Email this Page

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

Hello...
Thank you for the conducted enormous work above AWS.

There are problems after the fresh install on a
clean forum.
Installed version is 3.3.1 ... then upgraded to 3.3.2

Admin CP -> Warning System ->
1. View Warned Users
Warning: Division by zero in \admincp\admin_warn.php on line 704
Code:
Invalid SQL: select * from
	user u where warnings>0 ORDER BY userid ASC LIMIT 0, 
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 '' at line 2
mysql error number: 1064
2. Statistics - Warnings per User
Warning: Division by zero in \admincp\admin_warn.php on line 704
Code:
Invalid SQL: select * from
	user u where warnings>0 ORDER BY userid ASC LIMIT 0, 
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 '' at line 2
mysql error number: 1064
3. Statistics - Bans per User
Warning: Division by zero in \admincp\admin_warn.php on line 1988
Code:
Invalid SQL: select b.*, u.*, a.username AS warner, w.*, wt.*  

from ban_dates as b
	LEFT JOIN user AS u ON(u.userid = b.banned_user) 
	LEFT JOIN user AS a ON(a.userid = b.banned_by) 
	LEFT JOIN warnings AS w ON(w.wid = b.banned_warning)
	LEFT JOIN warning_types AS wt ON(wt.tid = 
w.warned_warning_id)
	ORDER BY b.banned_user, b.banned_ban LIMIT 0, 
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 '' at line 6
mysql error number: 1064
How is it possible to correct ?

Rgds.

Show Your Support

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

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

hi,

i've checked those things.I upgraded to the latest version and all seems to be working fine here.I would suggest you check your file edits you must have missed something (in any edited file) did you do the bigchange recently all of the aws parameters where moved to $vboptions instead of the warning_options table.In the zip there is a script dat updates this for you

also make sure you uploaded the latest admin_warn.php and Warn.php files
  #3  
Old 03-24-2005, 03:51 PM
ShadowFun ShadowFun is offline
 
Join Date: Nov 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm...
fresh reinstalled with v3.3.2
The same errors of DB.
I`m currently confused........
  #4  
Old 03-25-2005, 04:52 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have not set your Warning Options properly. The division by zero error is because you have not set, how many lines per page you want to see in reports. You have to set this option to a number, like 10, 15 whatever, but you should not leave that empty.

I added some checks for this in the admin_warn.php file, and I'll upload a new zip file later today.

Rgds
  #5  
Old 03-25-2005, 05:16 AM
ShadowFun ShadowFun is offline
 
Join Date: Nov 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can`t save any options...
After set them they return by default.
  #6  
Old 03-25-2005, 05:21 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have your run the warn_install_setting.php file as specified in the upgrade instructions?

Point your browser to :

http://www.yourforumdomain.com/admin...ll_setting.php

Change yourforumdomain, to whatever your domain is in the line above.

Rgds
  #7  
Old 03-25-2005, 08:46 AM
ShadowFun ShadowFun is offline
 
Join Date: Nov 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you that specified a way where to search the error of installation...
I not quite understand as happened so (when I run warn_install_setting first time), that in a base was added only on two first phrases from every group is this and was reason of errors.
All works now.
Many thanks all for the spent time on this remarkable hack.
Success !
  #8  
Old 03-28-2005, 12:28 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad I was able to help.

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 05:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07363 seconds
  • Memory Usage 2,264KB
  • 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
  • (3)bbcode_code
  • (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