Project

General

Profile

Actions

Bug #89665

closed

PHP error when updating database reference index after removing an extension that provided a form definition

Added by Stephan Großberndt over 4 years ago. Updated over 4 years ago.

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

100%

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

Description

When updating the database reference index after removing an extension that provided a form definition that was referenced in a content element the following PHP error occurrs:

Call to a member function getUid() on null in sysext/form/Classes/Hooks/SoftReferenceParserHook.php

at TYPO3\CMS\Form\Hooks\SoftReferenceParserHook->findRef(
 'tt_content',
 'pi_flexform',
 42,
 'EXT:uninstalled_extension/Configuration/Form/contact.form.yaml',
 'formPersistenceIdentifier',
 '',
 'sDEF/lDEF/settings.persistenceIdentifier/vDEF/'
)

How to reproduce:

  1. Install an extension providing a form.yaml
  2. Add a form content element and reference that form.yaml
  3. Uninstall the extension
Now the following actions will reproduce the issue:
  • Edit the form content element, select another form definition and click "ok" in the popup
  • Update the database reference index

Files

extension.zip (3.1 KB) extension.zip Extension providing a contact form to test the issue Stephan Großberndt, 2019-11-13 10:23

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #84542: No return value check in SoftReferenceParserHookClosed2018-03-27

Actions
Actions #1

Updated by Gerrit Code Review over 4 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/+/62314

Actions #2

Updated by Susanne Moog over 4 years ago

  • Sprint Focus set to Remote Sprint
Actions #3

Updated by Gerrit Code Review over 4 years ago

Patch set 2 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/+/62314

Actions #4

Updated by Stephan Großberndt over 4 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Christian Eßl about 4 years ago

  • Related to Bug #84542: No return value check in SoftReferenceParserHook added
Actions

Also available in: Atom PDF