Bug #73670
closedPage Module: View broken with localized (flux) content elements.
100%
Description
After upgrading to TYPO3 7.6.4 and on selecting the page module on pages with localized flux contents, following error is thrown:
Invalid argument supplied for foreach() in /typo3/sysext/backend/Classes/View/PageLayoutView.php line 1812
foreach ($this->contentElementCache[$lP][$colPos] as $record) { $key = array_search($record['t3_origuid'], $defLanguageCount); if ($key !== false) { unset($defLanguageCount[$key]); } }
This is called e.g. in /typo3conf/ext/flux/Classes/View/PreviewView.php, newLanguageButton().
It seems not to check whether the incoming data is an array. Simply wrapping the above code snippet into this if-statement seems to fix it (don't know about any side effects, localization seems to work fine):
if(is_array($this->contentElementCache[$lP][$colPos])) { … }
Can you look into this? Thank you.
Updated by Gerrit Code Review over 8 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 https://review.typo3.org/46925
Updated by Mathias Schreiber over 8 years ago
- Status changed from Under Review to Closed
Updated by Mathias Schreiber over 8 years ago
- Status changed from Closed to Under Review
- Priority changed from -- undefined -- to Should have
sorry for closing, Redmine messed up
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47038
Updated by Andreas Fernandez over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 766ebde70c3228d43dad74f5df9070132004d3fa.