Error in search_api_solr_defaults_post_update_uninstall_module: ModuleInstaller::uninstall(): Argument #1 ($module_list) must be of type array, string given

Created on 12 March 2023, almost 2 years ago
Updated 16 June 2023, over 1 year ago

Drupal\Core\ProxyClass\Extension\ModuleInstaller::uninstall(): Argument #1 ($module_list) must be of type array, string given when run updb

Setup

  • Drupal Core version: 8.4.7
  • Search API Solr version: 4.10

Issue

After update Search API Solr and run drush updb show this error:

[error]  TypeError: Drupal\Core\ProxyClass\Extension\ModuleInstaller::uninstall(): Argument #1 ($module_list) must be of type array, string given, called in /code/web/modules/contrib/search_api_solr/modules/search_api_solr_defaults/search_api_solr_defaults.post_update.php on line 15 in Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall() (line 89 of /code/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php) #0 /code/web/modules/contrib/search_api_solr/modules/search_api_solr_defaults/search_api_solr_defaults.post_update.php(15): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall('search_api_solr...')
> #1 /code/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(321): search_api_solr_defaults_post_update_uninstall_module(Array)
> #2 /code/vendor/drush/drush/includes/batch.inc(261): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('search_api_solr...', Object(DrushBatchContext))
🐛 Bug report
Status

Fixed

Version

4.2

Component

Code

Created by

🇧🇷Brazil edmargomes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024