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.
Config imports are failing on site install because of a config entity being created in lightning_preview_install. Can this be moved to a sub-module of lightning_preview (perhaps lightning_preview_demo) so sites can be created without this configuration?
Causing this error:
Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. in Drupal\Core\Config\ConfigImporter->validate() (line 728 of [error]
/var/www/canary/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php).
The import failed due for the following reasons: [error]
Entities exist of type <em class="placeholder">Workspace</em> and <em class="placeholder">Workspace type</em> <em class="placeholder">Basic workspace</em>. These entities
need to be deleted before importing.
Comments
Comment #2
arknoll CreditAttribution: arknoll commentedComment #3
balsamaComment #4
phenaproximalightning_preview_install() creates no entities at all. It does attempt to modify existing ones, but it doesn't create any. A backtrace might be helpful here?
Comment #5
phenaproximaSo yeah...Preview's install hook creates no entities at all, and it never has...although it does modify the existing Basic workspace type. I think you need at one workspace type in order to use Preview, so I'd say this works as designed. Closing.