Project

General

Profile

Actions

Bug #31572

closed

TypoScript FORM-Object produces Exception

Added by Andreas Bouche about 13 years ago. Updated about 6 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 2 (0 open2 closed)

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
Actions #1

Updated by Oliver Hader about 13 years ago

  • Assignee deleted (Oliver Hader)

Please don't assign issues to people directly

Actions #2

Updated by Oliver Hader about 13 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.

Actions #3

Updated by Mr. Hudson about 13 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

Actions #4

Updated by Andreas Bouche about 13 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
    }
}

Actions #5

Updated by Frederic Gaus about 13 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
        }
    }
}
Actions #6

Updated by Mr. Hudson about 13 years ago

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

Actions #7

Updated by Steffen Gebert about 13 years ago

  • Target version set to 4.6.1
Actions #8

Updated by Xavier Perseguers almost 13 years ago

  • Target version changed from 4.6.1 to 4.6.2
Actions #9

Updated by Gerrit Code Review almost 13 years ago

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

Actions #10

Updated by Xavier Perseguers almost 13 years ago

  • Target version deleted (4.6.2)
Actions #11

Updated by Joris Willems about 11 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.

Actions #12

Updated by Gerrit Code Review about 11 years ago

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

Actions #13

Updated by Gerrit Code Review about 11 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

Actions #14

Updated by Gerrit Code Review about 11 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

Actions #15

Updated by Gerrit Code Review about 11 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

Actions #16

Updated by Andreas Bouche about 11 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF