Default content can't import files.
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.
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.
Didn't have much luck getting file entity working. None of the input widgets worked. Will need some further digging.