After enabling latest 7.x-1.x-dev in latest drupal 7.x-dev I get this:

Notice: Undefined index: label in actions_actions_map() (line 219 of ../includes/actions.inc).

...when visiting the System -> Actions page (../admin/config/system/actions). The message repeats itself 3 times.

Comments

Dave Reid’s picture

Status: Active » Fixed

Fixed in CVS with http://drupal.org/cvs?commit=424560. Thank you for reporting this issue!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

CharlieCastle’s picture

As the message above says, this was fixed in September 2010.

BUT WHERE'S THE FIX?

I'm getting this message and my actions don't work.

How do I fix it?

Dave Reid’s picture

It was fixed because the token_actions module was removed from Token module since they duplicated Drupal 7 core actions. Make sure to use the proper procedure when updating a module to delete the old module's folder, then copy in the new version.

CharlieCastle’s picture

Thanks for the feedback.

I'm new to Drupal and started with D7.

AFAICS, I don't have a tokens module.

The nearest thing I have is Entity tokens 7.x-1.0-beta8.

Does Actions work w/o tokens or do I have to install the beta?

Anyway, I'm still getting the error message mentioned in this thread.

Thanks, CC

joschy3d’s picture

same here, new Drupal 7 installation and six times under actions:

Notice: Undefined index: label in actions_actions_map() (line 218 of /.../includes/actions.inc).

jeramy’s picture

Status: Closed (fixed) » Active

I am still getting this same error: Undefined index: label in actions_actions_map()

I am running Token 7.x-1.0 supporting Pathauto 7.x-1.0.
I have completely removed Token and deleted its folder, then copied the new files in and cleared my caches.
I still 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

Dave Reid’s picture

Status: Active » Closed (fixed)

Please see #4.

jeramy’s picture

Sorry Dave, I had assumed this was associated with Token based on the previous posts and that was incorrect.

There are some users seeing this same error message but it is evidently not related to the Token module, as I have completely removed it for testing.

For anyone else experiencing this issue there is a thread under Support > Post Installation:
http://drupal.org/node/1147984#comment-5878488

Thanks.

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.

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

SocialNicheGuru’s picture

Project: Token » Drupal core
Version: 7.x-1.x-dev » 7.14
Component: Token Actions » trigger.module
Status: Closed (fixed) » Active

Since this is a core issue (and they might push back and say it's a module devleoper issue), I am changing the project.

It should be against the actions module, but I did not see it in the drop down.

Thanks!

Dave Reid’s picture

Component: trigger.module » base system
Status: Active » Postponed (maintainer needs more info)

Not really a core problem. This is a bug in whatever modules provide the actions indicated in #10.

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Please file issues with the following modules that they are missing 'label' defined in their hook_action_info() implementations:
http://drupal.org/project/issues/custom_pub
http://drupal.org/project/issues/smsframework

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.