Project

General

Profile

Actions

Bug #67234

closed

Loading Language Files fails when document root is an nfs share

Added by Petra Arentzen almost 9 years ago. Updated about 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 #1

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39896

Actions #2

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Under Review to Closed

Merged some days ago

Actions #3

Updated by Stephan Großberndt almost 9 years ago

  • Status changed from Closed to New
Actions #4

Updated by Susanne Moog about 6 years ago

  • Category set to Localization
Actions #5

Updated by Benni Mack about 5 years ago

  • Status changed from New to Closed

Yup. This one was fixed as proposed!

Actions

Also available in: Atom PDF