Joomla does not support PHP 5.3

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];
}

42 thoughts on “Joomla does not support PHP 5.3

  1. 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 πŸ™‚

  2. 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?

  3. 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

  4. 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!

  5. 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.

  6. 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.

  7. 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

Leave a Reply