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
Database Error! Details »»
Database Error!
Version: , by Bakie Bakie is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

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

Here are a few errors that I am getting from my forum so at the moment nothing works (except the admincp and the index and forumdisplay) :

Quote:
Database error in vBulletin 3.0.8:

Invalid SQL: select w.*, u.username as warner from warn_notes w
LEFT JOIN user u on(u.userid=w.warned_by)
where warned_user='8' order by warned_time desc
mysql error: Table 'bxhtptbr_vbforum.warn_notes' doesn't exist

mysql error number: 1146

Date: Wednesday 31st of August 2005 03:05:58 AM
Script: http://www.freeformforum.com/showthread.php?t=41
Quote:
Database error in vBulletin 3.0.8:

Invalid SQL: select w.*, u.username as warner from warn_notes w
LEFT JOIN user u on(u.userid=w.warned_by)
where warned_user='1' order by warned_time desc
mysql error: Table 'bxhtptbr_vbforum.warn_notes' doesn't exist

mysql error number: 1146

Date: Wednesday 31st of August 2005 03:05:37 AM
Quote:
Database error in vBulletin 3.0.8:

Invalid SQL: select w.*, u.username as warner from warn_notes w
LEFT JOIN user u on(u.userid=w.warned_by)
where warned_user='11' order by warned_time desc
mysql error: Table 'bxhtptbr_vbforum.warn_notes' doesn't exist

mysql error number: 1146

Date: Wednesday 31st of August 2005 02:06:31 AM
Script: http://www.freeformforum.com/member.php?u=11
Referer:
Username: Unregistered
IP Address: **.**.**.**
What have I done wrong?

I was upgrading from Zero Tolerance's hack 1.5 to AWS.

Show Your Support

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

Comments
  #2  
Old 08-31-2005, 08:08 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like you didn't run the query to make the warn_notes table.
  #3  
Old 08-31-2005, 08:13 AM
Bakie Bakie is offline
 
Join Date: Apr 2005
Location: England
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where and how do I do this?
  #4  
Old 08-31-2005, 09:20 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since you can't get on your site, you will have to go to phpmyadmin and run the query from there.
  #5  
Old 08-31-2005, 09:22 AM
Bakie Bakie is offline
 
Join Date: Apr 2005
Location: England
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can get into the admincp, does that help? If I have to use phpmyadmin what exactly do I have to do? (Im new to this)
What query do I have to run?
  #6  
Old 08-31-2005, 10:54 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try runninng the install_warn.php script again. In other words, point your browser to :

http://www.yourdomain.com/admincp/install_warn.php

That should create the table for you. If that fails, use the following query:

Code:
CREATE TABLE `bxhtptbr_vbforum.warn_notes` (
  `wid` int(15) NOT NULL auto_increment,
  `warned_user` int(15) NOT NULL default '0',
  `warned_by` int(15) NOT NULL default '0',
  `warned_time` int(15) NOT NULL default '0',
  `warned_note` text NOT NULL,
  `warned_post` int(15) NOT NULL default '0',
  `warned_type` smallint NOT NULL default '1',
  PRIMARY KEY  (`wid`)
Please note that I've used the table prefix shown in your error messages above.

Let me know if that helps.
  #7  
Old 08-31-2005, 11:13 AM
Bakie Bakie is offline
 
Join Date: Apr 2005
Location: England
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am upgrading Zero Tolerance's hack 1.5 so can I run install_warn.php?

I tried it in phpmyadmin but it comes up with this error:
Quote:
#1103 - Incorrect table name 'bxhtptbr_vbforum.warn_notes'
  #8  
Old 08-31-2005, 11:41 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try running the above query from your adminCP. Or, run it through phpmyadmin, without using the table prefix in front of the name, in other words, run it like this:

Code:
CREATE TABLE `warn_notes` (
  `wid` int(15) NOT NULL auto_increment,
  `warned_user` int(15) NOT NULL default '0',
  `warned_by` int(15) NOT NULL default '0',
  `warned_time` int(15) NOT NULL default '0',
  `warned_note` text NOT NULL,
  `warned_post` int(15) NOT NULL default '0',
  `warned_type` smallint NOT NULL default '1',
  PRIMARY KEY  (`wid`)
I just noticed you had upgrade from ZT's hack, that's why it didn't add that table for you, I haven't updated that script to the latest release.
  #9  
Old 08-31-2005, 11:47 AM
Bakie Bakie is offline
 
Join Date: Apr 2005
Location: England
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another error:
Quote:
error desc: 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 9
  #10  
Old 08-31-2005, 11:56 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LoL, yes, I didn't match the opening parenthesis, did I?

Try this:

Code:
CREATE TABLE `warn_notes` (
  `wid` int(15) NOT NULL auto_increment,
  `warned_user` int(15) NOT NULL default '0',
  `warned_by` int(15) NOT NULL default '0',
  `warned_time` int(15) NOT NULL default '0',
  `warned_note` text NOT NULL,
  `warned_post` int(15) NOT NULL default '0',
  `warned_type` smallint NOT NULL default '1',
  PRIMARY KEY  (`wid`)
)
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:25 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.06354 seconds
  • Memory Usage 2,290KB
  • 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
  • (5)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