antwerpes / ap_docchecklogin

Integrate DocCheck Login with your TYPO3 projects.
5 stars 13 forks source link

Typo3 9.5.7 Frontend crashes with "ooops" after Installation #16

Open Doc2k opened 5 years ago

Doc2k commented 5 years ago

After installing the extension (tried v1.2.2 / v1.2.1 / v1.2.0) The frontend of my Typo3 9.5.7 crashes with an "oops". After deactivating the extension it is working well.

I've Found the following error in the Systemprotocol:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294585866: No class named EXT:ap_docchecklogin/Classes/DocCheckAuthenticationService.php:&Antwerpes\ApDocchecklogin\DocCheckAuthenticationService | InvalidArgumentException thrown in file /var/www/vhosts/xxxxx.xxx/typo3_9/typo3_src-9.5.7/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 3585. Requested URL: https://xxxxx.xxx/

Maybe there is something I've to do or have done wrong?

martingebhardt commented 5 years ago

I have the same issue. Typo 9.5.11

Is there anybody how can help? Why is this class not found? Whats wrong? The path is correct!

Edit 1: Ok, I think it was a wrong configuration from older typo version. I upgraded from 7.6. to 9.5.11. Now I cleaned some Page TSConfig Scripts and some more. It works now without "oops".

Edit 2 after 14 days: same error.

Now I installed a fresh TYPO3 9.5.11 Version and the same error appears.

Bildschirmfoto 2019-11-21 um 19 56 05

Another test in Typo3 8.7.29 works fine.

martingebhardt commented 4 years ago

One possible solution could be this:

Replace this:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['initFEuser'][] = 'EXT:ap_docchecklogin/Classes/DocCheckAuthenticationService.php:&Antwerpes\ApDocchecklogin\DocCheckAuthenticationService->bypassLoginForCrawling';

with this

$GLOBALS['TYPO3_CONF_VARS'] ['SC_OPTIONS'] ['tslib/class.tslib_fe.php'] ['initFEuser'][] = 'Antwerpes\\ApDocchecklogin\\DocCheckAuthenticationService->bypassLoginForCrawling';

can anyone confirm if this works?

paifgx commented 4 years ago

can confirm it. it fix the problem.