Problem/Motivation
Halts config import: Configuration commerce_user_referral_points.settings depends on the commerce_user_referral_points extension that will not be installed after import
Steps to reproduce
There is no such extension: commerce_user_referral_points
After attempting to import a configuration, I get this error:
1) drush cedit field.field.node.somefield.field_some_comments --editor=emacs
Collection Config Operation
field.field.node.somefield.field_some_comments update
2) Import the listed configuration changes? (y/n): y
Errors: received
array_diff(): Expected parameter 1 to be an array, null given ConfigImportSubscriber.php:312 [warning]
Drupal\Core\Config\ConfigImporterException: There were errors validating the config [error]
synchronization.
Configuration commerce_user_referral_points.settings depends on the
commerce_user_referral_points extension that will not be installed
after import. in Drupal\Core\Config\ConfigImporter->validate() (line 759 of
mysite/html/core/lib/Drupal/Core/Config/ConfigImporter.php).
The import failed due for the following reasons: [error]
Configuration commerce_user_referral_points.settings depends on the
commerce_user_referral_points extension that will not be installed after import.
Proposed resolution
Change settings file from commerce_user_referral.settings to commerce_user_points.referral_settings
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3330574-change-settings.patch | 4.28 KB | socialnicheguru |
Comments
Comment #2
socialnicheguru commentedComment #3
socialnicheguru commentedComment #4
socialnicheguru commentedComment #5
socialnicheguru commentedit is looking for the module commerce_user_referral_points which does not exist.
https://www.drupal.org/docs/develop/creating-modules/defining-and-using-...
Comment #6
socialnicheguru commentedThis issue was introduced here #3274589: Refer and Earn
The naming of the settings file creates this issue.
Comment #7
socialnicheguru commentedUploading a patch to change the settings file from commerce_user_referral_points.settings to commerce_user_points.referral_settings
Not sure if that is the right change.
Comment #8
socialnicheguru commentedComment #9
socialnicheguru commentedI need to update the patch to rename config/install/commerce_user_referral_points.settings.yml to config/install/commerce_user_points.referral_settings.yml
Comment #10
socialnicheguru commentedThe patch works.
I cannot seem to unhide it.
Comment #11
jigish.addweb commentedThe settings name has been updated in 3.0.x branch. Thanks for the help.