【发布时间】:2021-03-10 07:57:58
【问题描述】:
我正在为我的公司建立一个新的 TYPO3 项目,该项目基于以前存在的项目,因为客户要求我们接管它。所以我从我公司的 kickstarter 开始创建一个空的但可以工作的项目。然后我开始添加“旧”内容以及使用的扩展。这里我遇到了一个问题:我通过 Composer 添加了 Georg Ringer 的新闻扩展,网站前端显示以下错误:
(1/1) #1476045117 TYPO3\CMS\Extbase\Persistence\Generic\Exception\InvalidClassException
Could not find class definition for name "GeorgRinger\News\Domain\Model\DateTime
This could be caused by a mis-spelling of the class name in the class definition.
我在网上一无所获,检查了我的整个 \ext 文件夹并没有找到与此相关的任何内容。我通过 composer 卸载并重新安装了新闻扩展,但这也没有解决问题。我还有一个问题,我不能使用后端或命令行来刷新我的缓存,所以我很自然地删除了 var\cache-folder 并在重新加载我的前端时提示我另一个错误:
(1/1) #1580056272 TYPO3\CMS\Extbase\Persistence\Generic\Mapper\Exception\NonExistentPropertyException
The type of property GeorgRinger\News\Domain\Model\NewsDefault::eventStart could not be identified, as property eventStart is unknown to the TYPO3\CMS\Extbase\Reflection\ClassSchema instance of class GeorgRinger\News\Domain\Model\NewsDefault. Please make sure said property exists and that you cleared all caches to trigger a new build of said TYPO3\CMS\Extbase\Reflection\ClassSchema instance
我仍然可以访问安装工具以及后端。清除缓存不会改变任何事情,我的同事建议我询问 TYPO3 社区。该项目在 TYPO3 版本 10.4.12 上运行。感谢您提供任何和所有帮助,谢谢。我对TYPO3还很陌生,所以请和我一起裸露。
【问题讨论】:
-
请更新标题,因为它没有描述问题。
-
@ThomasLöffler 已更新
-
会不会是你错过了扩展
eventnews?我认为eventStart属性不是ext:news的一部分,听起来像是ext:eventnews的增强