Project

General

Profile

Actions

Bug #98433

closed

Improve error message when the FlexForm file is not found

Added by Lina Wolf over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend API
Target version:
Start date:
2022-09-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When I am using a FlexForm File that does not exist, i.e.

```
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'tea_tea',
'FILE:EXT:nonexistanextension/Configuration/FlexForms/Plugin.xml'
);
```

The following error is thrown:

```
Data structure file could not be resolved to an existing file
```

It does not display the name of the file not found but instead tries display the result of GeneralUtility::getFileAbsFileName, which is by definition an empty string if the file was not found

Actions

Also available in: Atom PDF