How to Track Down an Actions Issue.

checkAction() fatal error. Unknown action ID: 0

This occurs when a regular user goes to visit a profile.  Admins are not affected.  How can I track down this missing action?

Geeks, making the world a better place
Quote · 5 Mar 2014

This happens most typically when creating a module from an existing module and messing up on the classes. When changing from one name to another make sure that the Capitalization is correct. If not sure what it is exactly, remove all blocks from profile page and see if you have the same error. If not, then put blocks back into active section one by one till you find the offending block.

caredesign.net
Quote · 5 Mar 2014

I tracked this down to a particular module I installed, now to see why.  I assume I need to examine the SQL install file.

Geeks, making the world a better place
Quote · 5 Mar 2014

is it a module that you tried to create from another module, or did you make changes to that module? It may not be the sql file at all.

caredesign.net
Quote · 5 Mar 2014

 

is it a module that you tried to create from another module, or did you make changes to that module? It may not be the sql file at all.

Yes, I made some changes to a module; so what you are saying is that the action is not matching up properly? Yes, looking at the sql didn't show anything.

Geeks, making the world a better place
Quote · 5 Mar 2014

The most common reason is a capitalization issue. A lowercase letter is capitalized when it should not be or vice versa. What module is it?

caredesign.net
Quote · 5 Mar 2014

There is a membership action that is being called in the module for which there is no entry in the `sys_acl_actions` table or its not defined in the module.

To Troubleshoot, see below :

Open inc/membership_levels.inc.php

Find the function checkAction

Place this code snippet just inside the function :

if(!$actionID){
   debug_print_backtrace();
}


It will then print out on the screen the section of code that is triggering the problem.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 5 Mar 2014

Thanks Modzzz.  I fixed the issue but will note Modzzz's directions for future problems.

Geeks, making the world a better place
Quote · 5 Mar 2014

Fill us in GG, please on your resolution.

@modzz, great tip. Thanks for it

caredesign.net
Quote · 5 Mar 2014

 

Fill us in GG, please on your resolution.

@modzz, great tip. Thanks for it

Professor, It was probably as you said.  I decided to just run through the renaming process and was more careful; if there was one error there could have been others so I decided to just redo it.

Geeks, making the world a better place
Quote · 5 Mar 2014
 
 
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.