Problem/Motivation

After I try to re-install the CMS with the commands, described in project page (delete database with ddev and then try to reinstall with UI), it throws the following error:

The website encountered an unexpected error. Try again later.
TypeError: array_merge(): Argument #2 must be of type array, string given in array_merge() (line 234 of /var/www/html/vendor/drupal/recipe_installer_kit/src/Hooks.php).

array_merge() (Line: 234)
Drupal\RecipeKit\Installer\Hooks::applyRecipes() (Line: 626)
install_run_task() (Line: 572)
install_run_tasks() (Line: 121)
install_drupal() (Line: 53)

Steps to reproduce

1. Install CMS
2. Empty database with ddev drush sql:drop --yes
3. Run ddev launch and visit website with browser
4. Follow the install steps

Important: When you install it with ddev (ddev drush site:install --yes) it works fine.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jibla created an issue. See original summary.

phenaproxima’s picture

Project: Drupal CMS development repository » Recipe Installer Kit
Version: » 1.0.0-alpha1
Component: Track: Installer » Code

Ah, I think I see the problem here. That's a genuine bug if you haven't selected any recipes on the first page of the installer. Moving to the appropriate project so I can fix it and tag a new release.

phenaproxima’s picture

Status: Active » Needs review

This branch should fix it. Can you try testing with it? How to do that:

ddev composer config repo.recipe-kit vcs https://git.drupalcode.org/issue/recipe_installer_kit-3504620.git
ddev composer require drupal/recipe_installer_kit:dev-3504620-after-rebuilding-installer

Then try reinstalling as per usual.

Once you've tested, you can revert the changes to composer.json:

ddev composer config --unset repo.recipe-kit
ddev composer require drupal/recipe_installer_kit:^1@alpha

If that fixes it for you, just mark this issue as "Reviewed and tested by the community" and I'll commit this bad boy and roll a new release right away.

jibla’s picture

@phenaproxima

I have tested and works with this branch fine.

jibla’s picture

Status: Needs review » Reviewed & tested by the community
phenaproxima’s picture

Title: After rebuilding installer throws errors » Hooks::applyRecipes() doesn't account for an empty `recipes` query parameter

  • phenaproxima committed 3a866414 on 1.x
    Issue #3504620 by phenaproxima, jibla: Hooks::applyRecipes() doesn't...
phenaproxima’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for testing! Merged into 1.x, and tagging 1.0.0-alpha2 shortly.

Status: Fixed » Closed (fixed)

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