Problem:

On entity pilot import I am receiving an error:

Exception: The theme implementations may not be rendered until all modules are loaded. in Drupal\Core\Theme\ThemeManager->render() (line 139 of /var/www/canary/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php).

This only seems to occur when I have multiple content types in a manifest waiting to be imported. There is nothing unique or different between the two content types.

Comments

arknoll created an issue. See original summary.

arknoll’s picture

This appears to be an issue between Drupal Console, Entity Pilot, and Search API.

We have search api configured to index the "rendered" node. During the import process with drupal console, it can't render the node and delivers the above exception. The quick work around of disabling the search index during content import does eliminate the error.

acbramley’s picture

Title: Errors when importing » Errors when rendering content during import
Status: Active » Closed (won't fix)

Thanks for the bug report, this seems to be an issue with the bootstrap level of drupal console, not something we can fix in this module.

As you say you can fix it by turning off automtatic indexing in your script before running the import:

drush ev "\Drupal::configFactory()->getEditable('search_api.index.default')->set('options.index_directly', false)->save();"
drupal entity_pilot_git:import ....
drush ev "\Drupal::configFactory()->getEditable('search_api.index.default')->set('options.index_directly', true)->save();"

I'll add this to the README