Fatal error: Call to undefined function token_replace_all() in /var/www/drupal6/sites/all/modules/token/token_actions.module on line 126

Drupal 6.3, Both "token" and "token_actions" turned on. (version = "6.x-1.10", datestamp = "1203741911")
My steps:
1) Login as Admin
2) Make a new advanced action "Send tokenized e-mail..."
2.1) Subject
New user [user]

2.2) Body
[uid] User's ID
[mail] User's email address
[reg-date] User's registration date
[reg-since] Days since the user registered
[log-date] User's last login date
[log-since] Days since the user's last login
[date-in-tz] The current date in the user's timezone
[account-url] The URL of the user's profile page.
[account-edit] The URL the user's account editing page.
--
[site-url] The url of the current Drupal website.
[site-name] The name of the current Drupal website.
[site-slogan] The slogan of the current Drupal website.

3) Trigger: After a user account has been created
Assign the action above to the trigger
4) logout
5) register a new user
enter username and valid email
6) Seen the error message
Fatal error: Call to undefined function token_replace_all() in /var/www/drupal6/sites/all/modules/token/token_actions.module on line 126

line 126 of token_actions.module

  $recipient = token_replace_all($context['recipient'], $context);

Hope I provide enough info to reproduce the bug?

Comments

greggles’s picture

Status: Active » Closed (duplicate)

I believe that if you update to a current version of 6.x-1.x-dev that this bug will be fixed. It was fixed on May 4th: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/token/token...

#242944: Fatal error line 126 - token_replace_all vs. token_replace_multiple.

Nick Fedchik’s picture

Thank You!

Can't believe than this bug still in stable version of the token module six months long...
I update stable module by devel, and successfully register new user and receive notifications email.
But some tags didn't replaced by values:
...
[uid] User's ID [mail] User's email address [reg-date] User's
registration date [reg-since] Days since the user registered [log-date]
User's last login date [log-since] Days since the user's last login
[date-in-tz] The current date in the user's timezone [account-url] The URL of
the user's profile page. [account-edit]
...

greggles’s picture

Glad to know that helped. I'll make a stable release soon.

If there are problems with specific tokens then please look for an issue for those and, if there isn't an existing issue, create a new issue for the token that isn't working properly.