Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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))
Comment | File | Size | Author |
---|---|---|---|
#3 | error-search_api_solr_defaults_post_update_uninstall_module-3347486-3.patch | 795 bytes | edmargomes |
Comments
Comment #2
edmargomes CreditAttribution: edmargomes at Nyx Technology commentedComment #3
edmargomes CreditAttribution: edmargomes at Appnovation for Council on Foreign Relations commentedComment #4
edmargomes CreditAttribution: edmargomes at Appnovation for Council on Foreign Relations commentedComment #5
mkalkbrennerComment #6
mkalkbrennerWe should a second post update that does the same again.
Comment #8
mkalkbrenner