Project

General

Profile

Actions

Bug #66776

closed

Exception Call to a member function getValue() on a non-object when tx_form is submitted with confirmation = 1

Added by Tobias Schaefer almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2015-05-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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 =
senderEmail =
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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #60995: tx_form PostProcessor - wrong layout handlingClosed2014-08-15

Actions
Actions

Also available in: Atom PDF