checkAction() fatal error. Unknown action ID: 0 HELP!!!!!!

I have a problem with one of my modules, as admin I can view all listings.

As a guest I can view all listings

 

If I log in as a regular user, I can view my own listings, but if I try to view others, I get the following error

checkAction() fatal error. Unknown action ID: 0

 

This only applies to one module, all others are fine.

 

Only found this error today, after my site that Ive been working on for ages, went into beta testing with real users....! 

 

Any idea what could be causing this error under these conditions???

Quote · 9 Dec 2011

can't tell much with that little information but look like wrong id is assigned in checkAction function.

so much to do....
Quote · 11 Dec 2011

I have the same issue, i just found out. But only in the groups forum. I.e. if you go to the forum through a group.

If i go to the orca forum it self, then i dont have this issue.

This is what happens:

When I log in as admin, go to a group and post a new topic or a new post in the forum, everything works fine, in all browsers.

If I log in as a user on the other hand and do the same, the page will not reload after i hit the send button (after i have written a new topic for example) The topic is written though, its just not the page reload/redirect that works.

I use Charles Proxy to track this kind of issues and it tells me i get this response: <br /><b>checkAction()</b> fatal error. Unknown action ID: 0<br />

Logged in with the admin account i get this response for the same action:


<script language="javascript" type="text/javascript">

    if (!1)
        window.parent.alert ('Some or all files upload failed');

    if (window.parent.document.getElementById('tinyEditor'))
        window.parent.tinyMCE.execCommand('mceRemoveControl', false, 'tinyEditor');

    window.parent.document.f.selectTopic('ggggggggggggg');

</script>

 

This checkAction function is located in forum/integrations/base/callback.php

I have no idea how to fix this or what is causing it, but if anyone recognizes the issue please let me/us know or if you need more information.

I'm using Dolphin 7.0.9

Quote · 25 Feb 2012

Im looking into the integrations/base/callback.php now and yes that is where the check for action id is done.

I just want to add that I have tested with users that has all actions allowed

'forum public read', 'forum public post', 'forum private read', 'forum private post', 'forum search', 'forum edit all', 'forum delete all', 'forum make sticky', 'forum del topics', 'forum move topics', 'forum hide topics', 'forum unhide topics', 'forum hide posts', 'forum unhide posts', 'forum files download

 

There must be some other check that is done.

 

Please please pretty please someone have look at this.

Quote · 25 Feb 2012

After tinkering around with the code in callback.php i have narrowed it down a bit (maybe, im not a php dev :)

If i for example set the first $iActionId variable to 1 here (instead of BX_FORUM_PUBLIC_POST), then it starts to work:

 

function onNewTopic ($iForumId, $sTopicSubject, $sTopicText, $isTopicSticky, $sUser, $sTopicUri) {
 
    $oProfile = new BxDolProfile ($sUser);
 
    if (isAdmin($oProfile->_iProfileID)) { 
        $fdb = new DbForum ();
        $aForum = $fdb->getForum($iForumId, false);        
        $iActionId = BX_FORUM_PUBLIC_POST;
        if (isset($aForum['forum_type']) && 'private' == $aForum['forum_type'])
            $iActionId = BX_FORUM_PRIVATE_POST;
        checkAction($oProfile->_iProfileID, $iActionId, true); // perform action
    }
 
    $a = array ($iForumId, $sTopicSubject, $sTopicText, $isTopicSticky, $sUser);
    $oAlert = new BxDolAlerts('bx_forum', 'new_topic', $sTopicUri, $a);
    $oAlert->alert();
}

 

It seems like it doesn't do a proper check for BX_FORUM_PUBLIC_POST, since that one is set for all these users. otherwise they wouldn't be able to post in the normal forum either, where it works.

Quote · 25 Feb 2012
 
 
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.