Getting configuration error while enabling a module | Acquia Product Documentation
Cloud Platform
Getting configuration error while enabling a module
Getting configuration error while enabling a module
Date Published: September 27, 2023
Issue:
Getting the following configuration error when you are enabling a module:
/var/www/html/xxx.prod/docroot$ drush pm-enable acquia_connector --uri=sitename
In PreExistingConfigException.php line 65:
Configuration objects (acquia_connector.settings) provided by acquia_connector already exist in active configuration
Resolution:
Check your config via `drush cget` to see if the config exist.
if exist you can run the following command to delete it:
drush config-delete module_name.settings
If for any reasons you got the following error:
[error] Config acquia_connector.settings does not exist
This means the config table exist in your config but for some reason it is an empty array. To resolve this issue you need to manually go to your Database and remove it. Always make sure that you have a backup of your Database.