Tuesday, June 26, 2012

Warning: Parameter 1 to IcemodMainMenuHelper::IcebuildXML()



For few days i had headache because of icemod menu which was installed in web site which i got zipped by Akeeba Backup tool based on Joomla.

Finally after many restores, i got notification in place where error appeared:
Warning: Parameter 1 to IcemodMainMenuHelper::IcebuildXML() expected to be a reference, value given in blah...blah...\libraries\joomla\cache\handler\callback.php on line 99
Googling the error i found solution for it:
1. Go to your Joomla files
2. Go to this directory \templates\...template name...\html\mod_mainmenu ( ...template name... - your template name )
3. Open to edit helper.php
4. Find line 31 with this code:
function IcebuildXML(&$params)
5. Delete "&" sign or replace the line with this one:
function IcebuildXML($params)


It helped me. Good luck you.

Source: http://www.icetheme.com/Forums/Feedback-regarding-IceTheme-Website/37034-the-problem-with-the-main-menu.html