Project

General

Profile

Actions

Bug #22152

closed

4.4: PHP warning "Invalid argument supplied for foreach()" in list module

Added by Franz Holzinger over 14 years ago. Updated over 5 years ago.

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

100%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If I call the list module, then I get:

PHP Warning: Invalid argument supplied for foreach() in /var/www/html/trunk/typo3/class.db_list.inc line 739

This happens because $TCA[static_template]['columns'] is null.

(issue imported from #M13602)


Files

list-warning.diff (608 Bytes) list-warning.diff Administrator Admin, 2010-02-22 10:40

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #17961: Missing TCA[table][columns] leads to PHP warningClosedAndreas Wolf2007-12-31

Actions
Actions #1

Updated by Benni Mack over 14 years ago

Hey Franz.

Can you please send your patch to the core list?

Thanks!

Actions #2

Updated by Dmitry Dulepov over 12 years ago

  • Target version deleted (0)

The patch is incorrect because colums are loaded with loadTCA call, which is after the check. After the patch, the code will work only for tables, where loadTCA was already called.

Actions #3

Updated by Mr. Jenkins over 12 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change I8b4663ba81f039d4ea416100dc8f2b8e4658cf35 has been pushed to the review server.
It is available at http://review.typo3.org/6893

Actions #4

Updated by Gerrit Code Review over 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6893

Actions #5

Updated by Stefan Neufeind over 12 years ago

Issues 17961 and 22152 touch (and fix) the same thing - doing it slightly different, but the same thing. Please merge :-)

Actions #6

Updated by Gerrit Code Review over 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6893

Actions #7

Updated by Dmitry Dulepov over 12 years ago

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

Updated by Gerrit Code Review over 12 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/9470

Actions #9

Updated by Dmitry Dulepov over 12 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Gerrit Code Review almost 12 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/12821

Actions #11

Updated by Gerrit Code Review almost 12 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12824

Actions #12

Updated by Gerrit Code Review almost 12 years ago

Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12824

Actions #13

Updated by Dmitry Dulepov almost 12 years ago

  • Status changed from Under Review to Resolved
Actions #14

Updated by Gerrit Code Review almost 12 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/13675

Actions #15

Updated by Helmut Hummel almost 12 years ago

  • Status changed from Under Review to Resolved
Actions #16

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF