I am getting the following run-time error message:

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of /projects/sysint/web_db/servers/drupal/drupal-7.26/includes/entity.inc).

I recently upgraded from Drupal 7.20 to 7.26 and added new custom module that deletes nodes by calling "node_delete ($node->nid) and the above error shows up after my custom code runs...

Comments

monaw’s picture

Issue summary: View changes
debaryadas’s picture

Did you get $node using node_load ?? you can try with

node_delete ((int) $node->nid) ;
monaw’s picture

@ debaryadas - thanks for tip! It turns out that I was calling node_delete with an array instead of the node's nid…duh! Once I fixed it, the problem went away (:

monaw’s picture

Status: Active » Closed (works as designed)