InvalidArgumentException: Class "\Drupal\rest_api_authentication\Form\MiniOrangeAPIAuth" does not exist.

Created on 25 June 2024, 5 months ago
Updated 27 June 2024, 5 months ago

Problem/Motivation

With version 2.0.16, when visiting the config page, we get :

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

Steps to reproduce

Installing or updating to version 2.0.16 from 2.0.14

Proposed resolution

Review the code to find the bug.

Remaining tasks

Fix the bug and do some manual testing to make sure the next release is working properly before actually releasing it.

Thank you.

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇨🇦Canada leducdubleuet Chicoutimi QC

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

Comments & Activities

  • Issue created by @leducdubleuet
  • 🇮🇳India bharath-kondeti Hyderabad

    This looks like its working. I have tested this on Drupal 10.3 and 2.0.16 version of this module.
    If you are still seeing the issue, can you please help with relevant steps to reproduce ?

  • Status changed to Needs review 5 months ago
  • @LeDucDuBleuet, of course, the module goes through the testing pipeline to ensure that the bug/issue that is pointed out is fixed, as well as the fix did not break anything else.

    It also seems that @bharath-kondeti has also performed their independent testing, and confirmed 2.0.16 is working fine with Drupal 10.3.

    Would you please check again perhaps in a fresh environment/installation?

  • 🇨🇦Canada leducdubleuet Chicoutimi QC

    Thank you for your replies, I am back with 2.0.13 for now.

    Sorry for jumping to conclusions, I really thought it was something as trivial as my previous issue : https://www.drupal.org/project/rest_api_authentication/issues/3455511 🐛 LogicException: Service 'rest_api_authentication.authentication.rest_api_authentication' for consumer 'authentication_collector' does not implement Drupal\Core\Authentication\AuthenticationProviderInterface. Fixed

    I will do more testing on my site later today and come back with more details.

    Thanks again both for your time.

  • Status changed to Postponed: needs info 5 months ago
  • 🇨🇦Canada leducdubleuet Chicoutimi QC
  • Status changed to Closed: works as designed 5 months ago
  • 🇨🇦Canada leducdubleuet Chicoutimi QC

    I have done more testing and I found out the InvalidArgumentException happened only when upgrading to 2.0.16 from 2.0.14. Also, I tried to uninstall version 2.0.14 and cleared the cache before installing 2.0.16 and I got the same InvalidArgumentException. So the problem was from version 2.0.14 which should never have been released and I do not have more time to investigate further.

    I tested on 3 different sites and I can confirm upgrading to 2.0.16 from 2.0.13 is working like expected so this issue is now "Closed (works as designed)".

    Sorry for sounding a little harsh earlier and thank you for a great module!

    Although I have to admit, it would be great to have much less advertisements in the config... Just not landing on the login form would make a good difference in my opinion. My 2 cents.

Production build 0.71.5 2024