When we deleted all the menus in Joomla an error message appears as given below. All the menus in Joomla can be deleted from the admin panel “Menu Manager“. But the fact to be remembered is that, it is not advisable to delete all the menus in Joomla.
At least the “Main Menu *” (Having a * symbol.) should not be deleted under any circumstances. Otherwise get ready for the below error message. This may be called an major limitation of Joomla. But still then with all other advantages Joomla rocks…
Error : Warning: Invalid argument supplied for foreach()
in /var/www/webxx/html/cms/
libraries/joomla/application/
menu.php on line 64