So I started a site, that accidentally became a production site. Now I need to make some big changes but don't want to make them in production. So I created a subdomain and am trying to migrate the site to a "dev" or "beta" site. I followed the instructions from here: But I am getting two errors that I just can't seem to figure out.

Configuration sync failed. The following errors were reported:

  • The configuration "field.bundle.comment.comment_node_plant" must have the "entity_type" attribute specified.
  • The configuration "uc_csv.settings" is not owned by any module. Try enabling the module that provides this configuration, then importing again.

Anyone have any ideas?

John

Accepted answer

Hi John. Welcome to the Backdrop CMS forum!

These two errors seem to be produced when you are trying to synchronize your config files from the staging to active folders, using the UI at admin/config/development/configuration

Since you are fully cloning a site, it would be easier to not use the synchronization manager in this case. Simply copy all your config files directly into your active folder of the cloned site.

Anyway, the sync is failing for the following reasons:

  • field.bundle.comment.comment_node_plant is from a field that was added to the comment for your content type "plant". It's unclear why this config file doesn't contain an entity_type attribute. There is currently a bug in the Comment module: if you disabled the Comment module in your production site after adding a field, there are some "remnants" of that field left over in the config folder. If you are not using Comment in your site, then it's safe to simply delete the file  field.bundle.comment.comment_node_plant.json from the staging config file before synchronizing (if you want to syncronize instead of simply copying files into active)
  • As for uc_csv.settings, this is probably a leftover from the module uc_csv. You can simply enable that module in your beta site, and then try synchronizing again. Or if you don't need to use uc_csv, you can simply delete uc_csv.json from the staging folder and try syncing again.

 

Comments

Hi John. Welcome to the Backdrop CMS forum!

These two errors seem to be produced when you are trying to synchronize your config files from the staging to active folders, using the UI at admin/config/development/configuration

Since you are fully cloning a site, it would be easier to not use the synchronization manager in this case. Simply copy all your config files directly into your active folder of the cloned site.

Anyway, the sync is failing for the following reasons:

  • field.bundle.comment.comment_node_plant is from a field that was added to the comment for your content type "plant". It's unclear why this config file doesn't contain an entity_type attribute. There is currently a bug in the Comment module: if you disabled the Comment module in your production site after adding a field, there are some "remnants" of that field left over in the config folder. If you are not using Comment in your site, then it's safe to simply delete the file  field.bundle.comment.comment_node_plant.json from the staging config file before synchronizing (if you want to syncronize instead of simply copying files into active)
  • As for uc_csv.settings, this is probably a leftover from the module uc_csv. You can simply enable that module in your beta site, and then try synchronizing again. Or if you don't need to use uc_csv, you can simply delete uc_csv.json from the staging folder and try syncing again.

 

Well, removing those files did it, thank you for your help. But I have no idea what module uc_csv is?