Closed (fixed)
Project:
Token formatters
Version:
7.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2012 at 11:09 UTC
Updated:
31 May 2013 at 17:10 UTC
The message appears when the module is enabled (Tested with core 7.16).
After putting some tracing, the problem happen in the token_replace function in token.inc on calling
str_replace($tokens, $values, $text).
Example:
$text =[user:url]
$tokens = Array ( [0] => [user:url] )
When the module is NOT enabled:
$values = Array ([0] => http://localhost/wsc/en/user/5414 )
When the module is enabled:
$values = Array ([0] => Array
(
[0] => http://localhost/wsc/en/user/5414
[1] => http://localhost/wsc/en/user/5414
)
)
Comments
Comment #1
jpstrikesback commentedThis actually breaks all tokens anywhere with a URL it would appear
Comment #2
inventlogic commentedIf I enable this module with the Token Filter module it breaks Token Filter with this error.
Comment #3
dave reidI think I discovered this bug and have fixed it with http://drupalcode.org/project/token_formatters.git/commit/ae6fc17. Testing the most recent release or dev version would be great to confirm.