Difference between revisions of "Joomla! Admin"

From Joseph Luis Wiki
Jump to: navigation, search
(Created page with "==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...")
 
(Incompatibility between Joomla! 1.5 and PHP 5.3)
 
Line 3: Line 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
 
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
  
*[http://zyte.com.au/blog/web-design-deve[lopment/fixing-joomla-bug-parameter-1-to-jhtmlgridaccess-expected-to-be-a-reference/ libraries/joomla/html/html.php]
+
*[http://zyte.com.au/blog/web-design-development/fixing-joomla-bug-parameter-1-to-jhtmlgridaccess-expected-to-be-a-reference/ libraries/joomla/html/html.php]
  
 
''Open "html.php" (in libraries/joomla/html) and find these two lines:''
 
''Open "html.php" (in libraries/joomla/html) and find these two lines:''

Latest revision as of 23:09, 20 April 2013

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