Actions
Bug #99637
closedstr_starts_with(): Argument #1 ($haystack) must be of type string, int given
Start date:
2023-01-19
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Currently the Frontend crashes, when you have the AdminPanel enabled and try to insert an _INT Content-Object.
Steps to reproduce:
- enable admin panel
- print out current date uncached (*1)
- reload frontend
*1
TypoScript: lib.currentDate = COA_INT lib.currentDate { 10 = TEXT 10.stdWrap.data = date:U 10.stdWrap.strftime = %H:%M:%S } Fluid: <f:cObject typoscriptObjectPath="lib.currentDate" />
Attached a Screenshot from where the exception comes.
"10" as key is not a valid yes in XLIFF-File und does not need to get translated at this point.
Solution:
Cast the assigned id (in this case an integer) to a string in `TranslateViewHelper` before line 147: `$id = (string)$id;`
Files
Actions