[TYPO3] dynaflex Bug
Thomas Hempel
thomas at work.de
Thu Aug 10 15:11:29 CEST 2006
Hi Nikolas,
> according to the dynflex manual the following dummy needs
> to be created:
> 'default' => '<T3DataStructure>' .
> ' <meta>' .
> ' <langDisable>1</langDisable>' .
> ' </meta>' .
> ' <ROOT>' .
> ' <type>array</type>' .
> ' <el>' .
> ' <dummy></dummy>' .
> ' </el>' .
> ' </ROOT>' .
> '</T3DataStructure>'
>
> this will result in
> !Fatal error: Cannot use string offset as an array in
> class.t3lib_transferdata.php on line 616!
>
> because it makes
> 616: if (is_array($dsConf['TCEforms']['config']) &&
> is_array($dataValues[$key])) {
>
> fail on php5 since $dsConf is no array for the dummy element.
>
> workaround:
> <dummy type="array"></dummy>
I know that there are some problems with PHP5. Anyway, the dummy element
is only needed, if the result of the dynaflex config can be empty. TYPO3
has a problem with empty flexform structures.
So, if you are sure that, dynaflex will always create at least one
element, you can let the dummy out.
But thank you for our advice. I will change the manual to avoid this error.
Greets from Dietikon,
Thomas
--
typo3-unleashed.net
ICQ: 64235595
Skype: scriptme.de
More information about the TYPO3-english
mailing list