I am attempting to install a site from a config folder that's outside the webroot at ../config/sync.
In the Drupal installer I get this error:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /snp-portal-8/web/snp-alpha/core/install.php?rewrite=ok&langcode=en&profile=config_installer&continue=1&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText: Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID 'contact.site_page' was not found. in Drupal\Core\Menu\MenuLinkManager->getDefinition() (line 208 of core/lib/Drupal/Core/Menu/MenuLinkManager.php).
Steps to reproduce:
- Install the standard profile
- Uninstall contact module
- Export configuration
- Re-install using exported configuration and the config_installer profile.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2715993.8.patch | 6.01 KB | alexpott |
Comments
Comment #2
joachim commentedLooks like it's caused by the config file core.menu.static_menu_link_overrides.yml -- but I don't have Contact module enabled.
'drush cex' from the original site is not making this file go away.
Even weirder is the crash still happens after I've deleted this file from the config folder!
Comment #3
alexpottWhich version of Drupal 8 are you using? This is the same error as #2707433: Errors installing from config on 8.1.0-rc1
Comment #4
joachim commentedI'm on 8.1.0.
Comment #5
alexpottAh wow! Is your original install profile standard? If so standard_install() is still firing but you've disabled contact...
Comment #6
joachim commentedYes, the site that I first set up and then exported the config from was using the 'standard' profile.
Comment #7
alexpottConfirmed - added steps to reproduce.
It seems we have two options - neither of which are very nice.
config_installer_fix_profilestep will then uninstall the modules.I think we have to go for option 1 because if the profile install hook does not fire then content entities created by it won't exist and thing might depend on that.
Comment #8
alexpottHere is a patch that does option 1. Test passes locally with the fix applied and fails without it.
Comment #9
joachim commentedYup, confirming the patch fixes the problem. Thanks!
Comment #10
alexpottThanks - I had to reroll the patch cause binary files...