Posted by saiprasad kandavalli on September 18, 2012 at 9:33am
5 followers
Jump to:
| Project: | Token |
| Version: | 7.x-1.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi all,
When i am upgrading token module from "7.x-1.0-beta4" to "7.x-1.3", got an error
"Fatal error: Cannot redeclare token_replace() (previously declared in /drupal7/includes/token.inc:79) in /drupal7g/sites/all/modules/token/token.module on line 216".
Please give me suggestions.
Comments
#1
Please reply me asap
#2
fixed.
#3
HI saiprasad.
I am having the same prob during the upgrade from d6 to d7.
Could you please post what was the soultion for your case ?
Thx
#4
Hi ronline,
its fixed on next version of token module (7.x-1.4)
#5
Thanks devs for the prompt fix.
#6
Funny, I nothing changed with token_replace() because it's provided by Drupal core and not Token module. You must have had some outdated code, or something duplicate somewhere. I didn't fix anything.
#7
Issue still there.
[Sat Mar 02 16:16:14 2013] [error] [client 192.168.1.12] PHP Fatal error: Cannot redeclare token_replace() (previously declared in /var/www/ronline/www/includes/token.inc:79) in /var/www/ronline/www/sites/all/modules/token/token.module on line 216
Isn’t it related to including token in D7 core?
We can see that the function is firstly being declared in www/includes/token.inc and then it clashes with sites/all/modules/token/token.module.
#8
You must be using the Drupal 6 version of the module with Drupal 7 core, which of course will cause lots of problems.
#9
#10
Automatically closed -- issue fixed for 2 weeks with no activity.