Entity assumes that modules always return well-formed entities to function _entity_defaults_rebuild.
When a module returns anything else (e.g. Features + Rules can return an array containing FALSE) Entity continues regardless and in that case causes a PDO Exception described in https://www.drupal.org/node/1309144#comment-11789996.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hughworm created an issue. See original summary.

hughworm’s picture

I've made a simple patch to entity.module to prevent this.

hughworm’s picture

Alex Bukach’s picture

Fixed path to file in the patch.

Liam Morland’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

University of Waterloo has been running the patch in #4 successfully since May, 2017.

The last submitted patch, 2: entity-2829437-1-7.x-1.8.patch, failed testing. View results

Liam Morland’s picture

The patch in #4 passed testing today.