[TYPO3-english] Apache error from flexform wizard

Thomas Skierlo pubtsk1 at pix-pro.eu
Wed Nov 7 13:31:08 CET 2012


TYPO3 4.7.4, Apache/2.2.14 (Ubuntu 10.04LTS) mod_fcgid

Hello,

I'm encountering a strange problem with a (still very basic) flexform I 
need for Ext.:Gridelements. With the DS below I get an Apache Error on 
clicking the "link" icon in BE:

Request-URI Too Large

The requested URL's length exceeds the capacity limit for this
server.


My Apache is using default settings:

|LimitRequestFieldSize:
8190 bytes|

|LimitRequestLine:
8190 bytes|


Is this a general flexform problem? The request is built up of all 
fields together. Due to heavy multibyte encoding, the link for the 
wizard-icon of field "link" looks like:


<a onclick="this.blur();vHWin=window.open('browse_links.php?mode=wizard&act=page&P[fieldConfig][type]=input&P[fieldConfig][eval]=trim&P[fieldConfig][wizards][_PADDING]=2&P[fieldConfig][wizards][link][type]=popup&P[fieldConfig][wizards][link][title]=Link&P[fieldConfig][wizards][link][icon]=link_popup.gif&P[fieldConfig][wizards][link][script]=browse_links.php%3Fmode%3Dwizard%26act%3Dpage&P[fieldConfig][wizards][link][params][blindLinkOptions]=file%2Cspec%2Cemail%2Cfolder&P[fieldConfig][wizards][link][JSopenParams]=heig...content%5D%5B51%5D%5Bpi_flexform%5D%27%29%3B&P[fieldChangeFunc][alert]=&P[fieldChangeFuncHash]=bc24c02753a1fbddd4645f7ae337d91e6dcea222'+'&P[currentValue]='+TBE_EDITOR.rawurlencode(document.editform['data[tt_content][51][pi_flexform][data][sDEF][lDEF][link][vDEF]_hr'].value,200)+'&P[currentSelectedValues]='+TBE_EDITOR.curSelected('data[tt_content][51][pi_flexform][data][sDEF][lDEF][link][vDEF]_hr_list'),'popUpIDc2db7e383f','height=300,width=500,status=0,menubar=0,scrollbars=1');vHWin.focus();return
false;" href="#">

<img title="Link" alt="Link" src="sysext/t3skin/icons/gfx/link_popup.gif">

</a>


Each other field summs up and the total will easily exceed 8190 bytes. 
At least it does with the following datascructure:


<?xml version="1.0" encoding="utf-8"
standalone="yes" ?>

<T3DataStructure>

	<ROOT type="array">

		<type>array</type>

		<el type="array">

			<link type="array">

				<TCEforms type="array">

					<config type="array">

						<type>input</type>

						<eval>trim</eval>

						<wizards type="array">

							<_PADDING>2</_PADDING>

							<link type="array">

								<type>popup</type>

								<title>Link</title>

								<icon>link_popup.gif</icon>

								<script>browse_links.php?mode=wizard&amp;act=page</script>

								<params type="array">

									<blindLinkOptions>file,spec,email,folder</blindLinkOptions>

								</params>

								<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>

							</link>

						</wizards>

					</config>

					<label>Link</label>

				</TCEforms>

			</link>

			<mod_but_lab type="array">

				<TCEforms type="array">

					<label>Modal label</label>

					<config type="array">

						<type>input</type>

						<size>48</size>

						<eval>trim</eval>

					</config>

				</TCEforms>

			</mod_but_lab>

			<button_type type="array">

				<TCEforms>

					<label>Open modal button type</label>

					<config>

						<type>select</type>

						<items type="array">

							<numIndex index="0" type="array">

								<numIndex index="0">Default</numIndex>

								<numIndex index="1">0</numIndex>

							</numIndex>

							<numIndex index="1" type="array">

								<numIndex index="0">Primary</numIndex>

								<numIndex index="1">1</numIndex>

							</numIndex>

							<numIndex index="2" type="array">

								<numIndex index="0">Info</numIndex>

								<numIndex index="1">2</numIndex>

							</numIndex>

							<numIndex index="3" type="array">

								<numIndex index="0">Success</numIndex>

								<numIndex index="1">3</numIndex>

							</numIndex>

							<numIndex index="4" type="array">

								<numIndex index="0">Warning</numIndex>

								<numIndex index="1">4</numIndex>

							</numIndex>

							<numIndex index="5" type="array">

								<numIndex index="0">Danger</numIndex>

								<numIndex index="1">5</numIndex>

							</numIndex>

							<numIndex index="6" type="array">

								<numIndex index="0">Inverse</numIndex>

								<numIndex index="1">6</numIndex>

							</numIndex>

							<numIndex index="7" type="array">

								<numIndex index="0">Link (invisible button)</numIndex>

								<numIndex index="1">7</numIndex>

							</numIndex>

						</items>

						<maxitems>1</maxitems>

						<size>1</size>

					</config>

				</TCEforms>

			</button_type>

			<button_type2 type="array">

				<TCEforms>

					<label>Open modal button type2</label>

					<config>

						<type>select</type>

						<items type="array">

							<numIndex index="0" type="array">

								<numIndex index="0">Default</numIndex>

								<numIndex index="1">0</numIndex>

							</numIndex>

							<numIndex index="1" type="array">

								<numIndex index="0">Primary</numIndex>

								<numIndex index="1">1</numIndex>

							</numIndex>

							<numIndex index="2" type="array">

								<numIndex index="0">Small</numIndex>

								<numIndex index="1">2</numIndex>

							</numIndex>

							<numIndex index="3" type="array">

								<numIndex index="0">Tiny</numIndex>

								<numIndex index="1">3</numIndex>

							</numIndex>

						</items>

						<maxitems>1</maxitems>

						<size>1</size>

					</config>

				</TCEforms>

			</button_type2>

		</el>

	</ROOT>

</T3DataStructure>


If I remove one item from any of the select fields, "link" wizard icon 
will respond like expected. Without any shortening I'll get the Apache 
error.

Any ideas how to get arround this problem without increasing the 
(reasonable) default Apache settings? With name based virtual hosts this 
setting will effect all vhosts, since it has to be placed into the 
Default host.

Regards,

Thomas



More information about the TYPO3-english mailing list