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.
I get following white page error message after changing a users role
Fatal error: Call to undefined function token_get_values() in drupal7/sites/all/modules/role_change_notify/role_change_notify.module on line 227
Comment | File | Size | Author |
---|---|---|---|
#2 | role_change_notify.remove_token_get_values.patch | 612 bytes | rfay |
Comments
Comment #1
rfayConfirmed - A leftover from D6... that only happens if the D7 contrib token module is enabled. That must be why people were able to use this.
Comment #2
rfayHere's a patch that just removes that hunk. I'll ask davereid if it's the right thing to do. I don't think this flush is required any more.
Comment #3
Dave ReidYeah there's no caching of token values at all in D7 since they are lazy-generated, so as long as you're providing an up-to-date $account object to token_replace(), you should be fine.
Comment #5
rfayThanks, @davereid.
Committed: b842109
This will be in the next dev. I'll roll a release someday if there's no negative feedback (or if anybody requests it)