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.30-0+deb8u1 (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/system/helpers/block_helper.class.php:36]
#4  BB_block_helper::get_page() called at [/var/www/giacob/protected/system/helpers/block_helper.class.php:77]
#5  BB_block_helper::load_page() called at [/var/www/giacob/protected/system/helpers/block_helper.class.php:20]
#6  BB_block_helper::init() called at [/var/www/giacob/web/themes/agenzianova/views/frontend.php:10]
#7  include(/var/www/giacob/web/themes/agenzianova/views/frontend.php) called at [/var/www/giacob/protected/system/core/common.php:260]
#8  BB_include() called at [/var/www/giacob/protected/system/core/view.component.php:155]
#9  BB_view->load_view_file() called at [/var/www/giacob/protected/system/core/view.component.php:193]
#10 BB_view->load_composite_file() called at [/var/www/giacob/protected/system/core/view.component.php:217]
#11 BB_view->generate_output() called at [/var/www/giacob/protected/system/core/BB.component.php:171]
#12 BB->run() called at [/var/www/giacob/protected/system/core/bootstrap.php:52]
#13 require_once(/var/www/giacob/protected/system/core/bootstrap.php) called at [/var/www/giacob/web/agenzianova_prod.php:16]