[TYPO3-core] RFC #11027: Warning is issued when creating first template
Xavier Perseguers
typo3 at perseguers.ch
Mon May 4 10:11:04 CEST 2009
Warning is issued when creating first template
Hi,
This is a SVN patch.
Type: Bugfix
Branches: trunk
BT reference: http://bugs.typo3.org/view.php?id=11027
Problem:
When creating the very first template a warning is issued (at least when
Oracle is used):
Warning: Invalid argument supplied for foreach() in
/var/www/typo3_src-trunk/t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php
on line 170
Example how to reproduce:
- Have a blank website
- Create a page under root
- Click Web > Template
- Click button "Create template for a new site"
Solution:
Test that the returned value from
$GLOBALS['TYPO3_DB']->exec_SELECTgetRows is an array before trying to
iterate over it.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 11027.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090504/01925fe0/attachment.txt
More information about the TYPO3-team-core
mailing list