drupal-composer/drupal-project

TypeError: Argument 1 passed to Drupal\Core\Extension\ThemeHandler::addTheme() must be an instance of Drupal\Core\Extension\Extension, null given

MaTToX3 opened this issue · 1 comments

I am unable to install new Drupal project using this template. Here is how I created my project:

  1. composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction
  2. composer require laravel/homestead --dev
  3. vendor/bin/homestead make
  4. visiting my domain "homestead.test" of course redirects to install.php which throws the following error:
Additional uncaught exception thrown while handling exception.
Original
TypeError: Argument 1 passed to Drupal\Core\Extension\ThemeHandler::addTheme() must be an instance of Drupal\Core\Extension\Extension, null given, called in /home/vagrant/code/web/core/includes/theme.maintenance.inc on line 73 in Drupal\Core\Extension\ThemeHandler->addTheme() (line 118 of /home/vagrant/code/web/core/lib/Drupal/Core/Extension/ThemeHandler.php).

Drupal\Core\Extension\ThemeHandler->addTheme(NULL) (Line: 73)
_drupal_maintenance_theme() (Line: 759)
drupal_maintenance_theme() (Line: 515)
install_begin_request(Object, Array) (Line: 115)
install_drupal(Object) (Line: 44)
Additional
TypeError: Argument 1 passed to Drupal\Core\Extension\ThemeHandler::addTheme() must be an instance of Drupal\Core\Extension\Extension, null given, called in /home/vagrant/code/web/core/includes/theme.maintenance.inc on line 73 in Drupal\Core\Extension\ThemeHandler->addTheme() (line 118 of /home/vagrant/code/web/core/lib/Drupal/Core/Extension/ThemeHandler.php).

Drupal\Core\Extension\ThemeHandler->addTheme(NULL) (Line: 73)
_drupal_maintenance_theme() (Line: 759)
drupal_maintenance_theme() (Line: 1021)
install_display_output(Array, Array, Array) (Line: 267)
_drupal_log_error(Array, 1) (Line: 618)
_drupal_exception_handler(Object)

I am trying to use Drupal 8.9.3, my server is running on PHP 7.4, but I have also tried PHP 7.3 with the same results.

Anyone with the same results?

I just tested with the built in web server and the site works so it seems that there is an issue with Homestead itself.

The issue should probably be closed, however I will leave it open for a few days if someone has a solution that works.