Bug #47529
Regression in 4.7.11rc1: Invalid argument supplied for foreach() in class.tx_cms_layout.php line 404
Status: | Resolved | Start date: | 2013-04-24 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | Backend User Interface | Spent time: | - | |
Target version: | 4.5.26 | |||
TYPO3 Version: | 4.5 | Is Regression: | ||
PHP Version: | 5.3 | Sprint Focus: | ||
Complexity: | easy |
Description
Since commit https://git.typo3.org/TYPO3v4/Core.git/commitdiff/f6d0567b1b53653d520cc3fb08de3a2e2de9de64 this warning appears for each empty column:
PHP Warning: Invalid argument supplied for foreach() in typo3_src-4.7.11rc1/typo3/sysext/cms/layout/class.tx_cms_layout.php line 404
Tested in 4.7.11rc1, PHP 5.3.22 with APC
Related issues
Associated revisions
[BUGFIX] Empty columns in Page Module view cause warnings
The iteration over columns in the page module layout view
expects arrays. Since it might happen, that there is no element
for a particular column, variables need to be initialized with
an empty array.
Change-Id: I63b4b26a87f1520139c9d66d0c096a78d39e409c
Fixes: #47529
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/20229
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Empty columns in Page Module view cause warnings
The iteration over columns in the page module layout view
expects arrays. Since it might happen, that there is no element
for a particular column, variables need to be initialized with
an empty array.
Change-Id: I63b4b26a87f1520139c9d66d0c096a78d39e409c
Fixes: #47529
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/20229
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-on: https://review.typo3.org/20230
[BUGFIX] Empty columns in Page Module view cause warnings
The iteration over columns in the page module layout view
expects arrays. Since it might happen, that there is no element
for a particular column, variables need to be initialized with
an empty array.
Change-Id: I63b4b26a87f1520139c9d66d0c096a78d39e409c
Fixes: #47529
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/20229
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-on: https://review.typo3.org/20231
[BUGFIX] Empty columns in Page Module view cause warnings
The iteration over columns in the page module layout view
expects arrays. Since it might happen, that there is no element
for a particular column, variables need to be initialized with
an empty array.
Change-Id: I63b4b26a87f1520139c9d66d0c096a78d39e409c
Fixes: #47529
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/20164
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Empty columns in Page Module view cause warnings
The iteration over columns in the page module layout view
expects arrays. Since it might happen, that there is no element
for a particular column, variables need to be initialized with
an empty array.
Change-Id: I63b4b26a87f1520139c9d66d0c096a78d39e409c
Fixes: #47529
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/20232
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
History
#1 Updated by Chris topher over 2 years ago
- Category set to 1394
- Target version set to 4.7.11
This does not concern 4.6, but all other branches from 4.5 up to master. See #44470.
#2 Updated by Chris topher over 2 years ago
- Subject changed from Warning in tx_cms_layout to Regression in 4.7.11rc1: Invalid argument supplied for foreach() in class.tx_cms_layout.php line 404
#3 Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/20164
#4 Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20229
#5 Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/20230
#6 Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/20231
#7 Updated by Gerrit Code Review over 2 years ago
Patch set 5 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/20164
#8 Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/20232
#9 Updated by Oliver Hader over 2 years ago
- Category changed from 1394 to Backend User Interface
- Status changed from Under Review to Resolved
- Target version changed from 4.7.11 to 4.5.26
- % Done changed from 0 to 100
- TYPO3 Version changed from 4.7 to 4.5
- PHP Version set to 5.3
#10 Updated by Daniel Ostmann about 2 years ago
- File Bildschirmfoto_2013-07-31_um_10.01.20.png added
This is still an issue in 4.7.14. I attached a screenshot. I occours, if i select a page without any content columns.