- 🇧🇾Belarus ivnish
Drupal 7 is EOL. Issue will be closed, but patches are still here
I have a node flag and all configurations are working fine. I have a field created for the flag to track some additional details related to the flag.
I tried using flagging_save() function to grammatically save new flags based on some logic. It shows a error as
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'entity_id' cannot be null: INSERT INTO {field_data_message_subscribe_email_freq} (entity_type, entity_id, revision_id, bundle, delta, language, message_subscribe_email_freq_value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array
(
[:db_insert_placeholder_0] => flagging
[:db_insert_placeholder_1] =>
[:db_insert_placeholder_2] =>
[:db_insert_placeholder_3] => email_node
[:db_insert_placeholder_4] => 0
[:db_insert_placeholder_5] => und
[:db_insert_placeholder_6] => email
)
in field_sql_storage_field_storage_write()
If the flag don't have the field then it works fine.
Hth,
Sadashiv.
Closed: outdated
3.0
Flag core
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Drupal 7 is EOL. Issue will be closed, but patches are still here