Bug #31572
closedTypoScript FORM-Object produces Exception
100%
Description
After the fix of issue #31120 tx_form_Controller_Form throws an Exception when rendered via TypoScript:
Catchable Fatal Error: Argument 2 passed to tx_form_Controller_Form::cObjGetSingleExt() must be an array, null given, called in [..]typo3/sysext/cms/tslib/class.tslib_content.php on line 594 and defined in [...]typo3/sysext/form/Classes/Controller/Form.php line 102
When invoked via TS, the Variable $mergedTypoScript is NULL and thus the internal Rendering of COBJ_ARRAY fails (Form.php, line 129)
My solution for this was to simply use $typoScript instead of $mergedTyposcript when $mergedTyposcript is NULL. A Patchset with my fix will be submitted shortly.
Updated by Oliver Hader about 13 years ago
- Assignee deleted (
Oliver Hader)
Please don't assign issues to people directly
Updated by Oliver Hader about 13 years ago
Can you provide your TypoScript setup (that one of the bodytext in the accordant form content element). Thus, it's easier to reproduce.
Updated by Mr. Hudson about 13 years ago
- Status changed from New to Under Review
Patch set 1 of change Ie67484fd014620ea229a7bee8bfebd063a3b57ae has been pushed to the review server.
It is available at http://review.typo3.org/6537
Updated by Andreas Bouche about 13 years ago
I used the following TypoScript in the Form-Element and created a FORM-Object directly in TypoScript with the same setup:
enctype = multipart/form-data method = post prefix = tx_form confirmation = 1 postProcessor { 1 = mail 1 { recipientEmail = senderEmail = } } 10 = TEXTLINE 10 { name = Test label { value = Testlabel } }
Updated by Frederic Gaus about 13 years ago
This error is easy to reproduce. Just add the following typoscript to a TYPO3 4.6.0 instance.
page.100 = FORM page.100 { enctype = multipart/form-data method = post prefix = tx_form confirmation = 1 postProcessor { 1 = mail 1 { recipientEmail = senderEmail = } } 10 = TEXTLINE 10 { name = Test label { value = Testlabel } } }
Updated by Mr. Hudson about 13 years ago
Patch set 2 of change Ie67484fd014620ea229a7bee8bfebd063a3b57ae has been pushed to the review server.
It is available at http://review.typo3.org/6537
Updated by Xavier Perseguers almost 13 years ago
- Target version changed from 4.6.1 to 4.6.2
Updated by Gerrit Code Review almost 13 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6537
Updated by Xavier Perseguers almost 13 years ago
- Target version deleted (
4.6.2)
Updated by Joris Willems about 11 years ago
I am getting this error on typo3 6.1.4 when viewing a page with a searchform. When uninstalling the sysext form the page and searchform is fine.
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/6537
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23717
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23718
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/23719
Updated by Andreas Bouche about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dd84d0b3b947656ee84b56e9a6413007ad80e39f.