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 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 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 commentedThe issue is that the module did not define the $replacements variable in its hook_tokens implementation. Patch fixes this notice.
Comment #4
snufkin commentedComment #5
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 commentedComment #7
deekayen commentedcommitted