default_content icon indicating copy to clipboard operation
default_content copied to clipboard

Default content can't import files.

Open Sam152 opened this issue 11 years ago • 2 comments

When importing a node with a field field "field_filefield", the following message occurs when it gets to importing the node that references the file:

exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_filefield_display' cannot be null' in "core/lib/Drupal/Core/Database/Statement.php"

With term references, there aren't any other columns on the reference field and it doesn't look like any other metadata about the reference is stored on the node export, so it could be a shortfall of the actual node exports.

I have nodes and terms exporting/importing fairly well, but have hit a brick wall with files.

Sam152 avatar Dec 14 '14 08:12 Sam152

Sounds like an issue with the file normalizer. Can you try with github.com/md-systems/file_entity which has a different normalizer. If it works then I think this is a core bug. On Dec 14, 2014 6:12 PM, "Sam" [email protected] wrote:

When importing a node with a field field "field_filefield", the following message occurs when it gets to importing the node that references the file:

exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_filefield_display' cannot be null' in "core/lib/Drupal/Core/Database/Statement.php"

With term references, there aren't any other columns on the reference field and it doesn't look like any other metadata about the reference is stored on the node export, so it could be a shortfall of the actual node exports.

I have nodes and terms exporting/importing fairly well, but have hit a brick wall with files.

— Reply to this email directly or view it on GitHub https://github.com/larowlan/default_content/issues/29.

larowlan avatar Dec 14 '14 11:12 larowlan

Didn't have much luck getting file entity working. None of the input widgets worked. Will need some further digging.

Sam152 avatar Dec 16 '14 07:12 Sam152