Project

General

Profile

Actions

Bug #67234

closed

Loading Language Files fails when document root is an nfs share

Added by Petra Arentzen over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2015-06-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #67048: PHP 5.6.9, probably due to libpcre-Update in PHPClosed2015-05-20

Actions
Actions

Also available in: Atom PDF