[TYPO3-templavoila] Migration from TV 0.4.0 to TV 1.0.1

Philipp Steinmetzger philipp.steinmetzger at bayern.pfadfinden.de
Fri Apr 21 13:26:51 CEST 2006


Hi!

I think the following lines typo3 produces, trying to edit the 
pageheader data, are also symptoms of this xml problem.

> Warning: array_unique(): The argument should be an array in /typo3_src-4.0/t3lib/class.t3lib_tceforms.php on line 2075
> Warning: in_array(): Wrong datatype for second argument in /typo3_src-4.0/t3lib/class.t3lib_tceforms.php on line 2086
> Fatal error: Only variables can be passed by reference in /typo3_src-4.0/t3lib/class.t3lib_tceforms.php on line 2087

Sorry, but I don't understand yet how you fixed this problem, because in 
  my xml-code there is no meta-tag and core changes (like #3196) don't work.

> <T3DataStructure>
>     <ROOT type="array">
>         <tx_templavoila type="array">
>             <title>ROOT</title>
>             <description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
>         </tx_templavoila>
>         <type>array</type>
>         <el type="array">
>             <field_mainmenulinks type="array">
>                 <tx_templavoila type="array">
>                     <title>Hauptmenü 1. Ebene links</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Hauptmenü 1. Ebene links</numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.MAINMENU1</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_mainmenulinks>
>             <field_mainmenucenter type="array">
>                 <tx_templavoila type="array">
>                     <title>Hauptmenü 2. Ebene mitte</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Hauptmenü 2. Ebene mitte</numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.MAINMENU2</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_mainmenucenter>
>             <field_mainmenuright type="array">
>                 <tx_templavoila type="array">
>                     <title>Hauptmenü 3. Ebene rechts</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Hauptmenü 3. Ebene rechts</numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.MAINMENU3</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_mainmenuright>
>             <field_content type="array">
>                 <tx_templavoila type="array">
>                     <title>Hauptinhaltsbereich</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Content main</numIndex>
>                     </sample_data>
>                     <eType>ce</eType>
>                     <TypoScript>
> 	10= RECORDS
> 	10.source.current=1
> 	10.tables = tt_content
> 							</TypoScript>
>                 </tx_templavoila>
>                 <TCEforms type="array">
>                     <label>Hauptinhaltsbereich</label>
>                     <config type="array">
>                         <type>group</type>
>                         <internal_type>db</internal_type>
>                         <allowed>tt_content</allowed>
>                         <size>5</size>
>                         <maxitems>200</maxitems>
>                         <minitems>0</minitems>
>                         <multiple>1</multiple>
>                         <show_thumbs>1</show_thumbs>
>                     </config>
>                 </TCEforms>
>             </field_content>
>             <field_teasertop type="array">
>                 <tx_templavoila type="array">
>                     <title>Einleitender Text</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Teaser top</numIndex>
>                     </sample_data>
>                     <eType>ce</eType>
>                     <TypoScript>
> 	10= RECORDS
> 	10.source.current=1
> 	10.tables = tt_content
> 							</TypoScript>
>                 </tx_templavoila>
>                 <TCEforms type="array">
>                     <config type="array">
>                         <type>group</type>
>                         <internal_type>db</internal_type>
>                         <allowed>tt_content</allowed>
>                         <size>5</size>
>                         <maxitems>200</maxitems>
>                         <minitems>0</minitems>
>                         <multiple>1</multiple>
>                         <show_thumbs>1</show_thumbs>
>                     </config>
>                     <label>Einleitender Text</label>
>                 </TCEforms>
>             </field_teasertop>
>             <field_rss type="array">
>                 <type>attr</type>
>                 <tx_templavoila type="array">
>                     <title>RSS</title>
>                     <sample_data type="array">
>                         <numIndex index="0"></numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.RSS</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_rss>
>             <field_suche type="array">
>                 <type>attr</type>
>                 <tx_templavoila type="array">
>                     <title>Suche</title>
>                     <sample_data type="array">
>                         <numIndex index="0"></numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.SUCHE</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_suche>
>             <field_bottommenu type="array">
>                 <tx_templavoila type="array">
>                     <title>Menü Fußzeile</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Menü Fußzeile</numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.BOTTOMMENU</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_bottommenu>
>             <field_linkmenu type="array">
>                 <tx_templavoila type="array">
>                     <title>Menü mit Links</title>
>                     <sample_data type="array">
>                         <numIndex index="0">Menü mit Links</numIndex>
>                     </sample_data>
>                     <eType>TypoScriptObject</eType>
>                     <TypoScriptObjPath>lib.linkmenu</TypoScriptObjPath>
>                 </tx_templavoila>
>             </field_linkmenu>
>         </el>
>     </ROOT>
> </T3DataStructure>


Thank's a lot!
bye
philipp


Olivier Schopfer schrieb:
> Ok, I've added an item to the bug tracker. (I found out how to do 
> that... was easy in fact).
> 
> Olivier
> 
> 
> Dmitry Dulepov wrote:
>> Hi!
>>
>> Olivier Schopfer wrote:
>>
>>> I found out that the same patch should not only be applied on
>>> class.t3lib_tceforms.html but also on class.t3lib_flexformtools.php
>>
>>
>> Yes, I fixed it locally too but did not yet ask in core list to patch
>> t3lib_flexformtools. At least two members of core team should agree to
>> this change before it can be commited to CVS. Since this warning can be
>> easily reproduced by core people, it is hard to get approval for such
>> patches :(
>>
>> Dmitry.



More information about the TYPO3-project-templavoila mailing list