The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Quote:
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? |
#3
|
|||
|
|||
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.
|
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
You need to replace " . TABLE_PREFIX . " with the actual table_prefix from your config.php file.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|