When running database updates

$ drush updb -y
and then run
$ drush cim -y
you get an error

`[Exception]`
`The import failed due to the following reasons:`
`Deleted and replaced configuration "amp.settings"`

and this is because on hook update functions it tries to write data when NO yet the configration file has been created as a consequence throws above error.

CommentFileSizeAuthor
#2 fix_update_hooks-3010111-2.patch1.95 KBm4olivei

Comments

edutrul created an issue. See original summary.

m4olivei’s picture

Status: Active » Needs review
StatusFileSize
new1.95 KB

Here is a patch to fix the issue.

edutrul’s picture

Status: Needs review » Reviewed & tested by the community

Patch #2 works as expected https://www.drupal.org/project/amp/issues/3010111#comment-12835286 thanks @m4olivei

  • KarenS committed db74d46 on 8.x-3.x authored by m4olivei
    Issue #3010111 by m4olivei, edutrul: Running database updates causes...
karens’s picture

Status: Reviewed & tested by the community » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

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