b13 / warmup

Warms up some TYPO3 caches via CLI
GNU General Public License v2.0
11 stars 6 forks source link

Problems with TYPO3 10 #3

Open georgringer opened 4 years ago

georgringer commented 4 years ago

I just wanted to test the extension on a 10.4.1 and it fails with

Fatal error: Declaration of class@anonymous::isEnvironmentInFrontendMode() must be compatible with TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInFrontendMode(): bool in /var/www/html/web/typo3conf/ext/warmup/Classes/FrontendRequestBuilder.php on line 56

after adding :bool to those methods it fails with

 [ ArgumentCountError ]
  Too few arguments to function TYPO3\CMS\Extbase\SignalSlot\Dispatcher::__construct(), 0 passed in /var/www/html/web/typo3conf/ext/warmup/Classes/FrontendRequestBuilder.php on l
  ine 70 and exactly 2 expected
dennismetz commented 3 years ago

I can reproduce the error under 10.4.16 if i try to run the cron via CLI .../typo3/sysext/core/bin/typo3 scheduler:run PHP Fatal error: Declaration of class@anonymous::isEnvironmentInFrontendMode() must be compatible with TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInFrontendMode(): bool in /mnt/f/Projekte/typo3/hs-albsig/typo3conf/ext/warmup/Classes/FrontendRequestBuilder.php on line 55

If i try to start the job via backend i get the following error: Creating a CLI-based user object on non-CLI level is not allowed

Make66 commented 2 years ago

me too

sbuerk commented 2 years ago

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

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

Still an issue open, or can this issue be closed ?