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.
hi,
what do you think is the Reason,
when I finish to order some products, and session_limit module enable I get:
•Notice: Undefined variable: replacements in session_limit_tokens() (line - 71 C:\wamp\www\mysite\sites\all\modules\session_limit\session_limit.tokens.inc).
What do you think is the reason?
thanks a lot.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1384652-undefined_var_notice_fix.patch | 521 bytes | snufkin |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedNo clue, never used the module. Obviously there's something odd in the token definition there, and perhaps the Rule to send an order notification e-mail just turned it up.
Comment #2
ntigh52 CreditAttribution: ntigh52 commentedThanks rszrama,
Its also when I change user role - the same problem.
example:
from •Anonymous user to •Authenticated user.
or from •Authenticated user to some role else...
any Solutions to someone?
Thanks/
Comment #3
snufkin CreditAttribution: snufkin commentedThe issue is that the module did not define the $replacements variable in its hook_tokens implementation. Patch fixes this notice.
Comment #4
snufkin CreditAttribution: snufkin commentedComment #5
ntigh52 CreditAttribution: ntigh52 commentedsnufkin,
I dont know how to install a patch,
But I opened your patch and added the line ( 1 line ) that you define the $replacements variable in its hook_tokens implementation. ( on the place that I saw in your patch ).
Its work!!!
Well done.
Thanks a lot.
Comment #6
snufkin CreditAttribution: snufkin commentedComment #7
deekayen CreditAttribution: deekayen commentedcommitted