Bug #17910
closed
Fatal error when trying to edit an record with additionalPreviewLanguage and an deleted l18n_parent
Added by Marc Bastian Heinrichs almost 17 years ago.
Updated about 6 years ago.
Description
[v4.1.4]
Fatal error: Cannot use string offset as an array in [...]/typo3_src-4.1.4/t3lib/class.t3lib_tceforms.php on line 2954
$tInfo is an string
patch follows
to reproduce
- add an website language
- set options.additionalPreviewLanguages of BE user to uid of language
- translate a page
- add an content element
- translate the content element
- deleted the org content element
- try to edit translated content element
(issue imported from #M6931)
Files
here is the patch against 4.1.4
In current TYPO3 versions deleting only the original content element which still has a translation attached shouldn't be possible because the translated element is automatically deleted with it.
Do you still have a problem with this feature or can this report be closed?
Jep, in newer TYPO3 versions the translated element is automatically deleted with the parent. So this problem can't be reproduced.
But don't you also mean checking the 2-dim array the right way doesn't hurt?
No, of course it does not hurt. Would you mind sending your patch to the core list so it can be +1 and committed?
Patch set 1 of change Id51afff4349a473f291ef50631b519942f45be13 has been pushed to the review server.
It is available at http://review.typo3.org/4734
- Status changed from Needs Feedback to Under Review
- Target version deleted (
0)
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF