- πΈπ°Slovakia sano
After applying the patch I stopped seeing the error on my Drupal 7.97 installation. Thank you.
When using Field Collections with the Entity API, its frequently reported that unexplained, hard to debug, PHP warnings related to array_flip creep into the site. This is most often the case after a site upgrade from Drupal 6 to 7, content import from another site, or database sync.
An example of the warnings that result are:
Warning : array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /includes/entity.inc).
Whenever the Entity API attempts to use the PHP builtin array_flip()
, on a variable or parameter of mixed or undefined type, it should ensure:
Warning : array_flip(): Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178/includes/entity.inc).
Only happen with field collection load, have got last release entity & field collection.
I try to look, but I don't understand, field collection send always an array... I dunno if after field collection need to load other entity wich can make this warning.
Needs review
1.0
Entity CRUD controller
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
After applying the patch I stopped seeing the error on my Drupal 7.97 installation. Thank you.