- Issue created by @othdvlpr
1. Following the Upgrade Status entries in the report section of D10, I deleted the msha theme among other modules. The upgrade to 11.1.0 was unsuccessful and lead to the message:
TypeError: Drupal\Core\Extension\ThemeHandler::addTheme(): Argument #1 ($theme) must be of type Drupal\Core\Extension\Extension, null given, called in /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php on line 74 in Drupal\Core\Extension\ThemeHandler->addTheme() (line 84 of /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php).
similar to the one described
https://www.drupal.org/project/drupal/issues/3478628#mr10272-note412963
2. Drush was also rendered inoperable also with the below message.
[warning] Undefined array key "insha" ThemeHandler.php:74
TypeError: Drupal\Core\Extension\ThemeHandler::addTheme(): Argument #1 ($theme) must be of type Drupal\Core\Extension\Extension, null given, called in /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php on line 74 in /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php on line 84 #0 /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php(74): Drupal\Core\Extension\ThemeHandler->addTheme()
. . . Full error message below. . .
TypeError: Drupal\Core\Extension\ThemeHandler::addTheme(): Argument #1 ($theme) must be of type Drupal\Core\Extension\Extension, null given, called in /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php on line 74 in Drupal\Core\Extension\ThemeHandler->addTheme() (line 84 of /var/www/html/drupal/core/lib/Drupal/Core/Extension/ThemeHandler.php).
[warning] Drush command terminated abnormally.
3. I checked and found that the imsha theme was missing in the themes directory and used composer to reinstall it.
4. Invoked the drush updb command but it gave the following message:
[error] (Currently using Missing or invalid modules The following modules are marked as installed in the core.extension
configuration, but they are missing:
* mailsystem
* symfony_mailer_lite
5. After reinstalling both modules with composer, the drush updb ran and both drush and the drupal site were successfully recovered.
I removed an incompatible theme (msha) and modules during a failed upgrade attempt from 10.4.0 to 11.1.0.
Unknown. This report is submitted as a diagnostic aid.
Unknown.
None.
None
None.
Active
6.0
Base system (internal API)