Using Drupal 7.9 and updating to OG 7.x-1.3

When I open a new group enabled content (create content), the top of the screen gives me 5 instances of:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of .../includes/entity.inc).

D7.9 on version og 7.x-1.1 does not do this. I went from 1.1->1.3 doing this.

Comments

amitaibu’s picture

What are the steps you do to reproduce this?

amitaibu’s picture

Title: Module throws errors when creating group enabled content » When checking entity access, return early if entity isn't saved yet
Status: Active » Fixed

I've committed a fix, please test (get it from Git or wait a few hours for the package).

silvio’s picture

@Amitaibu: looks like your commit fixes the issue, thanks.

othermachines’s picture

Seconding #3.

amitaibu’s picture

Great, thanks.

nagiek’s picture

Chiming in to say this also works.

David4514’s picture

I had a similar problem when adding new content immediately after enabling Organic Groups Field Access 7.x-1.3. However, I was only receiving 3 of the message rather than five.

I updated to the 11/10/2011 dev version and the problem was resolved.

jferrervalls’s picture

I got the same issue but couln't find the fix mentionned in #2.
I've been looking for quite a while now without success.
Could somebody tell me where to find it.

Thanks

Status: Fixed » Closed (fixed)

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

star-szr’s picture

Closed #1350430: Warning: array_flip() as a duplicate of this issue.