We get the following error (warning) messages since we installed statuses (only viewing, if we add an entry we got the status message twice).

We use panels and add the statuses block.

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (Zeile 178 von /Users/geraldpitschek/Sites/iuk20rc05/includes/entity.inc).
x
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (Zeile 354 von /Users/geraldpitschek/Sites/iuk20rc05/includes/entity.inc).

If we remove the statuses block everything is ok.

Wr

Comments

paulap’s picture

It seems that this is a error regarding internationalization (languages).

With vid and nid ...

See http://drupal.org/node/1514794

Wr

IceCreamYou’s picture

Status: Active » Postponed (maintainer needs more info)

I don't think there is equivalent code in Statuses to that issue. This usually comes up when a module is calling a load() function with an array, which usually works in D6 but not D7. Statuses doesn't do this though.

Some people have reported this problem with OG or its submodules. Also take a look at this issue: #1102570: array_flip() [function.array-flip] issue in DrupalDefaultEntityController / entity.inc

diogene’s picture

Hello,
I had the problem recently try to access a book I had previously created before installing Organic Groups module. I tryed to refresh the permissions and it works know, I can edit (though i cannot save, it is hard to configure the rights properly). To refresh just go to reports>status report>node access permissions > rebuild permission (do it twice just in case).

Laurent (diogene.net)

mathankumarc’s picture

I thinks this is not at all related to statuses.

IceCreamYou’s picture

The version of OG could be an issue here, Statuses only supports OG 7.x-1.x right now (though you'd probably get WSODs with OG 2.x installed).

But yes, I'm inclined to agree that this is not related to Statuses. What I would do is edit entity.inc at the line(s) where the file occurs and do a backtrace there if the relevant variable is not an array (print_r(debug_backtrace()); die(); or if you have the devel module installed just ddebug_backtrace();). From that you should be able to see what code passes the wrong values.

IceCreamYou’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

This is most likely a duplicate of #1102570: array_flip() [function.array-flip] issue in DrupalDefaultEntityController / entity.inc and I can't reproduce it in Statuses.

benheinz’s picture

Issue summary: View changes

I got rid of these errors vy disabling "SPARQL API" modules.