Bug #31572

TypoScript FORM-Object produces Exception

Added by Andreas Bouche over 9 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-11-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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.


Related issues

Related to TYPO3 Core - Bug #50274: Problem with Form extension and standard searchClosed2013-07-22

Actions
Follows TYPO3 Core - Bug #31120: Add default csc-mailform DIV wrapClosed2011-10-19

Actions
#1

Updated by Oliver Hader over 9 years ago

  • Assignee deleted (Oliver Hader)

Please don't assign issues to people directly

#2

Updated by Oliver Hader over 9 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.

#3

Updated by Mr. Hudson over 9 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

#4

Updated by Andreas Bouche over 9 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
    }
}

#5

Updated by Frederic Gaus over 9 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
        }
    }
}
#6

Updated by Mr. Hudson over 9 years ago

Patch set 2 of change Ie67484fd014620ea229a7bee8bfebd063a3b57ae has been pushed to the review server.
It is available at http://review.typo3.org/6537

#7

Updated by Steffen Gebert over 9 years ago

  • Target version set to 4.6.1
#8

Updated by Xavier Perseguers over 9 years ago

  • Target version changed from 4.6.1 to 4.6.2
#9

Updated by Gerrit Code Review over 9 years ago

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

#10

Updated by Xavier Perseguers over 9 years ago

  • Target version deleted (4.6.2)
#11

Updated by Joris Willems almost 8 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.

#12

Updated by Gerrit Code Review almost 8 years ago

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

#13

Updated by Gerrit Code Review almost 8 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

#14

Updated by Gerrit Code Review almost 8 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

#15

Updated by Gerrit Code Review almost 8 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

#16

Updated by Andreas Bouche almost 8 years ago

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

Updated by Benni Mack almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF