Bug #73076

Publishing of changed sys_file_metadata fails because of missing config array for with and height fields

Added by Andreas Krämer over 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Start date:
2016-02-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello, I get the following error trying to publish changed metadata from any file:
PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Version\Hook\DataHandlerHook::version_swap_processFields() must be of the type array, null given, called in /typo3/sysext/version/Classes/Hook/DataHandlerHook.php on line 905 and defined in /typo3/sysext/version/Classes/Hook/DataHandlerHook.php line 1048

I looked up the code and for all TCA-fields a config array is expected:
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/version/Classes/Hook/DataHandlerHook.php#L907

But there is no config for width and height in sys_file_metadata (without installing the filemetadata plugin):
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php#L126

I think the issue at least exists since version 6.2

Steps to reproduce:
  • Change metadata of arbitrary file with a simple editor on draft workspace, e.g. the title
  • Go to the workspace module and send the changes to the next stage "ready to publish"
  • With an admin, go to the workspace module and try to publish these changes

Related issues

Related to TYPO3 Core - Bug #83152: TCA migration should check that all TCA columns have a config sectionClosedBenni Mack2017-11-29

Actions
Related to TYPO3 Core - Bug #83140: Images not shown when metadata is translatedClosed2017-11-28

Actions
Related to TYPO3 Core - Bug #83247: Translating sys_file_metadata results in width 0 and height 0Rejected2017-12-07

Actions
Has duplicate TYPO3 Core - Bug #77619: Catchable Fatal Error during publishing processClosed2016-08-24

Actions

Also available in: Atom PDF