Problem after updating to 2.0.1

Created on 18 July 2023, over 1 year ago
Updated 19 July 2023, over 1 year ago

Problem/Motivation

Up until today, I was using version 8.x-1.10 with success. I just updated to 2.0.1 and now I have this error when trying to access the image captcha configuration form :

InvalidArgumentException: Class "\Drupal\image_captcha\Form\ImageCaptchaSettingsForm" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).

And in my logs, I have this error :

Warning: include(/var/platforms/preprod/web/modules/contrib/captcha/image_captcha/src/Form/ImageCaptchaSettingsForm.php): Failed to open stream: No such file or directory in include() (line 582 of /var/platforms/preprod/vendor/composer/ClassLoader.php).

I wonder why it is trying to load that file from the wrong folder which should be :

/var/platforms/preprod/web/modules/contrib/captcha/modules/image_captcha/src/Form/ImageCaptchaSettingsForm.php

I have done the db update and cleared the cache but I always get these errors.

I have tried the exact same process on another test site and all is well. I wonder what could be wrong on my main site? Could it be something in my composer.json?

If somebody could help me resolving this, I would be forever grateful!

Thank you.

Steps to reproduce

Upgrade from 8.x-1.10 to 8.x-1.11 or 2.0.1 and visit the image captcha config page.

I uninstalled both the captcha and image_captcha modules from my site and it is still producing these errors when I install them back.

Obviously, there is something not getting cleaned properly during the upgrade and also when uninstalling/installing again.

How can this be fixed?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: duplicate

Version

2.0

Component

Image Captcha (image_captcha)

Created by

πŸ‡¨πŸ‡¦Canada leducdubleuet Chicoutimi QC

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

Comments & Activities

Production build 0.71.5 2024