I updated to the latest version of token (1.18), and now Im receiving this error in log:
The _custom_links_build_links() function called token replacement with an array rather than a string for $text in.... /sites/default/modules/token/token.module on line 263.
Does something in this module need to be changed?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | custom_links.fix-token_replace-error.patch | 587 bytes | edegro |
Comments
Comment #1
elektrorl commentedSame problem. Token module update brings this problem too.
Comment #2
venusrising commentedWe too have this issue after Token same issue as with custom breadcrumbs
Comment #3
jnettikSame problem as #2 is having.
Comment #4
jnettikSo this looks like a problem with the offending modules. For custom_breadcrumbs there's a patch for the dev and stable releases in #1327960: Invalid use of token_replace API - causes preg_match_all errors in token module.
Comment #5
beyond67 commentedWill a patch be made for this module? Should this issue be brought up on the token issue log?
Comment #6
jnettikI think Token's maintainers will just say someone needs to submit a patch for this module. Nothing they can really do. Not sure if one is in the works for this module or not.
Comment #7
beyond67 commentedI hope someone does address this issue with a patch. Unfortunately, I am a novice when it comes to module development. The token module is a popular module that is used by many modules. So I can see this becoming a larger and lagging issue to those who use this module.
Comment #8
edegro commentedHere's a patch following the fixed used in the same custom_breadcrumbs issue. One of my old sites just happens to be using both modules...
Comment #9
AlexisWilke commentededegro,
That patch works fine, although I'm not too sure whether the is_string() test is required. Did you have a problem without it? I tried without the condition and it works for me.
Thank you.
Alexis