Closed (fixed)
Project:
Node Title Validation
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2017 at 12:37 UTC
Updated:
24 Aug 2018 at 07:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nlisgo commentedComment #3
dgilbert commentedThe patch hard-codes the path as /config/install/. Our site uses a different path for config files so the patch won't actually do anything.
Comment #4
codesmithHmmm neither applying the patch nor removing the file worked for me. :(
Still getting this error and have to disable it to import configuration item.s
Comment #5
codesmithComment #6
codesmithComment #7
godotislateThe prefix of the config item referenced in code is
node_title_validation_config, but it should match the name of the module instead:node_title_validation. The config importer determines a module dependency from this prefix, so it's expecting the config to require the node_title_validation_config module. Here's a patch.Comment #8
codesmithI applied the patch in #7, ran the database update, and successfully imported configuration. Thanks godotislate!
Comment #9
j2r commentedWork as expected.
Note : Needs to run drush updb once the patch is applied.
Comment #10
drupalninja99 commentedI can confirm also that Patch #7 worked for me!
Comment #12
jcisio commentedTested several cases and all worked. Patch is also good, so I committed and pushed. Thanks all.
Comment #14
-nrzr- commentedI applied patch #7 and it didn't fix the error.
By inspecting the node_title_validation.install, found that
$new_config->set('node_title_validation_config', $old_config->get('node_title_validation_config'));should be
$new_config->set('node_title_validation', $old_config->get('node_title_validation_config'));Can you please confirm?
Comment #15
-nrzr- commentedMy bad. Patch #7 is working fine.
Comment #16
yob1224 commentedHello, how can I apply this patch? I tried applying the patch through composer but i can't see the patch working. Thanks!
Comment #17
nlisgo commented@yob1224, you also need to pull down the cweagans/composer-patches project:
composer require cweagans/composer-patchesComment #18
givanov commentedI have recently used patch #7 and its latest version worked as expected. Thanks to the creator.