Actions
Bug #102041
closedfix error message: Invalid TCA internal_type set to folder
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2023-09-26
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If an older version of an extension uses a TCA "group" of a type different to "db" and "folder", then an Exception is thrown with a wrong error message:
Invalid TCA internal_type of field "images" in table tt_content: Must not be set, or set to "folder".
The correct error message should have been like this:
Invalid TCA internal_type of field "images" in table tt_content: Must not be set, or set to "file".
See the file 'TYPO3/typo3_src-11.5.31/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php' line 151.
throw new \UnexpectedValueException(
'Invalid TCA internal_type of field "' . $fieldName . '" in table ' . $result['tableName']
. ': Must not be set, or set to "folder".',
1438780511
);
}
==>
. ': Must not be set, or set to "' . $internalType . '".',
see also deprecation notice:
Actions