Date Published: September 27, 2023
Getting configuration error while enabling a module
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.
/var/www/html/xxx.prod/docroot$ drush --uri=sitename cget
Choose a configuration:
[0 ] Cancel
[1 ] access_unpublished.settings
[2 ] acquia_connector.settings
.
.
> 2
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.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.