I think I originally posted this in the wrong place (the Tokens module). Sorry.

I'm getting the subject error message when I go to configuration/actions.

I found a reference to the error in the Tokens module discussions. It says this was fixed in September 2010. I don't know if my error is from Tokens or not; but my Actions don't work.

If it's been fixed, WHERE'S THE FIX? If not, is there any way to work around this?

Thanks

Comments

CharlieCastle’s picture

Anyone. How can I get the Actions to work?

rj’s picture

Read the response by Dave Reid: http://drupal.org/node/883944#comment-4430736. You need to delete the tokens module and then install the new module.

--rj

CharlieCastle’s picture

Thanks for the feedback.

I think I was off base by connecting my issue to the token module since I don't have that module in D7 and D7 is my first Drupal version. So, whatever the problem, it's not in the token module.

But the problem persists. I'm unable to get any actions/triggers to work.

I'm trying to send myself an email when a new user registers. It never happens.

And the Actions page shows many nasty error messages all saying:

"Notice: Undefined index: label in actions_actions_map() (line 219 of C:\xampp\htdocs\drupal\includes\actions.inc)."

FWIW, here's the function containing line 219:
function actions_actions_map($actions) {
$actions_map = array();
foreach ($actions as $callback => $array) {
$key = drupal_hash_base64($callback);
$actions_map[$key]['callback'] = isset($array['callback']) ? $array['callback'] : $callback;
$actions_map[$key]['label'] = $array['label']; < $actions_map[$key]['type'] = $array['type'];
$actions_map[$key]['configurable'] = $array['configurable'];
}
return $actions_map;
}

I've tried deleting all actions and re-entering. That didn't help.

What else can I try?

Thanks, CC

jeramy’s picture

Same issue. This does not appear to actually be connected to the Token module as I have completely removed Token from my installation and all reference to it in my DB. I am not yet sure what is causing the error messages.

I get the error message listed six times when viewing admin/config/system/actions:
Notice: Undefined index: label in actions_actions_map() (line 221 of /includes/actions.inc).

and in my Error logs:
TYPE php
DATE Thursday, April 12, 2012 - 12:33
USER jeramy
LOCATION http://mysite.com/admin/config/system/actions?render=overlay
REFERRER http://mysite.com/
MESSAGE Notice: Undefined index: label in actions_actions_map() (line 221 of /includes/actions.inc).
SEVERITY notice
HOSTNAME me
OPERATIONS

Any help would be greatly appreciated.

socialnicheguru’s picture

I have been getting this on my sites.

I noticed over time that there were more or fewer errors and different ones.
http://drupal.org/node/883944#comment-5986304

taking a look at devel and krumo and dpm'ing lines starting with 221 in actions.inc I see that the certain modules define actions that do don't define label, type, or configurable for whatever reason.

dpm($actions);
dpm($array);
dpm($array['label']);
    $actions_map[$key]['label']        = $array['label'];
    $actions_map[$key]['type']         = $array['type'];
    $actions_map[$key]['configurable'] = $array['configurable'];

In my case the actions are:
Send SMS
Toggle a Custom Publishing Option off
Toggle a Custom Publishing Option on

Is there a way to check if these items are defined?
It would be great if every module developer put these items in, but many might not.
It would be helpful if Drupal did the right thing in this case

http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.

Pittbull’s picture

Is there any patch for this issue? I got the same problem.