After update from 7.12 to 7.14 i have in most page this error:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (linea 354 di /home/site_name/public_html/includes/entity.inc).

Comments

berdir’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

That part of the code has not been changed between these two versions. Did you update/add any other modules while updating? Changing to a support request until we have confirmation that this is actually a bug.

Try to figure out where this is coming from. One way to do that is enable devel.module and add the following code on the line above. Then check who is calling the function with invalid arguments.

foreach ($ids as $id) {
  if (!is_string($id) && !is_int($id)) {
    ddebug_backtrace();
  }
}

You can also use debug_print_backtrace() if you don't have devel.module but this is much easier to read.

drupalsim91’s picture

sorry but I'm no expert and I tried to install dev.module but I can not use it. I just updated the core, no other form.

I upgraded from Drupal 6 to Drupal 7.12 and there were no problems. 7.12 to 7.14 from drupal drupal I get this error.

drupalsim91’s picture

i fixed the problem whit this patch:

http://drupal.org/node/1102570

UPDATE: not function, return this error

Exception: Entity id can only be a string or integer, for entity '' of type 'taxonomy_term' in _entity_check_ids() (linea 7636 di /home/.../includes/common.inc).

dddave’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)