Warning: Invalid argument supplied for foreach() in /sites/metalexpo/metal-expo.ru/vendor/as/navigation/src/AsNavigation/Navigation/Model.php on line 70

Fatal error: Uncaught Zend\Navigation\Exception\InvalidArgumentException: Invalid argument: $pages must be an array, an instance of Traversable or an instance of Zend\Navigation\AbstractContainer in /sites/metalexpo/metal-expo.ru/vendor/zendframework/zendframework/library/Zend/Navigation/AbstractContainer.php:146 Stack trace: #0 /sites/metalexpo/metal-expo.ru/module/Pages/src/Pages/Listener/NavigationListenerAggregate.php(72): Zend\Navigation\AbstractContainer->addPages(NULL) #1 [internal function]: Pages\Listener\NavigationListenerAggregate->loadDefaultNavigation(Object(Zend\Mvc\MvcEvent)) #2 /sites/metalexpo/metal-expo.ru/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #3 /sites/metalexpo/metal-expo.ru/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('route', Object(Zend\Mvc\MvcEvent), Object(Closure)) #4 /sites/metalexpo/metal-expo.ru/vendor/zendframewo in /sites/metalexpo/metal-expo.ru/vendor/zendframework/zendframework/library/Zend/Navigation/AbstractContainer.php on line 146