Bug #77619
closedCatchable Fatal Error during publishing process
100%
Description
When I try to publish a complete workspace, I got the following error:
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_src/typo3/sysext/version/Classes/Hook/DataHandlerHook.php on line 907 and defined in .../typo3_src/typo3/sysext/version/Classes/Hook/DataHandlerHook.php line 1050
This happens because the method TYPO3\CMS\Version\Hook\DataHandlerHook::version_swap_processFields gets called with null instead of an array, if a field in TCA does not have a config-entry.
The core-configuration for sys_file_metadata contains a configuration for width, which does not contain a config-entry.
Relevant code positions:
https://github.com/TYPO3/TYPO3.CMS/blob/e5c510f1069b751053e0056b52ff3a93397ba91f/typo3/sysext/version/Classes/Hook/DataHandlerHook.php#L945
https://github.com/TYPO3/TYPO3.CMS/blob/e5c510f1069b751053e0056b52ff3a93397ba91f/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php#L121
The fix would be to check if $fieldConf['config'] exists and is an array in the version_swap-method before calling the version_swap_processFields-method.
Updated by Gerrit Code Review over 8 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/49614
Updated by Gerrit Code Review about 7 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/49614
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49614
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54854
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54854
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54855
Updated by Benni Mack about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 94418b6ba8ef332e8cba0e367f966bfe835116c1.