|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#21 |
![]() Join Date: Nov 2004
Posts: 10
![]() |
what file are we supposed to edit?
|
|
|
|
|
|
#22 |
![]() Join Date: Nov 2004
Posts: 10
![]() |
i keep trying this "fix" it does not seem to be working for me??
can anyone help? Thanks! |
|
|
|
|
|
#23 | |
![]() Join Date: Apr 2005
Posts: 33
![]() |
Is this the problem I'm suddenly seeing on my site, http://jurgenfauth.com?
I get the following error messages on top of the page: Quote:
Edit: I should probably mention I'm using 4.5.2. |
|
|
|
|
|
|
#24 | |
![]() Join Date: Jan 2004
Posts: 997
![]() |
Quote:
This is the hack that I did on my WAMP5 and it runs perfectly. On line 203 of admin.content.php I made this change and it works. . "\n FROM #__categories AS cc, #__sections AS s, #__content AS c " This is due to Mysql5 is more strict on parse the code. Enjoy! |
|
|
|
|
|
|
#25 |
![]() Join Date: Sep 2005
Location: Yorkshire, England
Posts: 1,372
![]() |
The correction suggested above is liable to cause problems. It suppresses the immediate problem, but changes the meaning of the SQL statement. The best solution is to change the order of the first two tables, so that the full SQL statement reads (starting from line 200 of admin.content.php):
PHP Code:
PHP Code:
This will all be in the patch to be released around the end of the year. Please do NOT just comment out some of the tables. |
|
|
|
|
|
#26 |
![]() Join Date: Jan 2006
Posts: 6
![]() |
Hello, I have the same problem. I am working whit mambo 4.5.3 and mysql 5.0.15 and I tried to replace the lines described but I can find its. I search in the code of database.php. So is in that file where I must to replace the code or in my mambo versión the code changed? So please help me.
thanks menriquedigital |
|
|
|
|
|
#27 |
![]() Join Date: Sep 2005
Location: Yorkshire, England
Posts: 1,372
![]() |
The problem is in the file /administrator/components/com_content/admin.content.php.
|
|
|
|
|
|
#28 |
![]() Join Date: May 2006
Posts: 3
![]() |
I have this problem
![]() Parse error: syntax error, unexpected T_AS in C:\wamp\www\web\administrator\components\com_conte nt\admin.content.php on line 211 |
|
|
|
|
|
#29 |
![]() Join Date: Jun 2006
Location: Den Haag, the Netherlands
Posts: 3
![]() |
You guys ROCK! I' ve just spend over two days upgrading and downgrading everything on my server...and here' s a solution!
Right now I'm still a total noob....but I will not forget this help if I hear others need assistence... As soon as i understand more, i will help out on this forum! Greetz, MajorGlory |
|
|
|
|
|
#30 | |
![]() Join Date: Jan 2006
Location: NY, USA
Posts: 1,289
![]() |
Quote:
Your promise will be bookmarked. Thanks for your thoughtfulness. ![]() |
|
|
|
|
|
|
#31 |
![]() Join Date: Jun 2006
Location: Den Haag, the Netherlands
Posts: 3
![]() |
Back again guys... The solution worked for the All Content Items, but it created a new problem on another level. The Archive manager is now giving an 1054 error... I searched the forum and found several solutions. they are not working however. Main problem with the given solution is that the code that needs to be changed is not in my admin.content.php. For example, I can not find the line "limit 0,10". It is part of the lines I'm supposed to change, but I just can't find it... Anybody have a clue?
(by the way, about my earlier promise, I just fixed the other problem for a new user on a general php forum) hope he doesn't get this problem too tough... That would make me feel pretty stupid (here's a solution, by the way it fixes one problem, but causes another lol). |
|
|
|
|
|
#32 |
![]() Join Date: Jun 2006
Location: Den Haag, the Netherlands
Posts: 3
![]() |
Found it! Here it is for anyone still struggeling with these problems. It fixes both problems at the same time:
On mysql5 the joining of tables has other rules... you can can change 2 lines for a working mambo :-) file: admin.content.php line 201 old: . "\n FROM , #__content AS c, #__categories AS cc, #__sections AS s" new: . "\n FROM #__categories AS cc, #__sections AS s, #__content AS c " simply move the content AS c to the end. also: Line 312 old: . "\n FROM , #__content AS c, #__categories AS cc, #__sections AS s" new: . "\n FROM #__categories AS cc, #__sections AS s, #__content AS c " then the content and archive works... By the way all credit for this fix goes out to Taran! He found it, and I found his solution on this forum. It is important to first replace your admin.content.php with the original version, then apply these changes. In an already altered admin.content it does not seem to work. Greetz, Major Glory |
|
|
|
|
|
#33 |
![]() Join Date: Mar 2006
Posts: 1
![]() |
with mysql5, the precedence of the comma operator is lower compared to JOIN, LEFT JOIN, and so forth.
in other words: just put the from-part into braces. i.e. "select * from foo, bar" becomes "select * from (foo, bar)" ... and that's it. EOF. |
|
|
|
|
|
#34 |
![]() Join Date: Sep 2006
Location: LI, NY
Posts: 6
![]() |
Yea, was working on my website all weekend after upgrades from slackware10 to slackware11 on my local web-server. Wasn't really playing around with adding content. Then this morning I checked to see my content.
Scared the hell out of me, thought I would have to regress back to linux slackware-10 install. Thanks for the fix on the admin.content.php code. You guys are great. Thanks again, have a great day. Regards, SirHOAX-aLiTTLE ![]() Last edited by sirHOAX : October 10th, 2006 at 05:53. |
|
|
|
|
|
#35 |
![]() Join Date: Nov 2006
Posts: 2
![]() |
stimpsy
thanks a lot, it helped me out just in time you're my hero for one day ![]() |
|
|
|
|
|
#36 |
![]() Join Date: Nov 2006
Posts: 4
![]() |
Hello!
Your solusion fixed my problem with articles, but now I have problem with PhpShop. PhpShop do not show products. I run debug mode, and recive: Code:
Unknown column 'mos_pshop_product.product_id' Code:
#__pshop_product_price ON #__pshop_product.product_id = #__pshop_product_price.product_id WHERE #__pshop_product_category_xref.category_id= Code:
#__ Code:
mos It should be: Code:
mos_pshop_product_category Thank you. |
|
|
|
|
|
#37 |
![]() Join Date: Apr 2007
Posts: 1
![]() |
My provider upgraded mysql and didn't inform his clients - so i was afraid i could throw away my site since the content part didn't work any more. thnks to your elegant solution it's back in business! thank you so much!
![]() |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 4.5.2 Mambo Module Problem | kovox | Installation Questions | 2 | May 22nd, 2006 01:32 |
| Atualização de segurança para Mambo 4.5.2 | FaBMak | Instalação | 8 | June 15th, 2005 21:15 |
| Mambo Documentation Resources | kenmcd | Documentation Resources | 8 | June 2nd, 2005 20:07 |
| Copy all things in Mambo 4.5.1 to Mambo 4.5.2 | rsv | Upgrading Questions | 1 | May 10th, 2005 12:54 |
| Upgrade problem 4.5.1 to 4.5.2! please help | indeago | General Questions | 0 | March 14th, 2005 13:06 |