[TYPO3-core] RFC #11027: Warning is issued when creating first template

Susanne Moog typo3 at susannemoog.de
Mon May 18 09:42:53 CEST 2009


Xavier Perseguers schrieb:
> 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.
> 
> 

The warning isn't issued in MySql. I just tested the patch (on MySql)
and as everything still works as before and the patch looks reasonable:

+1 by reading and testing.

Regards,

Susanne

-- 
Susanne Moog
NEUSTA GmbH - www.neusta.de


More information about the TYPO3-team-core mailing list