Project

General

Profile

Actions

Bug #18161

closed

Malformed translated locallang causes PHP crash

Added by Francois Suter almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-02-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In t3lib_div::readLLXMLfile() errors in the locallang file are properly caught for the default language (i.e. an error message is displayed pointing to the invalid file), but not for translations (PHP fatal error occurs).

The attached patch copies for the translated file the same mechanism as for the default language file.

To reproduce that bug, you can simply replace a locallang file in typo3conf/l10n by an empty and see what happens. For example replace typo3conf/l10n/lang/[language_key].locallang_general.xml and try to view the page tree in the BE by going to Web > Page.
(issue imported from #M7445)


Files

bug7445_4-1.patch (680 Bytes) bug7445_4-1.patch Administrator Admin, 2008-02-07 15:49
bug7445_4-2.patch (682 Bytes) bug7445_4-2.patch Administrator Admin, 2008-02-07 16:03
Actions

Also available in: Atom PDF