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(plzz Help-Urgent) (https://vborg.vbsupport.ru/showthread.php?t=248988)

Osama11 08-20-2010 04:47 AM

Database Error(plzz Help-Urgent)
 
Now everytime i click on any forum or thread its gives a database error

Database error in vBulletin 4.0.2:

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' );

borbole 08-20-2010 01:29 PM

Quote:

Originally Posted by Osama11 (Post 2086713)
Now everytime i click on any forum or thread its gives a database error

Database error in vBulletin 4.0.2:

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' );


Can you post that part where it says: MySQL error:...........................

Osama11 08-20-2010 01:34 PM

MySQL Error : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_general_ci,IMPLICIT) for operation '='

borbole 08-20-2010 01:40 PM

Quote:

Originally Posted by Osama11 (Post 2086859)
MySQL Error : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_general_ci,IMPLICIT) for operation '='

Have a look at this thread

http://www.vbulletin.com/forum/showt...sh_ci-IMPLICIT

Osama11 08-20-2010 02:32 PM

I have CHanged Every Single table collation to latin1_swedish_ci Still its not working.

Every time i click on any forum or thread it gives an error

plzz help me.

Xtrigit 08-20-2010 03:33 PM

Try repairing the tables.

phpmyadmin>database>select tables> Repair table.

Lynne 08-20-2010 04:30 PM

Sometimes you need to go into the tables and change the fields also.

borbole 08-20-2010 04:34 PM

Lynne is right. In this case a simple repair of the tables won''t work. It is a bit more complicated than that.

Videx 08-21-2010 01:57 AM

Yes, all those posts telling you to use phpmyadmin to change collation are basically in error. They may work for some, but the app has no capability of changing fields, only tables. But since even a slow vb forum can have hundreds of fields, you really can't change them all manually.

A db backup is a plain text file, so I have successfully done this with a simple Search and Replace operation.

But I don't know. If you suddenly got this error I'd sooner suspect some add-on is the culprit. The collations were working on Monday; they didn't change on their own Tuesday.

Osama11 08-22-2010 03:43 PM

lynne can u plzz make me some php script which can solve this problem by installing in root and run it???

plzzzzz


All times are GMT. The time now is 02:41 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.01150 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete