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".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

Check 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.

yngens’s picture

There 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.

alohaglide’s picture

Have a similar problem with [node-url] returning "Array".

A workaround of [site-url][node-path] works.

running token 6.x-1.15

alohaglide’s picture

FileSize
24.74 KB

Ah, node-url tokens being defined by multiple modules.

yngens’s picture

Not sure if my new issue has something with the previous one, but after activating comment uploads and trying to upload a picture I got:

warning: Parameter 2 to flag_form_alter() expected to be a reference, value given in /usr/drupal/drupal6/includes/common.inc on line 2883.
warning: Parameter 2 to quote_form_alter() expected to be a reference, value given in /usr/drupal/drupal6/includes/common.inc on line 2883.
warning: Parameter 2 to community_tags_form_alter() expected to be a reference, value given in /usr/drupal/drupal6/includes/common.inc on line 2883.
yngens’s picture

Have found this unanswered thread #933374: Warnings when using Stringoverride

jthomasbailey’s picture

Status: Postponed (maintainer needs more info) » Active

Going back to 6.x-1.1.4 fixes it but I can't figure out what's causing it in the newest release

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)
ju.ri’s picture

I 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

fizk’s picture

I 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.

Dave Reid’s picture

Title: [comment-since] token produces Array » Cleanup token integration ([comment-since] is a duplicate token)
Project: Token » Submitted By
Assigned: Unassigned » Dave Reid
Status: Postponed (maintainer needs more info) » Active

Yep, 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.

Dave Reid’s picture

Status: Active » Needs review
FileSize
4.28 KB
Dave Reid’s picture

Dave Reid’s picture

Issue tags: +token

Adding token tag.

Dave Reid’s picture

ckng’s picture

Status: Needs review » Needs work
+++ submitted_by.module
@@ -255,11 +254,12 @@ function submitted_by_token_values($type, $object = NULL, $options = array()) {
-      $tokens += _submitted_by_token_date($last_edit_date, 'last-edit');
+      if (function_exists('token_get_date_token_values')) {
+        $values += token_get_date_token_values($last_edit_date, 'last-edit-');
+      }

The $values should be $tokens instead.

$tokens += token_get_date_token_values($last_edit_date, 'last-edit-');

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]

Ayesh’s picture

Sub

pawel_r’s picture

change pointed out in#16 worked for me.

NancyDru’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

6.x-1.x is no longer supported.