Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
arknoll CreditAttribution: arknoll commentedThis 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.
Comment #3
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedThanks 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:
I'll add this to the README