Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2010, 01:48 PM
dankreiner dankreiner is offline
 
Join Date: Jun 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Error after Changing Partition

This is what i am getting... Its weird, some clicks the homepage would load, then, id refresh and it was database error again... Can any please help me?

Database error in vBulletin 4.0.3:

Invalid SQL:

SELECT data.tagid, data.tagtext, SUM(data.searchcount) AS searchcount
FROM
(
SELECT tagcontent.tagid, tag.tagtext, COUNT(*) AS searchcount
FROM tagcontent AS tagcontent
INNER JOIN tag AS tag ON (tagcontent.tagid = tag.tagid) INNER JOIN thread AS thread ON (tagcontent.contentid = thread.threadid)
WHERE tagcontent.contenttypeid IN (2) AND
tagcontent.dateline > 1239720304 AND thread.open <> 10 AND thread.visible = 1 AND thread.forumid IN (1,2,41,3,6,8,42,34,39,43,35,38,37,9,52,53,54,14,1 5,46,16,17,18,19,48,20,21,22,23,49,24,25,26,27,50, 28,29,30,31,47,32,33,57,58,10,11,45,12,13)
GROUP BY tagcontent.tagid, tag.tagtext
) AS data
GROUP BY data.tagid, data.tagtext
ORDER BY searchcount DESC
LIMIT 30;

MySQL Error : Table 'vbulletin.tagcontent' doesn't exist
Error Number : 1146
Request Date : Wednesday, April 14th 2010 @ 04:45:04 PM
Error Date : Wednesday, April 14th 2010 @ 04:45:04 PM
Script : http://phantank.com/
Referrer :
IP Address : 68.194.172.128
Username : phantank
Classname : vB_Database_MySQLi
MySQL Version : 5.0.51a-3ubuntu5.4
Reply With Quote
  #2  
Old 04-14-2010, 02:07 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dankreiner View Post
This is what i am getting... Its weird, some clicks the homepage would load, then, id refresh and it was database error again... Can any please help me?

Database error in vBulletin 4.0.3:

Invalid SQL:

SELECT data.tagid, data.tagtext, SUM(data.searchcount) AS searchcount
FROM
(
SELECT tagcontent.tagid, tag.tagtext, COUNT(*) AS searchcount
FROM tagcontent AS tagcontent
INNER JOIN tag AS tag ON (tagcontent.tagid = tag.tagid) INNER JOIN thread AS thread ON (tagcontent.contentid = thread.threadid)
WHERE tagcontent.contenttypeid IN (2) AND
tagcontent.dateline > 1239720304 AND thread.open <> 10 AND thread.visible = 1 AND thread.forumid IN (1,2,41,3,6,8,42,34,39,43,35,38,37,9,52,53,54,14,1 5,46,16,17,18,19,48,20,21,22,23,49,24,25,26,27,50, 28,29,30,31,47,32,33,57,58,10,11,45,12,13)
GROUP BY tagcontent.tagid, tag.tagtext
) AS data
GROUP BY data.tagid, data.tagtext
ORDER BY searchcount DESC
LIMIT 30;

MySQL Error : Table 'vbulletin.tagcontent' doesn't exist
Error Number : 1146
Request Date : Wednesday, April 14th 2010 @ 04:45:04 PM
Error Date : Wednesday, April 14th 2010 @ 04:45:04 PM
Script : http://phantank.com/
Referrer :
IP Address : 68.194.172.128
Username : phantank
Classname : vB_Database_MySQLi
MySQL Version : 5.0.51a-3ubuntu5.4

As the myswl error says, you are missing the tagcontent table. try to recreate it and see if it would help.

P.s. Did you do any modification at all to your forum prior to getting this error?
Reply With Quote
  #3  
Old 04-14-2010, 03:40 PM
dankreiner dankreiner is offline
 
Join Date: Jun 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pfff. ive been modding for two days straight, i can't even see... site looks awesome tho. except for its like on the first visiit it doesn't load but if you refresh it comes up but on the next visit back to the page it doesn't load again.... anyone have any idea... im not sure how to recreate tagcontent table... but i will try.
Reply With Quote
  #4  
Old 04-14-2010, 04:07 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Inside the install folder there is a file called mysql-schema.php. You will find there the structure for all the db tables. Copy/paste the one for the missing table and run it at at the SQL tab in the phpmyadmin.
Reply With Quote
  #5  
Old 04-14-2010, 08:44 PM
dankreiner dankreiner is offline
 
Join Date: Jun 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, so this is what i found in that file corresponing to tagcontent...

$schema['CREATE']['query']['tagcontent'] = "
CREATE TABLE " . TABLE_PREFIX . "tagcontent (
tagid INT UNSIGNED NOT NULL DEFAULT 0,
contenttypeid INT UNSIGNED NOT NULL,
contentid INT UNSIGNED NOT NULL DEFAULT '0',
userid INT UNSIGNED NOT NULL DEFAULT '0',
dateline INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY tag_type_cid (tagid, contenttypeid, contentid),
KEY id_type_user (contentid, contenttypeid, userid),
KEY user (userid),
KEY dateline (dateline)
)
$enginetype=$hightrafficengine
";
$schema['CREATE']['explain']['tagcontent'] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "tagcontent");





of that what do i put in?

--------------- Added [DATE]1271281905[/DATE] at [TIME]1271281905[/TIME] ---------------

i tried a lot of different variations... this was one..

SQL query:

CREATE TABLE " . TABLE_PREFIX . "tagcontent(

tagid INT UNSIGNED NOT NULL DEFAULT 0,
contenttypeid INT UNSIGNED NOT NULL ,
contentid INT UNSIGNED NOT NULL DEFAULT '0',
userid INT UNSIGNED NOT NULL DEFAULT '0',
dateline INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY tag_type_cid( tagid, contenttypeid, contentid ) ,
KEY id_type_user( contentid, contenttypeid, userid ) ,
KEY USER( userid ) ,
KEY dateline( dateline )
)
MySQL said:

#1064 - 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 '" . TABLE_PREFIX . "tagcontent (
tagid INT UNSIGNED NOT NULL DEFAULT 0,
cont' at line 1
Reply With Quote
  #6  
Old 04-15-2010, 01:26 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to replace " . TABLE_PREFIX . " with the actual table_prefix from your config.php file.
Reply With Quote
Reply


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 02:11 PM.


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.04870 seconds
  • Memory Usage 2,218KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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