- Issue created by @jaydee1818
I need to bulk update an Entity reference revisions field in a content type, which references a list of Paragraph types. When using the usual VBO flow to update values and submitting, I receive this error:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=101&op=do_nojs&op=do
StatusText: error
ResponseText: The website encountered an unexpected error. Please try again later.Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'langcode' cannot be null: INSERT INTO "paragraphs_item" ("revision_id", "type", "uuid", "langcode") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array
(
[:db_insert_placeholder_0] =>
[:db_insert_placeholder_1] => more_news
[:db_insert_placeholder_2] => e9d5db53-43dc-4c77-87d4-196bf581ab39
[:db_insert_placeholder_3] =>
)
in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Install Paragraphs, create a paragraph type, edit an existing content type, add a reference field to the paragraph type, create some content, attempt a bulk edit of the content that updates the paragraph reference field.
Active
2.8
Code