uncaught php error after upgrade to 2.0beta1

Created on 31 March 2023, over 1 year ago
Updated 22 July 2023, over 1 year ago

Problem/Motivation

Since version 8.x-1.9 was not compatible with D10, I upgraded to 2.0beta1 using composer require 'drupal/captcha:^2.0@beta'. There was no error during the upgrade and drush updatedb as well as drush cache:rebuild went smoothly.

But now, if I try to open /admin/config/people/captcha/image_captcha or if I want to clear cache I get an uncaught PHP error:
[error] 143292#143292: *101564 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception ReflectionException: "Class "\Drupal\image_captcha\Controller\CaptchaFontPreviewController" does not exist" at /var/www/mysite/web/core/lib/Drupal/Core/Entity/EntityResolverManager.php line 135" while reading response header from upstream

Steps to reproduce

Upgrade to 2.0beta1 and try to open /admin/config/people/captcha/image_captcha or try to clear caches (on /admin/config/development/performance)

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Miscellaneous

Created by

🇩🇪Germany beedaddy

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

Comments & Activities

  • Issue created by @beedaddy
  • Assigned to Grevil
  • 🇩🇪Germany Anybody Porta Westfalica

    @beedaddy thanks!
    Which PHP version? Which exact D10 version?

  • 🇩🇪Germany beedaddy

    The error message above is after trying to clear caches via the UI (/admin/config/development/performance).

    The following error message is after trying to open the image captcha page (/admin/config/people/captcha/image_captcha):
    [error] 143292#143292: *115442 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception InvalidArgumentException: "Class "\Drupal\image_captcha\Form\ImageCaptchaSettingsForm" does not exist." at /var/www/mysite/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php line 24" while reading response header from upstream

  • 🇩🇪Germany beedaddy

    @Anybody: PHP 8.1 and Drupal 10.0.7.

  • 🇩🇪Germany beedaddy

    Restarting the PHP-FPM-process (again) seems to have solved the problem. 😯

  • 🇩🇪Germany Grevil

    Interesting! @Anybody, what do you think on how to proceed here? Should we look into it?

  • Issue was unassigned.
  • Status changed to Closed: works as designed over 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    No, it seems to me this was a local issue @beedaddy! Otherwise feel free to reopen and provide details @beedaddy or anyone else :)

  • 🇮🇳India newswatch Delhi/Bangalore

    # 6 works. I had to restart as well.

Production build 0.71.5 2024