I see this message after module was installed:

Notice: Undefined index: label in function rules_rules_core_data_info_alter() (row 137 file Z:\home\mysite.ru\www\sites\all\modules\rules\modules\rules_core.rules.inc).

Comments

Shadlington’s picture

I also see this message after installing the module. I installed the absolute latest version direct from git.

jsheller’s picture

Unfortunately I get the same error message after activating the module. I installed 7.x-1.0-alpha1.

adam_b’s picture

+1 - same for me, six months later...

chriz001’s picture

I think this might be because the function voting_rules_get_types assumes you have node, user, comment and entity types, however if you dont have all of those enabled (i have comments disabled) then when it calls voting_rules_rules_data_info_alter it creates part of the data for those arrays wether they exist already or not.

chriz001’s picture

Here is a patch that will check if it should alter the data for those entities. cleans up a bit of whitespace too.

chriz001’s picture

Status: Active » Needs review

update status

henrijs.seso’s picture

Issue summary: View changes
Status: Needs review » Needs work

Patch works, but should be re-rolled for dev version (if patch applies cleanly to dev version, then version should be changed and RTBC status applied).

miteshmap’s picture

Status: Needs work » Needs review
StatusFileSize
new2.42 KB

Here's the patch worked for 7.x-1.x dev version.

miteshmap’s picture

Status: Needs review » Reviewed & tested by the community

https://www.drupal.org/node/1269362#comment-7586187 Patch submitted by @chriz001 works fine with 7.x-1.x, changing it to RTBC.

  • bluegeek9 committed 93a5743 on 7.x-1.x authored by miteshmap
    Issue #1269362 by chriz001, miteshmap: Notice: Undefined index: label in...
bluegeek9’s picture

Assigned: Unassigned » bluegeek9
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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