Project

General

Profile

Actions

Bug #94203

closed

Exception when setting extbase variables in FLUIDTEMPLATE content object

Added by Oliver Bartsch almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Category:
Content Rendering
Target version:
-
Start date:
2021-05-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Using extbase variables in a FLUIDTEMPLATE content object leads to following exception:

ArgumentCountError
Too few arguments to function TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder::build(), 0 passed in /var/www/html/typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php on line 284 and exactly 1 expected

Example setup to test:

Typoscript

page = PAGE
page {
  typeNum = 0
  10 = COA_INT
  10 {
    10 = FLUIDTEMPLATE
    10 {
      file = fileadmin/templates/form.html
      settings {
        persistenceIdentifier = fileadmin/form_definitions/contact.form.yaml
      }
      extbase.pluginName = Formframework
      extbase.controllerExtensionName = Form
      extbase.controllerName = FormFrontend
      extbase.controllerActionName = perform
    }
  }
}

fileadmin/templates/form.html

<formvh:render persistenceIdentifier="{settings.persistenceIdentifier}" />

fileadmin/form_definitions/contact.form.yaml

renderingOptions:
  submitButtonLabel: Submit
type: Form
identifier: something
label: something
prototypeName: standard
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        defaultValue: ''
        type: Telephone
        identifier: telephone-1
        label: 'Telephone number'


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #93853: Use native PSR-7 Request in Extbase Request buildingClosedBenni Mack2021-04-02

Actions
Actions #1

Updated by Oliver Bartsch almost 3 years ago

  • Related to Task #93853: Use native PSR-7 Request in Extbase Request building added
Actions #2

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69293

Actions #3

Updated by Oliver Bartsch almost 3 years ago

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

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF