Page 1 of 1

menu.php error

Posted: Fri Jul 18, 2008 6:50 pm
by Tyofcore
Hello, ive been in the process of changing webhosts this week, I use joomla to build my site, loaded a template I had planned on using, but it had a menu in a spot where I didnt like, so deleted the module, now when i load my page up to view, i receive this error at the top of my site:

Warning: Invalid argument supplied for foreach() in /home/tyofcore/public_html/main/templates/jw_getty/menu/menu.php on line 64

Site still loads up, it just shows this error line at the very top.

joomla version 1.5 and i got the template off joomlaweb template is jw getty, if you needed to know which one.

if more info is needed lemme know and i will try to get it up there as soon as i can.

Thanks
Ty

Re: menu.php error

Posted: Fri Jul 18, 2008 7:18 pm
by Eran
We would need to see the code in menu.php, line 64 to know...
probably a foreach loop running on a variable that isn't an array. A check before the loop (is_array) should remove this error

Re: menu.php error

Posted: Fri Jul 18, 2008 7:20 pm
by Benjamin
Can't you just turn off the menu via the admin panel? I would think that would be the proper solution rather than just deleting files and breaking the code base.

Re: menu.php error

Posted: Fri Jul 18, 2008 7:42 pm
by RobertGonzalez
That file that is throwing the error is trying to do array work on a non array. That is why you are getting that error.

I say go with astions' suggestion and see if you can handle that through a GUI of some sort.