Actions
Bug #79908
closedPHP Error if locallang xml file contains invalid content
Start date:
2017-02-19
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Stabilization Sprint
Description
The following error happens if an invalid locallang.xml file is parsed.
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::getParsedDataForElement() must be an instance of SimpleXMLElement, null given, called in /var/www/html/vendor/typo3/cms/typo3/sysext/core/Classes/Localization/Parser/LocallangXmlParser.php on line 7
Steps to reproduce:
- Rename a
locallang_db.xlf
file tolocallang_db.xml
in an extension of your choice. - Clear cache
- Reload TYPO3 Backend
- Try to open the page Module. The Page-Tree will not load
- Check your php error log
Actions