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

CommentFileSizeAuthor
#7 3330574-change-settings.patch4.28 KBsocialnicheguru

Comments

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

socialnicheguru’s picture

Issue summary: View changes
socialnicheguru’s picture

Issue summary: View changes
socialnicheguru’s picture

it is looking for the module commerce_user_referral_points which does not exist.

https://www.drupal.org/docs/develop/creating-modules/defining-and-using-...

socialnicheguru’s picture

This issue was introduced here #3274589: Refer and Earn

In Drupal, the naming convention of a settings file, like commerce_user_referral_points.settings.yml, generally implies an association with a module. The name before the dot (commerce_user_referral_points in this case) usually refers to the module name. Thus, Drupal often assumes that a settings file named in this manner is linked to a module with a corresponding name. If the module doesn't exist or isn't enabled, but its configuration is present in the exported configuration, Drupal will throw an error during configuration import. This is likely the source of the issue you are experiencing. It's important to ensure that the module name corresponds accurately to the settings file and that the module is properly installed and enabled in your Drupal setup.

The naming of the settings file creates this issue.

socialnicheguru’s picture

Status: Active » Needs review
StatusFileSize
new4.28 KB

Uploading 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.

socialnicheguru’s picture

Title: Halts config import: Configuration commerce_user_referral_points.settings depends on the commerce_user_referral_points extension that will not be installed after import » Update commerce referral settings page
Issue summary: View changes
socialnicheguru’s picture

Status: Needs review » Needs work

I need to update the patch to rename config/install/commerce_user_referral_points.settings.yml to config/install/commerce_user_points.referral_settings.yml

socialnicheguru’s picture

The patch works.
I cannot seem to unhide it.

jigish.addweb’s picture

Status: Needs work » Fixed

The settings name has been updated in 3.0.x branch. Thanks for the help.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.