Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don´t work with Typo3 V10.4.8 #5

Open
heural opened this issue Oct 7, 2020 · 1 comment
Open

Don´t work with Typo3 V10.4.8 #5

heural opened this issue Oct 7, 2020 · 1 comment

Comments

@heural
Copy link

heural commented Oct 7, 2020

PHP Fatal error: Declaration of class@anonymous::isEnvironmentInFrontendMode() must be compatible with TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInFrontendMode(): bool in /bigdisk/typo3/vhosts/fotoquelle/packages/warmup/Classes/FrontendRequestBuilder.php on line 55

Fixing this with:
$environmentService = new class extends EnvironmentService { public function isEnvironmentInFrontendMode() : bool { return true; } public function isEnvironmentInBackendMode() : bool { return false; } public function isEnvironmentInCliMode() : bool { return false; } };

the next error is:

Uncaught TYPO3 Exception Too few arguments to function TYPO3\CMS\Extbase\SignalSlot\Dispatcher::__construct(), 0 passed in /bigdisk/typo3/vhosts/fotoquelle/packages/warmup/Classes/FrontendRequestBuilder.php on line 70 and exactly 2 expected
thrown in file /bigdisk/typo3/vhosts/fotoquelle/web/typo3/sysext/extbase/Classes/SignalSlot/Dispatcher.php
in line 296

@sbuerk
Copy link

sbuerk commented Feb 2, 2022

duplicate of #3.

The first issue with the :bool return types should be fixed with f992b15 - or not ?

The second I cannot say, anyway with latest tag it works for us without error on 10.4.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants