Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid argument supplied for foreach() #32

Closed
sprankhub opened this issue Feb 22, 2016 · 1 comment
Closed

Invalid argument supplied for foreach() #32

sprankhub opened this issue Feb 22, 2016 · 1 comment
Labels

Comments

@sprankhub
Copy link
Collaborator

With the latest release 1.5.1, I get a warning when loading the page. Here is the relevant part of it:

Warning: Invalid argument supplied for foreach()  in /var/www/myshop/.modman/TheExtensionLab_MegaMenu/app/code/community/TheExtensionLab/MegaMenu/Model/Menu/Populator.php on line 23

#0 /var/www/myshop/.modman/TheExtensionLab_MegaMenu/app/code/community/TheExtensionLab/MegaMenu/Model/Menu/Populator.php(23): mageCoreErrorHandler(2, 'Invalid argumen...', '/var/www/chiptu...', 23, Array)
#1 /var/www/myshop/.modman/TheExtensionLab_MegaMenu/app/code/community/TheExtensionLab/MegaMenu/Model/Menu/Populator.php(38): TheExtensionLab_MegaMenu_Model_Menu_Populator->_addCategoriesToMenuParentNode(NULL, Object(Varien_Data_Tree_Node), Object(Mage_Page_Block_Html_Topmenu), true)
#2 /var/www/myshop/.modman/TheExtensionLab_MegaMenu/app/code/community/TheExtensionLab/MegaMenu/Model/Menu/Populator.php(18): TheExtensionLab_MegaMenu_Model_Menu_Populator->_addCategoriesToMenuParentNode(Array, Object(Varien_Data_Tree_Node), Object(Mage_Page_Block_Html_Topmenu), true)
#3 /var/www/myshop/.modman/TheExtensionLab_MegaMenu/app/code/community/TheExtensionLab/MegaMenu/Model/Observer.php(23): TheExtensionLab_MegaMenu_Model_Menu_Populator->addCategoriesToMenu(Object(Varien_Data_Tree_Node), Object(Mage_Page_Block_Html_Topmenu))
#4 /var/www/myshop/shop/app/code/core/Mage/Core/Model/App.php(1358): TheExtensionLab_MegaMenu_Model_Observer->pageBlockHtmlTopmenuGetHtmlBefore(Object(Varien_Event_Observer))
#5 /var/www/myshop/shop/app/code/core/Mage/Core/Model/App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(TheExtensionLab_MegaMenu_Model_Observer), 'pageBlockHtmlTo...', Object(Varien_Event_Observer))
#6 /var/www/myshop/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('page_block_html...', Array)
#7 /var/www/myshop/shop/app/code/core/Mage/Page/Block/Html/Topmenu.php(75): Mage::dispatchEvent('page_block_html...', Array)
#8 /var/www/myshop/.modman/TheExtensionLab_MegaMenu/app/design/frontend/base/default/template/theextensionlab/megamenu/page/html/topmenu.phtml(20): Mage_Page_Block_Html_Topmenu->getHtml('level-top')

Flat tables enabled and built.

@JamesAnelay
Copy link
Member

Ok thanks, I see that now with developer mode enabled, fix to follow shortly.

JamesAnelay added a commit that referenced this issue Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants