extension class loading not working with typo3 11.5.10
Created by: playernine
Hi.
Maybe I found a problem or I do something wrong.
I installed the oauth-client Plugin directly the typo3 extension repo.
Environment:
Ubuntu 20.04 PHP 7.4.3-4ubuntu2.10 Typo3 11.5.10 pizpalue_distribution 3.3.1
Message from Typo3 log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1642867945: Registered class League\OAuth2\Client\Provider\GenericProvider does not exist or is not an implementation of League\OAuth2\Client\Provider\AbstractProvider | InvalidArgumentException thrown in file /var/www/html/typo3/typo3conf/ext/oauth2_client/Classes/Domain/Model/ProviderConfiguration.php in line 49. Requested URL: https://www-t3.ostfalia.de/favicon.ico |
I think the autoload stuff is not working with this plugin.
I use the GenericProvider and added the the config at /var/www/html/typo3/typo3conf/AdditionalConfiguration.php
If I add the missing classes from
/var/www/html/typo3/typo3conf/ext/oauth2_client/Resources/Private/PHP/composer/autoload_classmap.php
into to the central autoload_classmap.php
/var/www/html/typo3/typo3conf/autoload/autoload_classmap.php
it seems to work better, but not complete. I get no Exceptions anymore, but in typo3 I cannot add the oauth2 login method to the users.
No OAuth2 configured
Only the classes from typo3conf/ext/oauth2_client/Classes are added automatically.
The classes from /var/www/html/typo3/typo3conf/ext/oauth2_client/Resources/Private/PHP are missing.
Kind regards, D