Project

General

Profile

Actions

Bug #62616

closed

Catchable fatal error (null given) in FilesContentObject

Added by Markus Gilli about 10 years ago. Updated about 6 years ago.

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

FilesContentObject.patch (631 Bytes) FilesContentObject.patch Markus Gilli, 2014-11-01 20:27

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #64239: Catchable fatal error in PageRepository::getFileReferences() if no reference existsClosed2015-01-11

Actions
Actions #1

Updated by Andreas Allacher almost 10 years ago

Just encountered the same issue.
In my case it was because I referenced an element from a different language (by accident) and had set "config.sys_language_mode = strict" and an image was referenced in that element.
Although in that case the question is - as I reference the element directly - if it should not also display the image.

Actions #2

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36480

Actions #3

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39905

Actions #4

Updated by Alina Fleser over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF