Jump to content
Sign in to follow this  
NikhilK

Zend Framework Error

Recommended Posts

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;
}

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.