vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problem with database (https://vborg.vbsupport.ru/showthread.php?t=253384)

negrowarez 11-09-2010 06:28 AM

Problem with database
 
Disable all plugins and now what I get is this
Code:

Database error in vBulletin 4.0.8:

Invalid SQL:

            (SELECT 'package' AS classtype, package.packageid AS typeid, package.packageid AS packageid,
                package.productid AS productid, if(package.productid = 'vbulletin', 1, product.active) AS enabled,
                package.class AS class, -1 as isaggregator
            FROM package AS package
            LEFT JOIN product AS product
                    ON product.productid = package.productid
            WHERE product.active = 1
                OR package.productid = 'vbulletin'
            )

            UNION

            (SELECT 'contenttype' AS classtype, contenttypeid AS typeid, contenttype.packageid AS packageid,
                1, 1, contenttype.class AS class  ,  contenttype.isaggregator
            FROM contenttype AS contenttype
            INNER JOIN package AS package ON package.packageid = contenttype.packageid
            LEFT JOIN product AS product ON product.productid = package.productid
            WHERE product.active = 1
            OR package.productid = 'vbulletin'  );

MySQL Error  : Table 'undermu1_negrow.contenttype' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, November 9th 2010 @ 01:37:16 AM
Error Date    : Tuesday, November 9th 2010 @ 01:37:16 AM
Script        : http://undermusicworld.com/newthread.php?do=newthread&f=66
Referrer      : http://undermusicworld.com/forumdisplay.php?66-PRESENTATE
IP Address    : **.***.***.***
Username      : Negrowarez
Classname    : vB_Database
MySQL Version : 5.0.91-community

I can not post anything, the forum I can see it and everything but I can not delete or post anything.

negrowarez 11-14-2010 06:16 AM

Thanks everybody for the help

YankForum 11-14-2010 07:29 AM

First, try running Repair/Optimize in the Admin CP. You may need to run it more than once to fix all errors:
Admin CP -> Maintenance -> Repair/Optimize Tables -> Check All -> Continue

OR:
it seems the table undermu1_negrow.contenttype doesn't exist , try to DROP TABLE IF EXISTS and then recreate it , You can get its structure from the mysql-schema.php file inside the install folder.

negrowarez 11-19-2010 12:32 AM

Quote:

Originally Posted by YankForum (Post 2121678)
First, try running Repair/Optimize in the Admin CP. You may need to run it more than once to fix all errors:
Admin CP -> Maintenance -> Repair/Optimize Tables -> Check All -> Continue

OR:
it seems the table undermu1_negrow.contenttype doesn't exist , try to DROP TABLE IF EXISTS and then recreate it , You can get its structure from the mysql-schema.php file inside the install folder.

Thanks YankForum I go to try that.

negrowarez 11-20-2010 09:41 AM

The problem remains the same ... I do not know what to do

Lynne 11-20-2010 10:11 PM

Exactly what did you do? If you actually added a new table, then I don't see how you can still be getting this error. Do you see a table called contenttype in your database?


All times are GMT. The time now is 12:50 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.01181 seconds
  • Memory Usage 1,732KB
  • 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_code_printable
  • (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