Sorry if this has been posted before but I am getting a couple of error messages and can't seem to find a thread with a fix

On the ../admin/content/message page this appears when messages older than 28/04/2015 appear (This makes sense as I updated Commons around then and had some issues at the time with the message module which are now resolved)

Warning: Invalid argument supplied for foreach() in commons_groups_tokens() (line 572 of D:\...\profiles\commons\modules\commons\commons_groups\commons_groups.module).

It seems to be where there are messages that have not picked up the content type and title correctly or the date and time. eg created the “” on mysite.org.uk on :

There is a related message showing on some of the user profiles

Warning: Invalid argument supplied for foreach() in commons_activity_streams_message_access_alter() (line 102 of D:\...\profiles\commons\modules\commons\commons_activity_streams\commons_activity_streams.module).
Warning: Invalid argument supplied for foreach() in commons_groups_tokens() (line 572 of D:\....\profiles\commons\modules\commons\commons_groups\commons_groups.module).

Is there a way to delete the older messages? Assuming this would fix the issue.

Thanks

Fiona

Comments

lsolesen’s picture

You can purge messages from /admin/config/system/message

fibie’s picture

Thank you :)