简体   繁体   中英

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.

In tx_news details view I am using custom fluid templates. I Typo3 8 and 9 everything works fine. 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"

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.

You can see the error at the moment here: 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.

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). Take a look in your TypoScript (TypoScript object browser is best for this) and search for FILE objects (and replace them).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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