Issue Bug Closed

#77633PHP Crash in AbstractXmlParser

Marcus Balasch 08/25/16, 10:37 updated 12/30/16, 13:55

Description

I have a website with some different FSC-layouts on root level.
In some cases I get PHP-errors in typo3\sysext\core\Classes\Localization\Parser\AbstractXmlParser, line 89.

Reasons for these are:

- $charset === NULL
and
- $GLOBALS[‘TSFE’] is an object, but $GLOBALS[‘TSFE’]->csConvObj is NULL.

Two solutions work for me:

changing line 88
from: if ($charset !== ‘’) {
into: if ($charset != ‘’) {

or

changing line 83
from: } elseif (is_object($GLOBALS[‘TSFE’])) {
into: } elseif (is_object($GLOBALS[‘TSFE’]) && is_object($GLOBALS[‘TSFE’])->csConvObj) {

TYPO3 Version 7.6.10

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.