Question: Getting error on Main Menu Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /libraries/joomla/cache/handler/callback.php on line 99

 

Answer:

This error happens because the version of Joomla! you are running is not compatible with PHP 5.3.0 . You could get this error for the reason being that your host upgraded to PHP 5.3.0

A quick solution will be is to open the file modules/mod_mainmenu/helper.php in your root folder and change the following line from

View source
function buildXML(&$params)
to
View source
function buildXML($params)
at the top of helper.php

 

The best solution will be to upgrade your Joomla! installation to the latest Joomla! release

I am so much pleased ... Thank You Sooooo much...
VOTES:1
Glad this article helped :) Maybe the best will be if you upgrade to the latest Joomla 1.5
VOTES:0
With me out of trouble. Thank you thank you so much
VOTES:0
Worked like charm! Amazing
VOTES:0
very good solution!!

Thank you.

VOTES:0
Lukas from Czech Friday, 19 August 2011
It works! Perfect. Lot of thanks ...
VOTES:0
Had guessed this must be the reason. Will try your solution. Thanks :-)
VOTES:0
you\'re the best!
thanks a lot, you made my day!
VOTES:0
very great... you guys rocks.....
VOTES:0
You saved my life :-)
VOTES:0
hi, i am now upgrading joomla 1.5 to 2.5; but the problem is, in the 1.5 joomla, there was a custom html code in the joomla1.5/template/default/html/mod_mainmenu folder. but in the joomla 2.5, the menu module is named as mod_menu. so, i placed those html code in joomla2.5/template/template/default/html/mod_menu.
but then i got this error.
Fatal error: Call to undefined method modMenuHelper::render() in joomla2.5/template/template/default/html/mod_menu/default.php

how can i get rid of this?
VOTES:0
Srecko jovancevic Saturday, 21 July 2012
ERROR
Warning: Parameter 1 to JHTMLGrid::access() expected to be a reference, value given in /www/libraries/joomla/html/html.php


on line 87 change this to

return call_user_func_arra
y( array( $className, $func ), $args );
[size=x-small][/size]

to
return call_user_func_array( array( $className,
$func ), &$args );
VOTES:1
helped me a lot
VOTES:0
Helped me a lot
VOTES:0
It solved my problem in minutes. Also do not forget to do

in /www/libraries/joomla/html/html.php


on line 87 change this

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

to

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

Krishna
VOTES:0
Awesome! Thanks heaps for this solution! Been banging my head on the wall already.
VOTES:0
Thank you this post really helps me lot thank you so much
VOTES:0
Problem Solved, Regards!
VOTES:0
Sometimes solutions are so simpel (when you know them...). Thank you
VOTES:0
Thanks a lot!, you saved me a lot of time :)
VOTES:0