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:

  1. Install the standard profile
  2. Uninstall contact module
  3. Export configuration
  4. Re-install using exported configuration and the config_installer profile.
CommentFileSizeAuthor
#8 2715993.8.patch6.01 KBalexpott

Comments

joachim created an issue. See original summary.

joachim’s picture

Looks 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!

alexpott’s picture

Which version of Drupal 8 are you using? This is the same error as #2707433: Errors installing from config on 8.1.0-rc1

joachim’s picture

I'm on 8.1.0.

alexpott’s picture

Ah wow! Is your original install profile standard? If so standard_install() is still firing but you've disabled contact...

joachim’s picture

Yes, the site that I first set up and then exported the config from was using the 'standard' profile.

alexpott’s picture

Issue summary: View changes

Confirmed - added steps to reproduce.

It seems we have two options - neither of which are very nice.

  1. Install any modules depended on by the profile before running the profiles install hook. After running the profiles install hook the existing config_installer_fix_profile step will then uninstall the modules.
  2. Don't run the profiles install hook

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.

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new6.01 KB

Here is a patch that does option 1. Test passes locally with the fix applied and fails without it.

joachim’s picture

Status: Needs review » Reviewed & tested by the community

Yup, confirming the patch fixes the problem. Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Thanks - I had to reroll the patch cause binary files...

  • alexpott committed 071213c on 8.x-1.x
    Issue #2715993 by alexpott, joachim: installer crashes during import
    

Status: Fixed » Closed (fixed)

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