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 commons issue queue.

After I enabled the private message module I can't post anything into a group on commons 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 commons issue queue (http://drupal.org/node/1974634) 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
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wespacker’s picture

Hi Tom,

I'm getting this issue also. I'll let you know if I find a solution.

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Try to use the dev version to see if this is fixed there.

blacklabel_tom’s picture

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

Cheers

Tom

wespacker’s picture

Me also. Thanks dudes.

Wes

Berdir’s picture

7.x-1.x-dev should work as well, if you don't want to switch to 7.x-2.x.

ptmkenny’s picture

Status: Postponed (maintainer needs more info) » Fixed

Based on #3 and #4, I'm closing this.

Status: Fixed » Closed (fixed)

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