checkAction() fatal error. Unknown action ID: 0

Hello, everyone !
Now I'm developing a module that's based on the store module and almost completely repeat all the store functionality. So I change all necessary parts (class names, constants, language keys, config file etc.), then of course installing / uninstalling it several times and check all other functionality. Everything works fine, but there's one confusing problem, when I enter to my module home page from the main page as not logged (guest) user, this error appeared: checkAction() fatal error. Unknown action ID: 0.
I don't know where's lying main problem, so if there are some advices or thoughts, please help.

     

Quote · 22 May 2013

It has to do with your sys_acl_actions table.

Look for code like this....

 function isAllowedView ($aDataEntry, $isPerformAction = false) {
 
        // admin and owner always have access
        if ($this->isAdmin() || $aDataEntry['author_id'] == $this->_iProfileId) 
            return true;
 
        // check admin acl
        $this->_defineActions();
        $aCheck = checkAction($this->_iProfileId, BX_STORE_VIEW_PRODUCT, $isPerformAction);
        if ($aCheck[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED)
            return false;
 
        // check user group
        return $this->_oPrivacyProduct->check('view_product', $aDataEntry['id'], $this->_iProfileId); 
    }

BX_STORE_VIEW_PRODUCTS is what you would be looking for in this example.

You'll have to find the action you haven't defined in sys_acl_actions and add it.

http://www.mytikibar.com
Quote · 22 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.