Bug #47058
Error 500 when using f:translate with source attribute when translation catalog empty
Status: | Resolved | Start date: | 2013-04-09 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Adrian Föder | % Done: | 100% |
|
Category: | I18n | |||
Target version: | TYPO3 Flow Base Distribution - 2.0.1 | |||
PHP Version: | 5.4 | Complexity: | ||
Has patch: | No | Affected Flow version: | Flow 2.0.0 beta 1 |
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>
</body>
</file>
</xliff>
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|)
Associated revisions
[BUGFIX] Behave silently if no translation unit elements are present
If a translation source does not contain any translationUnit elements,
which is allowed in XLIFF for <trans-unit> elements inside //file/body,
now there is no Undefined Index error anymore, but the incident is
silently logged to the system logger as every other translation-related
incident.
Change-Id: I3201507fc62d6367d1d004c9ddae5aab53d693eb
Fixes: #47058
Releases: master, 2.0
[BUGFIX] Behave silently if no translation unit elements are present
If a translation source does not contain any translationUnit elements,
which is allowed in XLIFF for <trans-unit> elements inside //file/body,
now there is no Undefined Index error anymore, but the incident is
silently logged to the system logger as every other translation-related
incident.
Change-Id: I3201507fc62d6367d1d004c9ddae5aab53d693eb
Fixes: #47058
Releases: master, 2.0
History
#1 Updated by Adrian Föder over 2 years ago
- Status changed from New to Accepted
#2 Updated by Robert Lemke about 2 years ago
- Target version changed from 2.0 to 2.0.1
#3 Updated by Gerrit Code Review about 2 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 2 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 2 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 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 06a1694dec79a67e8e195ede97c3a9ffccc4aacb.