TYPO3 Error | Call to undefined method TYPO3\CMS\Core\Utility\GeneralUtility::readLLfile()

794 views Asked by At

I have TYPO3 Version 8.7.32 installed. But when I want do add a new content element, this error appears. Btw I updated from version 7 to 8.7.32. Everything else works.

1

There are 1 answers

0
Geee On

The method you're using is deprecated, you can migrate to a new one. Check out below:

/** @var $languageFactory \TYPO3\CMS\Core\Localization\LocalizationFactory */
$languageFactory = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Localization\LocalizationFactory::class);
$languageFactory->getParsedData($fileToParse, $language, $renderCharset, $errorMode);

Ref. here: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/7.4/Deprecation-68122-GeneralUtilityReadLLfile.html