Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
pebels CreditAttribution: pebels commentedI 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
Comment #2
dalad CreditAttribution: dalad commentedI 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
Comment #3
travelerttComment #4
travelertt@pebels Did you have Rules 2 enabled? This may be a dependency issue.
Comment #5
dalad CreditAttribution: dalad commentedFixed in latest dev
Comment #6.0
(not verified) CreditAttribution: commentedFormatted text for readability. Added current status of Rules 2 integration.