Bug #47058

Error 500 when using f:translate with source attribute when translation catalog empty

Added by piotr over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
I18n
Start date:
2013-04-09
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.4
Has patch:
No
Complexity:

Description

Got an error:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 146 bytes) in (...)/Packages/Libraries/doctrine/common/lib/Doctrine/Common/Util/Debug.php on line 111

When using:
<f:translate id="translation.id" package="some.package" source="CatalogName">some text</f:translate> and there is no translation units in catalog file:


<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" source-language="en" target-language="de" datatype="plaintext">
<body>

&lt;/body&gt;
&lt;/file&gt;
&lt;/xliff&gt;

Exception file gives:
80 TYPO3\Flow\Error\ErrorHandler::handleError(8, "Undefined index: translationUnits", "(...)Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_I18n_Xliff_XliffModel_Original.php", 123, array|2|)

#1

Updated by Adrian Föder over 8 years ago

  • Status changed from New to Accepted
#2

Updated by Robert Lemke about 8 years ago

  • Target version changed from 2.0 to 2.0.1
#3

Updated by Gerrit Code Review about 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22136

#4

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22136

#5

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/22360

#6

Updated by Adrian Föder about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF