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

JoH asenau info at cybercraft.de
Fri Jan 14 21:35:33 CET 2011


Hi,

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.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16902_v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110114/76bf2d25/attachment.txt>


More information about the TYPO3-team-core mailing list