ERROR [2] Invalid argument supplied for foreach()
Fatal error on line 99 in file /var/www/giacob/protected/modules/core/model/core_pages.php, PHP 5.6.40-0+deb8u2 (Linux)
Aborting...
#0  BB_error_handler() called at [/var/www/giacob/protected/modules/core/model/core_pages.php:99]
#1  core_pages->_load_pages_refs() called at [/var/www/giacob/protected/modules/core/model/core_pages.php:83]
#2  core_pages->_load_tree() called at [/var/www/giacob/protected/modules/core/model/core_pages.php:78]
#3  core_pages->core_pages() called at [/var/www/giacob/protected/nodes/menu/menu/menu_menu_node.component.php:76]
#4  BB_menu_menu_node->load_render_data() called at [/var/www/giacob/protected/system/core/node.component.php:291]
#5  BB_node->render() called at [/var/www/giacob/protected/system/core/block.component.php:147]
#6  BB_block::render() called at [/var/www/giacob/protected/system/helpers/block_helper.class.php:263]
#7  BB_block_helper::render_block() called at [/var/www/giacob/protected/system/helpers/block_helper.class.php:228]
#8  BB_block_helper::render_blocks() called at [/var/www/giacob/web/themes/agenzianova/views/frontend.php:82]
#9  include(/var/www/giacob/web/themes/agenzianova/views/frontend.php) called at [/var/www/giacob/protected/system/core/common.php:260]
#10 BB_include() called at [/var/www/giacob/protected/system/core/view.component.php:155]
#11 BB_view->load_view_file() called at [/var/www/giacob/protected/system/core/view.component.php:193]
#12 BB_view->load_composite_file() called at [/var/www/giacob/protected/system/core/view.component.php:217]
#13 BB_view->generate_output() called at [/var/www/giacob/protected/system/core/BB.component.php:171]
#14 BB->run() called at [/var/www/giacob/protected/system/core/bootstrap.php:52]
#15 require_once(/var/www/giacob/protected/system/core/bootstrap.php) called at [/var/www/giacob/web/agenzianova_prod.php:16]