Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After I updated my site with last 6.x-1.x-dev version, all the [comment-since] token appearances are changed with a word "Array".
Comment | File | Size | Author |
---|---|---|---|
#15 | 939082-submittedby-fix-tokens.patch | 5.79 KB | Dave Reid |
#13 | 939082-submittedby-fix-tokens.patch | 5.79 KB | Dave Reid |
#12 | 939082-submittedby-fix-tokens.patch | 4.28 KB | Dave Reid |
#4 | Firefox001.jpg | 24.74 KB | alohaglide |
Comments
Comment #1
Dave ReidCheck your admin/reports/status page to see if you get a warning about more than one module defining the [comment-since] token. If so, please report back here what it says.
Comment #2
yngens CreditAttribution: yngens commentedThere were yesterday, but after I updated couple of modules, they disappeared. Right now there are no errors on status page. However, [comment-since] is still displayed as Array. I tried to change it to any other time-date related token and they all work correctly. Only this one gives error.
Comment #3
alohaglide CreditAttribution: alohaglide commentedHave a similar problem with [node-url] returning "Array".
A workaround of [site-url][node-path] works.
running token 6.x-1.15
Comment #4
alohaglide CreditAttribution: alohaglide commentedAh, node-url tokens being defined by multiple modules.
Comment #5
yngens CreditAttribution: yngens commentedNot sure if my new issue has something with the previous one, but after activating comment uploads and trying to upload a picture I got:
Comment #6
yngens CreditAttribution: yngens commentedHave found this unanswered thread #933374: Warnings when using Stringoverride
Comment #7
jthomasbailey CreditAttribution: jthomasbailey commentedGoing back to 6.x-1.1.4 fixes it but I can't figure out what's causing it in the newest release
Comment #8
Dave ReidComment #9
ju.ri CreditAttribution: ju.ri commentedI also get this message on the status page:
Duplicate tokens
* node:node-url (defined by modules: token, notifications_content)
There is a patch in the Notifications.module issue cue here:
http://drupal.org/node/845250
Comment #10
fizk CreditAttribution: fizk commentedI just ran into this issue of [comment-since] token producing the word "Array".
The status page doesn't show any duplicate tokens.
However, if I disable the [comment-since] token replace in the submitted_by module, the problem goes away.
Comment #11
Dave ReidYep, submitted_by is the problem. It doesn't show up as a problem in the status report as the module defines it's token_list wrongly and doesn't return any token information if $type == 'all'. Grr.
Comment #12
Dave ReidComment #13
Dave ReidComment #14
Dave ReidAdding token tag.
Comment #15
Dave ReidComment #16
ckngThe $values should be $tokens instead.
Need some documentation on the
- corresponding token version to use
- list of tokens removed/replaced
Replaced:
[created-since] -> [since]
Removed:
[last-edit-medium]
[last-edit-large]
[last-edit-hh]
[last-edit-ii]
[last-edit-ss]
Comment #17
Ayesh CreditAttribution: Ayesh commentedSub
Comment #18
pawel_r CreditAttribution: pawel_r commentedchange pointed out in#16 worked for me.
Comment #19
NancyDru6.x-1.x is no longer supported.