TYPO3 Exception 1561583127

Note

Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.

General TYPO3 troubleshooting tips can be found in the section "Troubleshooting" of the menu, and live support is available in the TYPO3 Slack channel #typo3-cms. (See How to get your TYPO3 Slack account.)

To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.

TYPO3 10.4.28 - 2020-05-25

Exception message:

InvalidArgumentException: TypoScriptFrontendController must be constructed with a valid SiteLanguage object or a resolved site in the current request as fallback. None given.

Situation

The Preview section of a flux content element used <f:cObject> to access a TypoScript-defined function. Because no TSFE is available in the backend, one is created and that brings this error

Solution

Workaround: Do not use <f:cObject> in backend previews.

In TYPO3v11 this has been fixed with https://forge.typo3.org/issues/91511, but that change has not been backported to v10.