Found this after enabling xmlsitemap in D8 ver. beta 9

Drupal\Core\Config\ImmutableConfigException: Can not set values on immutable configuration xmlsitemap_engines.settings:engines. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object in Drupal\Core\Config\ImmutableConfig->set() (line 34 of /Users/tasya/Sites/xmlsitemap/core/lib/Drupal/Core/Config/ImmutableConfig.php).

CommentFileSizeAuthor
#2 2467133-2.patch1.39 KBlhangea
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lhangea’s picture

Priority: Normal » Major
Status: Active » Needs work

I also ran into this issue at install/uninstall. Basically we need to use
\Drupal::getContainer()->get('config.factory')->getEditable('xmlsitemap_engines.settings')
instead of
\Drupal::config('xmlsitemap_engines.settings')
in the .install file.

lhangea’s picture

Status: Needs work » Needs review
FileSize
1.39 KB

Here's a patch for that. After this patch the module install/uninstall is clean.

  • paulmckibben committed 3d59244 on 8.x-1.x authored by lhangea
    Issue #2467133 by lhangea: Can not set values on immutable configuration...
paulmckibben’s picture

Status: Needs review » Fixed

Thanks for the patch! I reviewed it, and the code looks good. I applied it, and it fixes the problem: xmlsitemap_engine now installs and uninstalls cleanly in D8 beta10.

Status: Fixed » Closed (fixed)

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