Bug #22152
closed
4.4: PHP warning "Invalid argument supplied for foreach()" in list module
Added by Franz Holzinger over 14 years ago.
Updated about 6 years ago.
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
Hey Franz.
Can you please send your patch to the core list?
Thanks!
- 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.
- 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
Issues 17961 and 22152 touch (and fix) the same thing - doing it slightly different, but the same thing. Please merge :-)
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF