Class "\Drupal\upgrade_status\Form\UpgradeStatusForm" does not exist

Created on 13 July 2023, over 1 year ago

Problem/Motivation

After installing the module via composer on drupal core 9.5.10 and enabling, I'm getting the following error when visiting upgrade status page:

InvalidArgumentException: Class "\Drupal\upgrade_status\Form\UpgradeStatusForm" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 in [...]/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).

The module files do exists, as well as the file for UpgradeStatusForm class (in web/modules/contrib/upgrade_status/src/Form).

Any ideas?

๐Ÿ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ญSwitzerland neverstopscrolling Lucerne

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

Comments & Activities

  • Issue created by @neverstopscrolling
  • I had same issue. Drupal 9.5.10, PHP 8.1.11. Module installed via composer and enabled with drush.

    If it helps with debugging, after this happened, I uninstalled the module through UI and then enabled it through UI and it works.

  • Status changed to Closed: cannot reproduce over 1 year ago
  • ๐Ÿ‡ญ๐Ÿ‡บHungary Gรกbor Hojtsy Hungary

    This does not sound like a problem in the module based on your descriptions. Also other people did not report this issue based on https://www.drupal.org/project/issues/upgrade_status?text=UpgradeStatusForm โ†’

  • Status changed to Needs work about 2 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinayakmk47

    @t_d_d @gรกbor hojtsy I am also facing issue when installed upgrade status 4.1 version for Drupal 9.5.3, PHP 8.1.25. Module installed via composer and enabled with drush. getting InvalidArgumentException: Class "\Drupal\upgrade_status\Form\UpgradeStatusForm" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of C:\xampp\htdocs\legal\web\core\lib\Drupal\Core\DependencyInjection\ClassResolver.php). error

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany jocowood Kamp-Lintfort

    I got the same problem and a full cache wipeout fixed it.

    drush sqlq 'TRUNCATE cache_container';
    vendor/bin/drush cr
    vendor/bin/drush cc plugin
Production build 0.71.5 2024