I was evaluating this module for my use case and got the following error when exporting:
Drupal\eme\ExportException: Unexpected error while processing 'discoverContentReferences'. in Drupal\eme\Export\ExportPluginBase->executeExportTask() (line 524 of /var/www/html/web/modules/eme/src/Export/ExportPluginBase.php).
I realised then that I had no content to export!, I think the error could be friendlier or a validation could be added :)
This is failing on `discoverContentReferences`, specifically:
$unchecked = array_diff($sandbox['entities_to_export'], $sandbox['entities_checked']);
$current = reset($unchecked);
$sandbox['progress'] += 1;
Because entities to export is empty, $current returns false and throws an exception on `explode(':', $current);`
Comments
Comment #2
huzookaComment #3
huzookaLet's see how this works with core 9+!
Comment #6
huzooka"path_alias" isn't installed in 9+ kernel test base.
Comment #9
huzooka@pcambra, Thanks for the report and for your patience!
Comment #10
huzookaJust tagged an another alpha with this fix.
Comment #11
pcambraAwesome, many thanks!
Comment #13
bradallenfisher commentedhi!
I'm trying to use this module with https://www.drupal.org/project/section_library
I have section library entities created and there is a checkbox for them here: /admin/config/development/entity-export
When i hit start export i get the error:
wondering if there is something that section_library needs to do to make the entities exportable? or if it's just an edge case....
either way i'm happy to help test and try for a solution if you could point me in the right direction?