Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
monaw CreditAttribution: monaw commentedComment #2
debaryadas CreditAttribution: debaryadas commentedDid you get $node using node_load ?? you can try with
Comment #3
monaw CreditAttribution: monaw commented@ 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 (:
Comment #4
monaw CreditAttribution: monaw commented