Bug #66776
closedException Call to a member function getValue() on a non-object when tx_form is submitted with confirmation = 1
0%
Description
If confirmation is set to 1 in a tx_form submitting the form is failing on the confirmation-page with this exception:
PHP Fatal error: Call to a member function getValue() on a non-object in /srv/www/vhosts/typo3_src-6.2.12/typo3/sysext/form/Classes/Domain/Model/Attribute/AttributesAttribute.php on line 141
The configuration of the form is:
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail = tobias.schaefer@ptb.de
senderEmail = tobias.schaefer@ptb.de
subject = test
}
}
10 = TEXTLINE
10 {
name = test
label {
value = Test
}
}
20 = SUBMIT
20 {
name = 3
value = Submit form
}
In the installtool the Configuration presets -> Development / Production settings needs to be set to Production to get the confirmation page.
Otherwise this Exception is thrown:
PHP Warning: Invalid argument supplied for foreach() in /srv/www/vhosts/typo3_src-6.2.12/typo3/sysext/form/Classes/Utility/ValidatorUtility.php line 115
(see https://forge.typo3.org/issues/58878)