简体   繁体   English

Typo3 10.4:Tx_news 内容元素呈现错误

[英]Typo3 10.4: Tx_news content elements rendering error

I am updating Typo3 from Version 8 to 9 and 10. Now there is one error, I am not able to find a solution.我正在将 Typo3 从版本 8 更新到 9 和 10。现在有一个错误,我无法找到解决方案。

In tx_news details view I am using custom fluid templates.在 tx_news 详细信息视图中,我使用的是自定义流体模板。 I Typo3 8 and 9 everything works fine.我 Typo3 8 和 9 一切正常。 In Typo3 10.4 I get an error when showing the detail page: (1/1) #1381512761 TYPO3\CMS\Core\Type\Exception\InvalidEnumerationValueException Invalid value "FILE" for enumeration "TYPO3\CMS\Core\DataHandling\TableColumnSubType"在 Typo3 10.4 中显示详细信息页面时出现错误:(1/1) #1381512761 TYPO3\CMS\Core\Type\Exception\InvalidEnumerationValueException 枚举“TYPO3\CMS\Core\DataHandling\TableColumnSubType”的无效值“FILE”

If I remove this code for contentelements in the fluid template, the page will be shown without errors:如果我删除流体模板中内容元素的此代码,页面将显示没有错误:

<f:if condition="{newsItem.contentElements}">
    <!-- content elements -->
    <f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{newsItem.contentElementIdList}</f:cObject>
</f:if>

As I am using contentelements, I need this code.当我使用 contentelements 时,我需要这段代码。

You can see the error at the moment here: https://asienhaus104.der-koenig.net/aktuelles/detail/spenden-fuer-die-suedostasien您现在可以在这里看到错误: https://asienhaus104.der-koenig.net/aktuelles/detail/spenden-fuer-die-suedostasien

I tried lots of variants to solve this, but still the error will be there when I insert the fluid output for content elements.我尝试了很多变体来解决这个问题,但是当我为内容元素插入流体 output 时仍然会出现错误。

Do anybody can help with this?有人可以帮忙吗?

Thanks, Jürgen谢谢,于尔根

It seems you have a content element inside which is rendered in TypoScript with the FILE object (which was removed in v10).似乎您有一个内容元素,它在 TypoScript 中使用 FILE object(已在 v10 中删除)呈现。 Take a look in your TypoScript (TypoScript object browser is best for this) and search for FILE objects (and replace them).查看您的 TypoScript(TypoScript object 浏览器最适合此操作)并搜索 FILE 对象(并替换它们)。

Here you can find the deprecation notice and a migration suggestion: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/9.5/Deprecation-85970-FileContentObject.html Here you can find the deprecation notice and a migration suggestion: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/9.5/Deprecation-85970-FileContentObject.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM