Can't uninstall

Created on 31 March 2024, 9 months ago
Updated 16 April 2024, 8 months ago

Problem/Motivation

I wanted to replace 2.02 by 3.0 on a Drupal 10.2.4 following the presentation page instructions, so I tried to uninstall v2.0.2 first with drush pm:uninstall security_review. The result was:

PHP Fatal error: Trait "Drush\Commands\AutowireTrait" not found in /path_to_site/web/modules/contrib/devel/src/Drush/Commands/DevelCommands.php on line 25
[warning] Drush command terminated abnormally.

then I was unable to access the site, with the following displayed:

ArgumentCountError: Too few arguments to function Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::__construct(), 3 passed in /path_to_site/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 6 expected in Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber->__construct() (line 72 of modules/contrib/devel/src/EventSubscriber/ThemeInfoRebuildSubscriber.php).

After clearing cache with drush cr I was able to access the site again but running security_review, after some tests, it stopped with this in logs:

Warning: Array to string conversion in Drupal\security_review\Checks\QueryErrors->run() (line 68 of /path_to_site/web/modules/contrib/security_review/src/Checks/QueryErrors.php).

So how can I install v3.0 ? Can I go on without uninstalling previous version as indicated ?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇫🇷France erwangel

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

Comments & Activities

Production build 0.71.5 2024