Bug #22152

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

Added by Franz Holzinger over 12 years ago. Updated almost 4 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

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

Actions
#1

Updated by Benni Mack over 12 years ago

Hey Franz.

Can you please send your patch to the core list?

Thanks!

#2

Updated by Dmitry Dulepov over 10 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.

#3

Updated by Mr. Jenkins over 10 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

#4

Updated by Gerrit Code Review over 10 years ago

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

#5

Updated by Stefan Neufeind over 10 years ago

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

#6

Updated by Gerrit Code Review over 10 years ago

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

#7

Updated by Dmitry Dulepov over 10 years ago

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

Updated by Gerrit Code Review over 10 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

#9

Updated by Dmitry Dulepov over 10 years ago

  • Status changed from Under Review to Resolved
#10

Updated by Gerrit Code Review about 10 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

#11

Updated by Gerrit Code Review about 10 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

#12

Updated by Gerrit Code Review about 10 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

#13

Updated by Dmitry Dulepov about 10 years ago

  • Status changed from Under Review to Resolved
#14

Updated by Gerrit Code Review almost 10 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

#15

Updated by Helmut Hummel almost 10 years ago

  • Status changed from Under Review to Resolved
#16

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF