Joomla! Admin

From Joseph Luis Wiki
Jump to: navigation, search

Incompatibility between Joomla! 1.5 and PHP 5.3

Here are some things to change temporarily in the Joomla! code to address this. The best solution is to upgrade Joomla! or use a PHP version previous to 5.3

Open "html.php" (in libraries/joomla/html) and find these two lines:

$args = func_get_args();
array_shift( $args );

They should be around line 85. Replace those two lines with:

$temp = func_get_args();
array_shift( $temp );
$args = array();
foreach ($temp as $k => $v) {
$args[] = &$temp[$k];
}

Open the file in ./libraries/joomla/cache/handler/callback.php and change this two lines: line 60 from

function get( $callback, $args, $id=false )
to
function get( $callback, &$args, $id=false ) //added & for reference call

and line 99 from

$result = call_user_func_array($callback, $args);
to
$result = call_user_func_array($callback, &$args); //added & for reference parameter