typo3typo3-extensionstypo3-10.xtx-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.

In tx_news details view I am using custom fluid templates. In 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 content elements 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'm using content elements, 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.


Solution

  • 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