ERROR [2] Invalid argument supplied for foreach()
Fatal error on line 397 in file /var/www/giacob/protected/lib/backend/widgets/fields/backend_field_relationmultiple.class.php, PHP 5.6.40-0+deb8u2 (Linux)
Aborting...
#0  BB_error_handler() called at [/var/www/giacob/protected/lib/backend/widgets/fields/backend_field_relationmultiple.class.php:397]
#1  BB_Widget_Backend_Field_Relationmultiple->_load_foreign_values() called at [/var/www/giacob/protected/lib/backend/widgets/fields/backend_field_relationmultiple.class.php:62]
#2  BB_Widget_Backend_Field_Relationmultiple->BB_Widget_Backend_Field_Relationmultiple() called at [/var/www/giacob/protected/lib/backend/widgets/forms/backend_form.class.php:157]
#3  BB_Widget_Backend_Form->create_model_field() called at [/var/www/giacob/protected/lib/backend/widgets/forms/backend_form.class.php:121]
#4  BB_Widget_Backend_Form->create_model_fields() called at [/var/www/giacob/protected/lib/backend/widgets/forms/backend_form.class.php:36]
#5  BB_Widget_Backend_Form->BB_Widget_Backend_Form() called at [/var/www/giacob/protected/lib/backend/actions/backend_action.class.php:119]
#6  BB_backend_action->create_form() called at [/var/www/giacob/protected/lib/backend/actions/backend_action_manage.class.php:24]
#7  BB_backend_action_manage->BB_backend_action_manage() called at [/var/www/giacob/protected/nodes/pages/list/pages_list_node.component.php:172]
#8  BB_pages_list_node->load_render_data() called at [/var/www/giacob/protected/system/core/node.component.php:291]
#9  BB_node->render() called at [/var/www/giacob/protected/system/core/block.component.php:147]
#10 BB_block::render() called at [/var/www/giacob/protected/system/helpers/block_helper.class.php:263]
#11 BB_block_helper::render_block() called at [/var/www/giacob/protected/system/helpers/block_helper.class.php:228]
#12 BB_block_helper::render_blocks() called at [/var/www/giacob/web/themes/agenzianova/views/frontend.php:101]
#13 include(/var/www/giacob/web/themes/agenzianova/views/frontend.php) called at [/var/www/giacob/protected/system/core/common.php:260]
#14 BB_include() called at [/var/www/giacob/protected/system/core/view.component.php:155]
#15 BB_view->load_view_file() called at [/var/www/giacob/protected/system/core/view.component.php:193]
#16 BB_view->load_composite_file() called at [/var/www/giacob/protected/system/core/view.component.php:217]
#17 BB_view->generate_output() called at [/var/www/giacob/protected/system/core/BB.component.php:171]
#18 BB->run() called at [/var/www/giacob/protected/system/core/bootstrap.php:52]
#19 require_once(/var/www/giacob/protected/system/core/bootstrap.php) called at [/var/www/giacob/web/agenzianova_prod.php:16]