Closed Sofatraining closed 9 months ago
Same error in TYPO3 11.5.31 with flux 10.0.6. If I set extension setting pageIntegration=0, then the problem disappears.
we patched it as followed: (this is related to: #2138 )
Classes/Service/PageService.php
:
@@ -59,7 +59,7 @@
- public function getPageTemplateConfiguration(int $pageUid): ?array
+ public function getPageTemplateConfiguration(?int $pageUid): ?array
Classes/Provider/PageProvider.php
@@ -84,7 +84,7 @@
- $pageTemplateConfiguration = $this->pageService->getPageTemplateConfiguration($row['uid']);
+ $pageTemplateConfiguration = $this->pageService->getPageTemplateConfiguration((int)$row['uid']);
I have checked that the bug exists in the
dev-development
branch YesI have checked that there are no already open issues or recently closed issues about this bug Yes
Describe the bug Creating New Page generating error.
Flux Provider 'Content' was registered correctly
FluidTYPO3\Flux\Service\PageService::getPageTemplateConfiguration(): Argument #1 ($pageUid) must be of type int, null given, called in /www/htdocs/.../typo3conf/ext/flux/Classes/Provider/PageProvider.php on line 87
TYPO3 12.4.6 Probably because the Flux Provider 'Page' was not registered correctlyAlso you can see there are no entries in page properties under 'Page Layouts':![page-properties](https://github.com/FluidTYPO3/flux/assets/47626641/a69f6135-b124-4fa5-9b5c-efbae245e60b)
Entries in ext_localconf.php:
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('myextensionkey', 'Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('myextensionkey', 'Page');
'myextensionkey' was of course replaced with the correct key.To Reproduce Steps to reproduce the behavior: