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.
I was following the steps to set up the REST server:
- Enabled rest module.
- Added rest.settings.yml at sites/default/files/config_somehash/staging/rest.settings.yml as per the above guide.
- Open admin/config/development/sync and hit Sync all.
The following error raises:
Fatal error: Call to a member function delete() on a non-object in /home/juampy/projects/drupal8/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php on line 530
The entity that is not found and which causes the error has $name as entity.display.custom_block.basic.default con and $id as custom_block.basic.default
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedSo the config file entity.display.custom_block.basic.default is not saved as at the active storage during Drupal installation. However, it is saved at config_snapshot table:
This provokes that if you hit Sync all, all entries in this table are re-imported from the active storage, including entity.display.custom_block.basic.default.yml, which causes the reported error.
Will keep digging.
Comment #2
benjy CreditAttribution: benjy commentedI just tested this and everything seems to be fine. I'll close but please re-open if you feel the issue still exists.
Comment #2.0
benjy CreditAttribution: benjy commentedClarified description.