We need to ensure the entity being deleted is a content entity before calling the delete query in hook_entity_delete

The website encountered an unexpected error. Please try again later.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: 'data_tools': DELETE FROM "lock_field_values" WHERE ("entity_id" = :db_condition_placeholder_0) AND ("entity_type" = :db_condition_placeholder_1) AND ("bundle" = :db_condition_placeholder_2); Array ( [:db_condition_placeholder_0] => data_tools [:db_condition_placeholder_1] => view [:db_condition_placeholder_2] => view ) in lock_field_values_entity_delete() (line 76 of modules/contrib/lock_field_values/lock_field_values.module).

Comments

andyg5000 created an issue. See original summary.

andyg5000’s picture

Status: Active » Fixed

  • andyg5000 committed 717e346 on 2.0.x
    Issue #3246682: Error when deleting non-content entitiets
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.