Hi,

I'm not sure if this really belongs here, but I thought it might help to highlight this issue here as well as the private module issue queue.

After I enabled the private message module (http://drupal.org/project/privatemsg) I can't post anything into a group on the site without getting the following error:

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 179 of /home/quickstart/websites/commons3.beta/includes/entity.inc).

Recoverable fatal error: Object of class Message could not be converted to string in DatabaseStatementBase->execute() (line 2168 of /home/quickstart/websites/commons3.beta/includes/database/database.inc).

I printed out what is passed to array_flip() in entity.inc and it looks like the whole node created notification object is getting passed into $ids. I have attached a print out of $ids just before it is passed to array_flip().

I have posted this into the private message issue queue (http://drupal.org/node/1974638) and I'll have a dig into it myself today to see if I can figure out why this is happening.

Cheers

Tom

CommentFileSizeAuthor
privatemessage-error.txt16.29 KBblacklabel_tom

Comments

blacklabel_tom’s picture

Just a quick update, upgrading to the 7.2 dev version fixed this issue for me.

Cheers

Tom

ezra-g’s picture

Category: bug » support
Status: Active » Fixed

Marking as fixed per #1. See also #1975198: [Meta] Trusted Contacts & Private messaging for the upcoming solution to private messaging in Commons.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Added link to the private message issue