Hi there!

There seems to be a important problem on how notification passes information to the token module. Each time a notification is sent, the following error message is thrown:

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

I posted the issue on the token project and received that answer from one of the maintainer (I think):

(http://drupal.org/node/1328752)

Read Dave's post (#16). This is because Notifications/Messaging
(or whatever module you are using) is not using Tokens correctly.
Someone needs to open an issue in the appropriate queue to get that
fixed.

Thanks!!!!

Comments

jjustman’s picture

I had this too. Upgrading to the dev version of Token seemed to fix it. But it still seems that the method used in Notifications is incorrect.

danepowell’s picture

Status: Needs work » Closed (duplicate)

This is actually an issue with code in the Messaging module: #1329024: Messaging is not compatible with latest token.module

Thomas_Zahreddin’s picture

Status: Closed (duplicate) » Needs review
StatusFileSize
new777 bytes

#1 is right. (hope it's ok for all to reopen the issue).

here a patch (the same as for http://drupal.org/node/1366380)

Thomas_Zahreddin’s picture

Status: Needs review » Closed (duplicate)

looks like this is fixed in the dev-Version of messaging
http://drupal.org/node/1329024