The log report of my Commons site contains multiple error like this:

  • The messaging_text_replace() function called token replacement with an array rather than a string for $text in profiles/drupal_commons/modules/contrib/token/token.module alla riga 263.

The error happens when we edit a page
The error is only in the log. We don't see any strange message on the user interface

Comments

nextpic’s picture

Andrea C’s picture

Thank you nextpic, I searched drupal.org before posting the issue but I didn't see that one.

I replace the module messaging-6.x-2.4 with messaging-6.x-2.x-dev (2011-Nov-12)
Until now no more error of this kind.

I think Commons maintainers should consider to replace this version of messaging module in next Commons release

ezra-g’s picture

Issue tags: +Commons 2.6 radar

Agreed - I'm tagging this issue so we can track it for the 2.6 release.

ezra-g’s picture

Category: bug » task
Status: Active » Postponed (maintainer needs more info)

I'm not seeing this error in any of the Commons sites that I'm working on.

It's also not clear based on #1329024: Messaging is not compatible with latest token.module whether the fix committed to the dev version of Messaging resolves the problem for folks who had it, or if it breaks compatibility with the current release of Notifications.

I'm marking this issue as postponed based on those questions.

ezra-g’s picture

Realistically, this pushes the likely fix for this issue out to 2.7.

t-readyroc’s picture

Version: 6.x-2.5 » 6.x-2.6

I can confirm that I experienced the error message on commons 2.6 (messaging 6.x-2.4 & token 6.x-1.18). I can also confirm that the patch in post #3 from the linked issue seems to have resolved the error.

Andrea C’s picture

Same on 6.x-2.9 with standard Commons distribution.
I replaced module messaging-6.x-2.4 with messaging-6.x-2.x-dev (2011-Nov-12) and the error in admin/reports/dblog disappear

lorenz’s picture

I get the same error message with the og module when I click "request membership" on a closed group.

The administrator of the group receives an e-mail to approve the og membership request but when he clicks the approval url (f.e. mysite/og/approve/212/11) a 404 error is displayed.

Will there be a fix for this in the next Commons release or or should I manually update the messaging module in profiles/drupal_commons/modules/contrib/ ?

My set up:
Drupal Commons 6.x-2.9 with Drupal 6.26

Thank you!!