【问题标题】:TYPO3 Frontend Error: #1476045117 and TYPO3 Frontend Error: #1580056272TYPO3 前端错误:#1476045117 和 TYPO3 前端错误:#1580056272
【发布时间】: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 的增强

标签: typo3 tx-news


【解决方案1】:

事实证明,有两个流氓DateTime 隐藏在其中一个非composer 扩展中,而它们之前缺少\。我还必须在我的ext_emconf.php 中添加以下内容:

'suggests' => [
 'news' => '7.3.0-0.0.0',
],

这也解决了我无法清除缓存的问题,并且在重新加载我的前端时我再次看到了内容。 感谢这里的所有人和 Slack 的帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多