vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Database Error after Changing Partition (https://vborg.vbsupport.ru/showthread.php?t=240447)

dankreiner 04-14-2010 01:48 PM

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? :confused::confused:

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

borbole 04-14-2010 02:07 PM

Quote:

Originally Posted by dankreiner (Post 2021135)
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? :confused::confused:

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?

dankreiner 04-14-2010 03:40 PM

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.

borbole 04-14-2010 04:07 PM

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.

dankreiner 04-14-2010 08:44 PM

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

Lynne 04-15-2010 01:26 AM

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


All times are GMT. The time now is 05:21 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.01024 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete