Closed klodeckl closed 1 week ago
Looks like this should simply be rewritten as $this->logger
instead of former $this->getLogger()
Please comment on the suggested PR. Thanks for reporting!
Now another error occurs:
Mon, 18 Nov 2024 16:24:14 +0100 [CRITICAL] request="aa170479501d6" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB: BE): TypeError, code #0, file /var/www/vendor/causal/ig_ldap_sso_auth/Classes/Domain/Model/Configuration.php, line 676: Cannot assign null to property Causal\IgLdapSsoAuth\Domain\Model\Configuration::$ldapTimeout of type int - {"mode":"WEB","application_mode":"BE","exception_class":"TypeError","exception_code":0,"file":"/var/www/vendor/causal/ig_ldap_sso_auth/Classes/Domain/Model/Configuration.php","line":676,"message":"Cannot assign null to property Causal\IgLdapSsoAuth\Domain\Model\Configuration::$ldapTimeout of type int","request_url":"https://www.oth-aw.de/typo3/module/scheduler?token=--AnonymizedToken--","exception":null}
Error also occurs also on logins:
Mon, 18 Nov 2024 16:21:28 +0100 [CRITICAL] request="e438a816fb102" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB: FE): TypeError, code #0, file /var/www/vendor/causal/ig_ldap_sso_auth/Classes/Domain/Model/Configuration.php, line 676: Cannot assign null to property Causal\IgLdapSsoAuth\Domain\Model\Configuration::$ldapTimeout of type int - {"mode":"WEB","application_mode":"FE","exception_class":"TypeError","exception_code":0,"file":"/var/www/vendor/causal/ig_ldap_sso_auth/Classes/Domain/Model/Configuration.php","line":676,"message":"Cannot assign null to property Causal\IgLdapSsoAuth\Domain\Model\Configuration::$ldapTimeout of type int","request_url":"https://www.domain.tld/page/?tx_felogin_login%5Baction%5D=login&tx_felogin_login%5Bcontroller%5D=Login&cHash=86d4de0de1a88e642be41dc90bbdd439","exception":null}
I think the getLogger bug is solved and another error occurs when using git master branch.
I'd say, this has nothing to do with that ticket.
Possibly I suspect you didn't go to Database analyser and you are missing a field which has been added to master branch, upcoming v4.1.0...
Yes, you’re right. I added the field in the database, works now! Thank you!
I have to bring this up again. In line 237 there is also getLogger which should be logger
The line 237 was fixed with PR #237 I suggested you had a look with 20 minutes ago. As you told this was now OK, I merged it to master, so imho this should be fine.
Sorry, fine now…
When synchronizing via scheduler I get the following error:
Mon, 18 Nov 2024 15:26:53 +0100 [CRITICAL] request="48e6cca3f62cc" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB: BE): Error, code #0, file /var/www/vendor/causal/ig_ldap_sso_auth/Classes/Command/ImportUsers.php, line 237: Call to undefined method Causal\IgLdapSsoAuth\Command\ImportUsers::getLogger() - {"mode":"WEB","application_mode":"BE","exception_class":"Error","exception_code":0,"file":"/var/www/vendor/causal/ig_ldap_sso_auth/Classes/Command/ImportUsers.php","line":237,"message":"Call to undefined method Causal\IgLdapSsoAuth\Command\ImportUsers::getLogger()","request_url":"https://www.domain.tld/typo3/module/scheduler?token=--AnonymizedToken--","exception":null}
Comes from this->logger->debug… it seems that dependency injection is not working correctly? After commenting out the line (line 230 and 237) the task runs without problems.