COAddOns project site-Add-Ons for MiaCMS, Mambo & Joomla CMS

 Home arrow FAQs arrow How-To arrow How to fix 'DB function failed with error number 1054' in Mambo?
Pick Language to Auto Translate:
AR | BG | CA | CS | DA | DE | EL | ES | FI | FR | HI | HR | ID | IT | IW | JA | KO | LV | LT | NO | NL | PL | PT | RO | RU | SK | SR | SL | SV | TL | UK | VI | ZH | ZT
SiteMap :: Contact Us :: About Us :: Member Blog :: Newsfeeds :: How-To :: News :: CMS Info :: MosNews :: Web Tools :: IRC Chat  

Main Menu
Home
Forums
Downloads
CMS Category
Web Links
FAQs
Blog
MoseCMS
COAddOns Wiki
COAddOns Docs
Drupal resources
Who's Online
We have 529 guests online
MosCmenuTree

FAQs

Feature Sites
Web Hosting
Q's quickdeals
OpensourceCMS
CMS Matrix
Joomla Extensions
Joomla Templates
Login Form
Username

Password

Remember me
Password Reminder
No account yet? Create one
Donate
Support OngETC in making a small donation:
Syndicate

MosNewsWriter

How to fix 'DB function failed with error number 1054' in Mambo? Print E-mail
User Rating: / 13
PoorBest 

This is the most asked question on the net regarding Mambo run with Mysql 5!

In Mysql 5.x due to the optimizer changes, it requires to have the join table to be next to the join statement otherwise it will cause a parsing error.

You can read more about this changes here: http://dev.mysql.com/doc/refman/5.0/en/left-join-optimization.html

To solve this problem you just need to make changes in "administrator/components/com_content/admin.content.php" as follow:

On line 201 and line 312:
From this: "\n FROM #__content AS c, #__categories AS cc, #__sections AS s" 
To this:   "\n FROM #__categories AS cc, #__sections AS s, #__content AS c" 

So with this fixes Mambo 4.5.3+ should be good for mysql 5.x for now.

I hope this help those that seek for a solution to this problem

Comments

If you have similar problem then I would advise do the same as describe above. Thanks

Posted by Chanh Ong, on 02/16/2008 at 01:25

For the main site the problem is solved with the change in this admin file. But I still get the same error when I try to open the archive manager.
I am using mambo 4.5.2 in conjunciton with mysql 5.0

Anyone know about this issue????
Please help
May be I need to make the same change also in an other file???

Posted by Bert Ververda, whose homepage is here on 02/14/2008 at 16:18

Thank you so much for your help, it has really saved me a lot of worries.

Posted by SeB, whose homepage is here on 01/16/2008 at 16:37

Thank you so much for this 'how to'
You have just solved my problems on two sites.
It is now working 100%
Thanks :-)

Posted by thuleab.dk, whose homepage is here on 06/17/2006 at 15:41

 1 
Page 1 of 1 ( 4 Comments )

You are not authorized to leave comments. Please login first.
<Previous   Next>




Sponsors

Reseller hosting (free)

000webhost (free)

HostUpon (w/ ssh)

Hosting24 (w/ ssh)

Free TK domain

CO.CC:Free Domain

Get Chitika Premium

Free Windows Hosting


Credit Counseling - Credit Consolidation - Credit Card Consolidation - United Specialties
Validate XHTML
Validate CSS