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.
Please note
on account setting page the following lines are repeated several time above the account setting area:
# Notice: Undefined variable: replacements in poll_tokens() (line 90 of /home/example/public_html/subdomain/modules/poll/poll.tokens.inc).
# Notice: Undefined variable: replacements in statistics_tokens() (line 62 of /home/example/public_html/subdomain/modules/statistics/statistics.tokens.inc).
I know it is in development, hope this might help.
Best wishes
Danish
Comment | File | Size | Author |
---|---|---|---|
#1 | 602200-undefined_variable-hook_token-1.patch | 1.4 KB | stBorchert |
Comments
Comment #1
stBorchertVariable
$replacements
hasn't been definied in both implementations ofhook_tokens
.The patch adds
$replacements = array()
to them.Comment #2
harrisben CreditAttribution: harrisben commentedThe errors no longer appear, thanks for the fix.
Comment #3
webchickCommitted to HEAD. Thanks!