NikhilK Posted June 8, 2018 Share Posted June 8, 2018 I am getting below error while accessing by website having PHP 5.4 version running on REHL-7 with Zend framework as 1.11.11. Can anyone help in resolving the below issue. Error:: "Argument 1 passed to Zend_View_Helper_Navigation_HelperAbstract::setAcl() must be an instance of Zend_Acl, boolean given, called in /var/www/html/amov/library/Buza/Controller/Plugin/Navigation.php on line 48 and defined', '/var/www/html/amov/library/Zend/View/Helper/Navigation/HelperAbstract.php', 333" Code in Navigation.php file: $view = $layout->getView(); $view->navigation($navigation) ->pikeMenu() ->setACL(Zend_Registry::get('acl')) ->setRoles(Zend_Auth::getInstance()->getIdentity()->getRoles()); Code in HelperAbstract.php file: public function setAcl(Zend_Acl $acl = null) { $this->_acl = $acl; return $this; } Quote Link to comment https://forums.phpfreaks.com/topic/307359-zend-framework-error/ Share on other sites More sharing options...
requinix Posted June 8, 2018 Share Posted June 8, 2018 That "acl" in the Zend_Registry doesn't exist. Or doesn't yet exist when that code is running. Obligatory comment that PHP 5.4 is ridiculously old and that if you're working on something new (which I suspect is not the case) then you must upgrade. Oh wait you have a thread for that. Quote Link to comment https://forums.phpfreaks.com/topic/307359-zend-framework-error/#findComment-1558854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.