Actions
Bug #62616
closedCatchable fatal error (null given) in FilesContentObject
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2014-11-01
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.6
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
There seems to be a missing null check in FilesContentObject.php.
I use the cal extensions. After update to 6.x i got the following error message for entries with files attached, not tranlsated on a multi-language page:
Catchable fatal error: Argument 3 passed to TYPO3\CMS\Frontend\Page\PageRepository::getFileReferences() must be of the type array, null given, called in .../typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php on line 318 and defined in .../typo3/sysext/frontend/Classes/Page/PageRepository.php on line 1357
I'm not 100% sure where it commes from but the attached patch fixed it.
Files
Actions