[TYPO3-core] RFC #16902 Bug: Fatal error in tslib_content_text (was: No FE output)

Ernesto Baschny [cron IT] ernst at cron-it.de
Sat Jan 22 02:55:27 CET 2011


JoH asenau schrieb am 14.01.2011 21:35:

> This is an SVN patch request
> 
> Type: Bugfix
> 
> Bugtracker reference: http://bugs.typo3.org/view.php?id=16028
> 
> Branches: trunk
> 
> Problem:
> 
> Fatal error: Cannot unset string offsets in
> /home/typo3_src-4.5.0beta3/typo3/sysext/cms/tslib/content/class.tslib_content_text.php
> on line 46
> 
> Although this seems to be a bug in ttnewsgenericmarkers, since it does
> render each key twice
> 
> foreach($conf as $key=>$value) {
>   $key2 = trim($key, '.');
>   $markerArray['###GENERIC_'.strtoupper($key2).'###'] =
> $pObj->cObj->cObjGetSingle($conf[$key2] , $conf[$key] );
> }
> 
> This revealed a problem with the tslib_content methods, when the $conf
> Parameter is not handed over as an Array but i.e. as a string.
> 
> Solution:
> Since this might happen with other elements than TEXT as well, we
> introduced type casting to each of the new classes.

+1 by reading v2. Would be cool if we have more reviews by testing on
this before RC1 later today. Thanks!!!

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list