Module needs to be refactored to work with Rules 2. Current task list includes:

  • avatarapproval.rules.inc error on line 84 rules_events_global_user_argument() function doesn't exist

Enabling module throws this error, and disables the Drupal site with a 500 error:

Fatal error: Call to undefined function
rules_events_global_user_argument() in
/sites/all/modules/contrib/avatarapproval/avatarapproval.rules.inc
on line 84

Comments

pebels’s picture

I am having the same error in Drupal 7. The installation seems to be correct, but when I try to enable and I push the save button in modules list I receive the same error.

Fatal error: Call to undefined function rules_events_global_user_argument() in sites/all/modules/avatarapproval/avatarapproval.rules.inc on line 84

dalad’s picture

I acknowledge this error, it happens because there is the need to rewrite the implementation of avatarapproval to work with rules 2. If you don't need rules for avatarapproval simply remove file avatarapproval.rules.inc and the avatarapproval_rules() hook in avatarapproval.module and the error will not show up.

Sadly I haven't yet found the time to fix this. Any contribution to the rules implementation is welcome

travelertt’s picture

Title: avatarapproval.rules.inc error on line 84 rules_events_global_user_argument() function doesn't exist » Rewrite implementation for Rules 2
travelertt’s picture

@pebels Did you have Rules 2 enabled? This may be a dependency issue.

dalad’s picture

Status: Active » Fixed

Fixed in latest dev

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Formatted text for readability. Added current status of Rules 2 integration.