Bug #31572
closed
TypoScript FORM-Object produces Exception
Added by Andreas Bouche about 13 years ago.
Updated about 6 years ago.
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.
- Assignee deleted (
Oliver Hader)
Please don't assign issues to people directly
Can you provide your TypoScript setup (that one of the bodytext in the accordant form content element). Thus, it's easier to reproduce.
- 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
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
}
}
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
}
}
}
Patch set 2 of change Ie67484fd014620ea229a7bee8bfebd063a3b57ae has been pushed to the review server.
It is available at http://review.typo3.org/6537
- Target version set to 4.6.1
- Target version changed from 4.6.1 to 4.6.2
- Target version deleted (
4.6.2)
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.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF