Hi,

I have updated the token module to it's latest version (1.18) for 6x. And it started giving errors like this on node pages.

When I updated it to token 6.x-1.17 from 1.16 version:

warning: preg_match_all() expects parameter 2 to be string, array given in /mnt/stor9-wc1-dfw1/666889/www.preschoolhomepage.com/web/content/sites/all/modules/token/token.module on line 701.

And then I updated token from 6.x-1.17 to 1.18 version of token, the error become:

user notice: The custom_pagers_get_list_from_view() function called token replacement with an array rather than a string for $text in /sites/all/modules/token/token.module on line 263.

The module seems to work fine even with this error. But This should be removed too I think.

CommentFileSizeAuthor
#1 custom_pagers-token-1542128.patch671 bytesmarabak
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marabak’s picture

In token module token_replace() has a string and not an array as first parameter.
i changed :
$args = token_replace($args, 'node', $node);
to :

foreach ( $args as $key => $value ) {
  $args[$key] = token_replace($value, 'node', $node);
}
marabak’s picture

Issue summary: View changes

Updated data