Project

General

Profile

Actions

Bug #73670

closed

Page Module: View broken with localized (flux) content elements.

Added by Sabrina Sauter over 8 years ago. Updated about 6 years ago.

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

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #73872: Invalid argument supplied for foreach in PageLayoutViewClosedMathias Schreiber2016-03-02

Actions
Actions #1

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

Actions #2

Updated by Mathias Schreiber over 8 years ago

  • Status changed from Under Review to Closed
Actions #3

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

Actions #4

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

Actions #5

Updated by Andreas Fernandez over 8 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF