Bug #28606

Issue with Select Fields

Added by Marcus Schwemer almost 2 years ago. Updated 3 months ago.

Status:Resolved Start date:2011-07-31
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:Form Wizard
Target version:-
TYPO3 Version:4.6 Complexity:
PHP Version:5.3
Votes: 1 (View)

Description

Hi,

if a form contains select fields, I get an php error in the frontend.

PHP Fatal error: Call to a member function saveXML() on a non-object in [...]/typo3/sysext/form/Classes/View/Mail/Html/Html.php on line 113

or

PHP Fatal error: Call to a member function saveXML() on a non-object in [...]/typo3/sysext/form/Classes/View/Confirmation/Confirmation.php on line 105

How to reproduce:
- Create a new form
- Add a select field with some options (wizard default are sufficient)
- Add a Submit Button
- Go to the Frontend and send the form
- Result is a blank page

I can only recover from this error by deleting the fe_typo_user - cookie manually. Otherwise I get everytime the confirmation page.

Kind regards,
Marcus

Associated revisions

Revision 1e7bac22
Added by Alexander Stehlik 4 months ago

[BUGFIX] add check for empty form values in FORM View

If a FORM is submitted without any value a Fatal Error is thrown in
typo3/sysext/form/Classes/View/Confirmation/Confirmation.php on line
101. The patch adds a check for that case.

Fixes: #28606
Releases: 6.1, 6.0, 4.7, 4.6

Change-Id: I77cd57f0d56e9bdcf9517683ea21c3dc9ec1bc45
Reviewed-on: https://review.typo3.org/11361
Reviewed-by: Alexander Stehlik
Tested-by: Alexander Stehlik
Reviewed-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

Revision b162438e
Added by Alexander Stehlik 4 months ago

[BUGFIX] add check for empty form values in FORM View

If a FORM is submitted without any value a Fatal Error is thrown in
typo3/sysext/form/Classes/View/Confirmation/Confirmation.php on line
101. The patch adds a check for that case.

Fixes: #28606
Releases: 6.1, 6.0, 4.7, 4.6

Change-Id: I77cd57f0d56e9bdcf9517683ea21c3dc9ec1bc45
Reviewed-on: https://review.typo3.org/17922
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

Revision c81aa5f1
Added by Christian Kuhn 4 months ago

[BUGFIX] add check for empty form values in FORM View

If a FORM is submitted without any value a Fatal Error is thrown in
typo3/sysext/form/Classes/View/Confirmation/Confirmation.php on line
101. The patch adds a check for that case.

Change-Id: I77cd57f0d56e9bdcf9517683ea21c3dc9ec1bc45
Fixes: #28606
Releases: 6.1, 6.0, 4.7, 4.6
Reviewed-on: https://review.typo3.org/17923
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

Revision 928f0164
Added by Christian Kuhn 4 months ago

[BUGFIX] add check for empty form values in FORM View

If a FORM is submitted without any value a Fatal Error is thrown in
typo3/sysext/form/Classes/View/Confirmation/Confirmation.php on line
101. The patch adds a check for that case.

Change-Id: I77cd57f0d56e9bdcf9517683ea21c3dc9ec1bc45
Fixes: #28606
Releases: 6.1, 6.0, 4.7, 4.6
Reviewed-on: https://review.typo3.org/17924
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

History

Updated by Oliver Hader over 1 year ago

  • Tags set to FormWizard

Updated by Oliver Hader over 1 year ago

  • Project changed from Form to Core

Updated by Oliver Hader over 1 year ago

  • Category set to Form Wizard

Updated by Oliver Hader over 1 year ago

  • Status changed from New to Needs Feedback
  • PHP Version set to 5.3
  • TYPO3 Version set to 4.6

I could not reproduce this anymore. Can you please double-check that again with TYPO3 4.6.0 RC1?

Updated by Benedict about 1 year ago

I reproduced that Bug, if there is no validation and no data is send, this error occurs.

Updated by Manuel about 1 year ago

In Typo3 4.6.5 I have the same error.

Updated by Gerrit Code Review about 1 year ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11361

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11361

Updated by Gerrit Code Review 12 months ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11361

Updated by Sebastian Schawohl 11 months ago

With TYPO3 4.6.8 I had similar issues.

My field name has space in it, and when I removed all the spaces, the form works perfectly. Maybe is it related to #35015?

Updated by Gerrit Code Review 4 months ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/11361

Updated by Gerrit Code Review 4 months ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/17922

Updated by Gerrit Code Review 4 months ago

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/17923

Updated by Gerrit Code Review 4 months ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at https://review.typo3.org/17924

Updated by Christian Kuhn 4 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Updated by Gerrit Code Review 3 months ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master_new has been pushed to the review server.
It is available at https://review.typo3.org/18587

Updated by Christian Kuhn 3 months ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF