Pages

Sunday, April 18, 2010
If anyone who are working with JOOMLA versions less than 1.5.15 and working with PHP version 5.3.0 or above, It is quite common to get few warnings in several pages mainly comes from two source files.. They are



1.       Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in \joomla15\libraries\joomla\cache\handler\callback.php on line 99

For this error the following file should be modified Modules/mod_mainmenu/helper.php

Actual Code:

function buildXML(&$params){……………
Modified Code



function buildXML($params) {……………




2.       Warning: Parameter 1 to JHTMLGrid::access() expected to be a reference, value given in \joomla15\libraries\joomla\html\html.php on line 91



Warning: Parameter 1 to JHTMLGrid::checkedOut() expected to be a reference, value given in \joomla15\libraries\joomla\html\html.php on line 91

Actual Code

return call_user_func_array( array( $className, $func ), $args );
Just call that function with call by passing $args as reference  &$args.

Modified Code

 return call_user_func_array( array( $className, $func ), &$args );

0 comments: