TYPO3 v11 和 fluidtypo3/flux v9.5.0:Class 页面不存在。反射失败

TYPO3 v11 and fluidtypo3/flux v9.5.0: Class Page does not exist. Reflection failed

我重新安装了 TYPO3 v11.5.9 作曲家...

composer require "typo3/cms-adminpanel:^11.5" "typo3/cms-backend:^11.5" "typo3/cms-belog:^11.5" "typo3/cms-beuser:^11.5" "typo3/cms-core:^11.5" "typo3/cms-dashboard:^11.5" "typo3/cms-extbase:^11.5" "typo3/cms-extensionmanager:^11.5" "typo3/cms-filelist:^11.5" "typo3/cms-fluid:^11.5" "typo3/cms-fluid-styled-content:^11.5" "typo3/cms-form:^11.5" "typo3/cms-frontend:^11.5" "typo3/cms-impexp:^11.5" "typo3/cms-info:^11.5" "typo3/cms-install:^11.5" "typo3/cms-lowlevel:^11.5" "typo3/cms-opendocs:^11.5" "typo3/cms-recordlist:^11.5" "typo3/cms-recycler:^11.5" "typo3/cms-redirects:^11.5" "typo3/cms-reports:^11.5" "typo3/cms-rte-ckeditor:^11.5" "typo3/cms-scheduler:^11.5" "typo3/cms-seo:^11.5" "typo3/cms-setup:^11.5" "typo3/cms-tstemplate:^11.5" "typo3/cms-viewpage:^11.5"

并添加了 fluidtypo3/flux,composer 安装了 v9.5.0:

composer require fluidtypo3/flux

我用 sitepackagebuilder.com 创建了一个网站包。 在 ext_localconf.php 中,我这样注册了 Flux:

\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Vendor.Sitepackage', 'Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Vendor.Sitepackage', 'Page');

在添加根页面、创建主模板记录(包括所有静态模板)并将 TypoScript 添加到页面后,我在前端打开了页面。出现以下错误:

(1/2) #1278450972 TYPO3\CMS\Extbase\Reflection\Exception\UnknownClassException
Class Page does not exist. Reflection failed.

无论定义什么扩展设置或 Resources/Private/Tempaltes/Content/ 中是否存在任何模板,异常仍然存在。

但是,如果我将 Flux 的版本更改为 dev-development,前端加载非常好。

有人知道这里发生了什么吗?我做错了什么?

我发现了问题。

文件ext_localconf.php检查TYPO3核心版本的错误条件,导致错误$pageControllerName(第136行)。它是 Page 而不是 \FluidTYPO3\Flux\Controller\PageController::class 来解释异常消息。 (文件Classes/Integration/ContentTypeBuilder.php中也出现错误情况)。

此错误已在分支 development 提交 #19279684f1792f373d3a1fafdbde4dea0e4e12d9.

中修复