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.
Hello,
After enabling rules module I'm getting a white page with this error on clicking a short url (with no forwarding to actual link)
Fatal error: Call to undefined function user_access() in /path/to/drupal/sites/all/modules/rules/rules.module on line 1190
Is there any configuration I need to do with Rules?
Thanks in advance
Comment | File | Size | Author |
---|---|---|---|
#2 | rules_play_nice_with_shurly.patch | 583 bytes | nathanhilbert |
Comments
Comment #1
quicksketchIt sounds as though you may have a rule set up to execute on every page that requires an access check. Since Recurly redirects on hook_boot() (which is before a lot of Drupal sub-systems are loaded, for efficiency), these access checks may not process correctly. You should check your Rules that are set up to execute on every page and try to narrow them down to particular URL paths where they are needed.
Comment #2
nathanhilbert CreditAttribution: nathanhilbert commentedRules is calling a hook_exit for all pages, which checks user access that is not available in _boot. This patch for rules verifies that user_access function is available.
Comment #3
quicksketchI meant to say "Since ShURLy redirects" here.
Thanks @nathanhilbert for your patch. This should be moved to Rules module.
Comment #4
rv0 CreditAttribution: rv0 commentedSeems fine to me.
Comment #6
fagoafaik that's fixed in the latest version.
Comment #6.0
fagoadded more debug information