Issue Bug Closed

#67234Loading Language Files fails when document root is an nfs share

Petra Arentzen 06/02/15, 12:05 updated 03/24/19, 12:52

Description

When using TYPO3 over nfs TYPO3 loading any language file failes. (“The path provided does not point to existing and accessible well-formed XML file.” #1278155988)

I found that this error occurs in TYPO3\CMS\Core\Localization\Parser::parseXmlFile() (btw. I think ‘SimpleXmlElement’ should be changed to ‘SimpleXMLElement’)

...
    $rootXmlNode = simplexml_load_file($this->sourcePath, 'SimpleXmlElement', \LIBXML_NOWARNING);

    if (!isset($rootXmlNode) || $rootXmlNode === FALSE) {
        throw new InvalidXmlFileException('The path provided does not point to existing and accessible well-formed XML file.', 1278155988);
    }
..

Changing it to:

...
    $rootXmlNode = simplexml_load_string(file_get_contents($this->sourcePath),'SimpleXmlElement', \LIBXML_NOWARNING);

    if (!isset($rootXmlNode) || $rootXmlNode === FALSE) {
        throw new InvalidXmlFileException('The path provided does not point to existing and accessible well-formed XML file.', 1278155988);
    }
...

fixes the issue.

I think this issue comes from php, but since it makes TYPO3 unusable, it should be changed.

I tried PHP 5.5.25 && 5.6.9 as cgi versions under apache 2.4.10 (Debian Jessie)

NFS-Server is the one shipped with OS X Yosemite 10.10.3

I’m using the newest TYPO3 7 Development Version installed with composer, but the occurred also with a new 6.2.x stable.

Reviews 1