Project

General

Profile

Actions

Bug #73872

closed

Invalid argument supplied for foreach in PageLayoutView

Added by Dmitry Dulepov over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
2016-03-02
Due date:
% Done:

0%

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

Description

Getting a warning:

PHP Warning
Core: Error handler (BE): PHP Warning: Invalid argument supplied for foreach() in /home/***/vendor/typo3/cms/typo3/sysext/backend/Classes/View/PageLayoutView.php line 1802

Code in question is:

        foreach ($this->contentElementCache[$lP][$colPos] as $record) {
            $key = array_search($record['t3_origuid'], $defLanguageCount);
            if ($key !== false) {
                unset($defLanguageCount[$key]);
            }
        }

It looks like it should be checked that it is an array before looping.

This is function newLanguageButton, when "Languages" is selected instead of "Columns" in the Page module.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #73670: Page Module: View broken with localized (flux) content elements.Closed2016-02-25

Actions
Actions

Also available in: Atom PDF