Project

General

Profile

Actions

Bug #100786

closed

Using userFunc for rendering form creates a PHP warning

Added by Joey Bouten over 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2023-05-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Stabilization Sprint

Description

When using

lib.planAppointmentForm = USER
lib.planAppointmentForm {
  userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  extensionName = Form
  pluginName = Formframework
  vendorName = TYPO3\CMS
  actionName = render

  settings {
    persistenceIdentifier = EXT:site_template/Configuration/Forms/myform.form.yaml
  }
  stdWrap.wrap = <div id="c-form" class="c-form__plan-appointment">|</div>
}

The following warning occurs:

PHP Warning: Trying to access array offset on value of type null in /var/www/html/Web/typo3/sysext/form/Classes/Controller/FormFrontendController.php line 75

When using the userFunc, data can be empty and

$formDefinition['identifier'] .= '-' . $this->configurationManager->getContentObject()->data['uid'];

fails.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #101201: Clean up ContenObjectRenderer usageClosed2023-06-29

Actions
Actions #1

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Accepted
  • Target version changed from 12 LTS to Candidate for patchlevel
Actions #2

Updated by Benni Mack over 1 year ago

  • Sprint Focus set to Stabilization Sprint
Actions #4

Updated by Georg Ringer 4 months ago

  • Related to Bug #101201: Clean up ContenObjectRenderer usage added
Actions

Also available in: Atom PDF