Are you getting these errors in Joomla?
Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/xx/public_html/libraries/joomla/cache/handler/callback.php on line 99
or
Warning: Parameter 1 to HTML_content::show() expected to be a reference, value given in /home/xx/public_html/travel/includes/Cache/Lite/Function.php on line 92
Its because Joomla does not support PHP 5.3 or PHP 5.3.1
Just downgrade your PHP version and these errors will go away
Use the following fix as proposed by Alexis in the comments. He says
Here is a simple solution to fix it:
Open /includes/Cache/Lite/Function.php and replace at line 74:
$arguments = func_get_args();with:
$arguments = func_get_args(); $numargs = func_num_args(); for($i=1; $i < $numargs; $i++){ $arguments[$i] = &$arguments[$i]; }
My host has also decided to take the move to php 5.3. Sadly, this causes a big problem with the websites I designed with joomla 1.0: content disappears everywhere!
Here is a simple solution to fix it:
Open /includes/Cache/Lite/Function.php and replace at line 74:
$arguments = func_get_args();
with:
$arguments = func_get_args();
$numargs = func_num_args();
for($i=1; $i < $numargs; $i++){
$arguments[$i] = &$arguments[$i];
}
Hope it will help 🙂
Awsome Alexis, thanks a lot 🙂 it works 🙂 however I have a question to you, if I make that change, will it work on older versions of PHP too or it needed to be change back?
May you correct the joomla 1.5?
Many thx, it saved my day 😉
You are most welcome
You ROCK – thank you so much. 🙂
TQ so muchhhhhhhhhhhh 🙂
Your most welcome
Thanks for wonderful help………
Boss, you just save me.
Big big help!! Thank you!
Thanks mate, site is back online because of your post
You are most welcome mate!
Cara! Você é espetacular!!!
spettacolare!! grazie
Works like a charm, THANKS!
Thanx!!!
This really helped 🙂
After my webhoster upgraded the PHP, my site was down 🙁
I will have to upgrade my site some time to the newest joomla, but now I can decide on my own when to upgrade 😉
Thumbs up
thanks a lot.. piravo!
You are a genius! Thank you sooo much
I am glad that my blog posts were of any help to you, thanks Marina
I get the same error, however it indicates line 92 instead shown here.
PHP Warning: Parameter 1 to HTML_content::show() expected to be a reference, value given in /var/www/html/includes/Cache/Lite/Function.php on line 92
Please note that article was written months ago, try the patches available online and they might work
You rocks!
@Alexis well done mate .. what sol..
big thanks 🙂
Thanks for the help! It worked!
Thank you very much!! Pretty cool! 🙂
Thank you so very very much – you saved my day!
Thanks Alexis for your workaround, I had the same problem hosting a Joomla v1.0 website on PHP 5.3
Caro Alexis,
Em nome do site Diretrizes para Todos, expressamos nossos mais sinceros agradecimentos pela solução desse problema, que por meses deixou nosso site fora do ar! Muito obrigado! THANK YOU VERY MUCH!
—–
Translation by Google
Dear Alexis,
On behalf of the Guidelines for All site, we express our most sincere thanks for the solution of this problem, which for months has left our site off the air! Thank you! THANK YOU VERY MUCH!
Excellent fix! You are great programmer! Made my day with my csutomer! Thanks a lot!
Thank you soooooo much. This gives time for an upgrade!
Thanks! a lot! you save me to do a lot of work, so many thanks!!!!
It works, thanks for your help!
You saved my day! Thanks a lot.
You are most welcome!!
thanx for ur help … it worked perfectly …
Holy cow. Thank you so much for posting this. My host just upgraded to PHP5.3 today, and I had NO idea this would cause an issue with Joomla. Planning to upgrade our site in a few months, but this was a major problem. Thanks again for sharing.
Most welcome
thx, great work. u saved my day!
Without this post, I would have never have solved this problem. I have been sweating for some nights already. Thanks a million.
From the Netherlands.
Thanks a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, a lot, loooooooooooooooooooooooooooooooooooot