Project

General

Profile

Actions

Bug #17467

closed

Fatal error with flexform fields in a database.

Added by Alois Baule over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-07-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using flexforms the following error occured:

[12-Jul-2007 14:38:57] PHP Fatal error: Cannot use string offset as an array in /if_data/htdocs/if_root/typo3_src/t3lib/class.t3lib_tcemain.php on line 2136

The Flexform DS is:


<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<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_opener type="array">
<type>array</type>
<tx_templavoila type="array">
<title>Opener</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_headline type="array">
<tx_templavoila type="array">
<title>Überschrift 1</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Überschrift 1</label>
</TCEforms>
</field_headline>
<field_headline2 type="array">
<tx_templavoila type="array">
<title>Überschrift 2</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Überschrift 2</label>
</TCEforms>
</field_headline2>
<field_image type="array">
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMG_RESOURCE
10.stdWrap.wrap = background: url(|) no-repeat; background-position: 0 30px;
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,png,jpg,jpeg</allowed>
<max_size>1000</max_size>
<uploadfolder>uploads/tx_templavoila</uploadfolder>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
<label>Bild</label>
</TCEforms>
<type>attr</type>
</field_image>
<field_text type="array">
<tx_templavoila type="array">
<title>Inhalt</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>rte</eType>
<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE
]]>
</TypoScript>
<proc type="array">
<HSC type="integer">0</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>text</type>
<cols>48</cols>
<rows>5</rows>
<softref>typolink_tag,images,email[subst],url</softref>
</config>
<defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
<label>Inhalt</label>
</TCEforms>
</field_text>
</el>
</field_opener>
<field_left type="array">
<type>array</type>
<tx_templavoila type="array">
<title>Linke Spalte</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_headline type="array">
<tx_templavoila type="array">
<title>Überschrift</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Überschrift</label>
</TCEforms>
</field_headline>
<field_image type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMG_RESOURCE
10.stdWrap.wrap = background: url(|) no-repeat;
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,png,jpg,jpeg</allowed>
<max_size>1000</max_size>
<uploadfolder>uploads/tx_templavoila</uploadfolder>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
<label>Bild</label>
</TCEforms>
</field_image>
<field_linklist type="array">
<type>array</type>
<section>1</section>
<tx_templavoila type="array">
<title>Linkliste</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_link type="array">
<type>array</type>
<tx_templavoila type="array">
<title>einzelner Link</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_linktext type="array">
<tx_templavoila type="array">
<title>Linktext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Linktext</label>
</TCEforms>
</field_linktext>
<field_linkurl type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>15</size>
<max>256</max>
<checkbox></checkbox>
<eval>trim</eval>
<wizards type="array">
<_PADDING type="integer">2</_PADDING>
<link type="array">
<type>popup</type>
<title>Link</title>
<icon>link_popup.gif</icon>
<script>browse_links.php?mode=wizard</script>
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>Link</label>
</TCEforms>
</field_linkurl>
<field_text type="array">
<tx_templavoila type="array">
<title>Zusatztext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE
]]>
</TypoScript>
<proc type="array">
<HSC type="integer">0</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
<label>Zusatztext</label>
</TCEforms>
</field_text>
</el>
</field_link>
</el>
</field_linklist>
</el>
</field_left>
<field_center type="array">
<type>array</type>
<tx_templavoila type="array">
<title>Mittlere Spalte</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_headline type="array">
<tx_templavoila type="array">
<title>Überschrift</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Überschrift</label>
</TCEforms>
</field_headline>
<field_image type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMG_RESOURCE
10.stdWrap.wrap = background: url(|) no-repeat;
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,png,jpg,jpeg</allowed>
<max_size>1000</max_size>
<uploadfolder>uploads/tx_templavoila</uploadfolder>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
<label>Bild</label>
</TCEforms>
</field_image>
<field_linklist type="array">
<type>array</type>
<section>1</section>
<tx_templavoila type="array">
<title>Linkliste</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_link type="array">
<type>array</type>
<tx_templavoila type="array">
<title>einzelner Link</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_linktext type="array">
<tx_templavoila type="array">
<title>Linktext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Linktext</label>
</TCEforms>
</field_linktext>
<field_linkurl type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>15</size>
<max>256</max>
<checkbox></checkbox>
<eval>trim</eval>
<wizards type="array">
<_PADDING type="integer">2</_PADDING>
<link type="array">
<type>popup</type>
<title>Link</title>
<icon>link_popup.gif</icon>
<script>browse_links.php?mode=wizard</script>
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>Link</label>
</TCEforms>
</field_linkurl>
<field_text type="array">
<tx_templavoila type="array">
<title>Zusatztext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE
]]>
</TypoScript>
<proc type="array">
<HSC type="integer">0</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
<label>Zusatztext</label>
</TCEforms>
</field_text>
</el>
</field_link>
</el>
</field_linklist>
</el>
</field_center>
<field_right type="array">
<type>array</type>
<tx_templavoila type="array">
<title>Rechte Spalte</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_headline type="array">
<tx_templavoila type="array">
<title>Überschrift</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Überschrift</label>
</TCEforms>
</field_headline>
<field_image type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMG_RESOURCE
10.stdWrap.wrap = background: url(|) no-repeat;background-position:1px 0px;
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,png,jpg,jpeg</allowed>
<max_size>1000</max_size>
<uploadfolder>uploads/tx_templavoila</uploadfolder>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
<label>Bild</label>
</TCEforms>
</field_image>
<field_linklist type="array">
<type>array</type>
<section>1</section>
<tx_templavoila type="array">
<title>Linkliste</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_link type="array">
<type>array</type>
<tx_templavoila type="array">
<title>einzelner Link</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_linktext type="array">
<tx_templavoila type="array">
<title>Linktext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Linktext</label>
</TCEforms>
</field_linktext>
<field_linkurl type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>15</size>
<max>256</max>
<checkbox></checkbox>
<eval>trim</eval>
<wizards type="array">
<_PADDING type="integer">2</_PADDING>
<link type="array">
<type>popup</type>
<title>Link</title>
<icon>link_popup.gif</icon>
<script>browse_links.php?mode=wizard</script>
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>Link</label>
</TCEforms>
</field_linkurl>
<field_text type="array">
<tx_templavoila type="array">
<title>Zusatztext</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE
]]>
</TypoScript>
<proc type="array">
<HSC type="integer">0</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
<label>Zusatztext</label>
</TCEforms>
</field_text>
</el>
</field_link>
</el>
</field_linklist>
</el>
</field_right>
</el>
</ROOT>
</T3DataStructure>

(issue imported from #M5955)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16179: Fatal error with flexform fields in a database.ClosedMichael Stucki2006-05-24

Actions
Actions

Also available in: Atom PDF