Incompatible with Metatag version 1.23

Created on 6 June 2023, over 1 year ago

Problem/Motivation

Metatag introduced default configuration in version 1.23 (issue 📌 Add default settings file Fixed ).

Sector Contact comes bundled with metatag.settings which makes it impossible to install it on a site with Metatag version 1.23 or above.

Steps to reproduce

  • composer create-project sparksinteractive/sector-project contact-test
  • cd contact-test
  • bootstrap development environment
  • composer require drupal/sector_contact
  • drush site:install --yes
  • drush en -y sector_contact

[success] Successfully enabled: sector_contact

The following module(s) will be enabled: sector_contact, telephone

 // Do you want to continue?: yes.                                                                                      


In PreExistingConfigException.php line 65:
                                                                                                             
  Configuration objects (metatag.settings) provided by sector_contact already exist in active configuration  

Proposed resolution

Remove default and , most importantly , empty Metatag configuration from the module.

Remaining tasks

  • Patch - done
  • Review
  • Commit

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇿New Zealand RoSk0 Wellington

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024