Bug #32463
New Form ext throws error on missing wraps
| Status: | New | Start date: | 2011-12-12 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Form Wizard | |||
| Target version: | - | |||
| TYPO3 Version: | 4.6 | Complexity: | ||
| PHP Version: | ||||
| Votes: | 3 (View) |
Description
When removing the wrapper elements in the following 2 segments in the layout section, a FE error is thrown:
layout {
elementWrap (
<element /> // removed the li-wrapper (or dt..)
)
containerWrap (
<elements /> // removed the ul-wrapper (or dl...)
)
}
#1: PHP Catchable Fatal Error: Argument 3 passed to tx_form_View_Form_Element_Abstract::replaceNodeWithFragment() must be an instance of DOMNode, null given, called in /[path]/typo3/sysext/form/Classes/View/Form/Element/Abstract.php on line 127 and defined in /[path]/typo3/sysext/form/Classes/View/Form/Element/Abstract.php line 286 (More information)
t3lib_error_Exception thrown in file
/[path]/t3lib/error/class.t3lib_error_errorhandler.php in line 105.
Related issues
| related to Core - Bug #31951: Own checkbox layout breaks HTML mail | Needs Feedback | 2011-11-20 |
History
Updated by Robert Wildling over 1 year ago
anyone who could look into this? Thanks!
Updated by Franz Koch about 1 year ago
- Target version set to 4.7.0-RC2
The issue is far greater. Your layout settings for rendering the form on your website are also used to render the HTML output - and this a) throws this error and b) once fixed borks completely your HTML mails. The "fix" for me was to XCLASS the mail postProcessor and feed the LayoutHandler (gladly a singleton here) with a fake "layout." array that overrides any custom layout changes.
Edit - I've set the target version because I think this needs to be fixed for 4.7. At least add my mentioned temporary fix/workaround until a nicer solution was found.
Updated by Christjan Grabowski about 1 year ago
Do you have piece of code or an extension for the xclass?
Did you xclass "tx_form_system_postprocessor_mail"?
Updated by Benjamin bunse about 1 year ago
Christjan Grabowski wrote:
Do you have piece of code or an extension for the xclass?
Did you xclass "tx_form_system_postprocessor_mail"?
I'd also like to see the workaround solution here. Could you show the xclass (extension?), the layout you defined in TypoScript and the "fake" layout you feed the LayoutHandler? I think that could help a lot here!
Updated by Steffen Ritter about 1 year ago
- Target version deleted (
4.7.0-RC2)