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 26 days 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

Production build 0.71.5 2024