Bug #56864

File browser: wrong argument type passed to ElementBrowser::fileIsSelectableInFileList()

Added by Florian Baumann over 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2014-03-13
Due date:
% Done:

100%

TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

While creating a new content element with images, I was browsing the files to select in the file browser. It suddenly crashed with the error message

#1: PHP Catchable Fatal Error: Argument 2 passed to TYPO3\CMS\Recordlist\Browser\ElementBrowser::fileIsSelectableInFileList() must be of the type array, boolean given, called in /home/httpd/vhosts/vsao-bern.ch/httpdocs/typo3_src-6.2.0beta6/typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php on line 1834 and defined in /home/httpd/vhosts/vsao-bern.ch/httpdocs/typo3_src-6.2.0beta6/typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php line 1911 (More information)

See attached image for whole stack.

This error keeps occuring in every file browser I try to open. The JavaScript window ends up with this error.

TYPO3: 6.2.beta6
PHP: 5.4

Browser: Google Chrome

the_error.png View (61.2 KB) Florian Baumann, 2014-03-13 11:37

Associated revisions

Revision c16c5ba6 (diff)
Added by Frans Saris over 5 years ago

[BUGFIX] Element browser doesn't use FAL info to for file dimensions

The dimensions of a file are fetch during indexing. These values
should be used as for remote files or certain filetype getimagesize()
will not work or give unwanted overhead.

Resolves: #56864
Releases: 6.2
Change-Id: I14ece9c0dbf414f4cb0759d3065a1c5b5782ca29
Reviewed-on: https://review.typo3.org/28404
Reviewed-by: Markus Klein
Reviewed-by: Tomita Militaru
Reviewed-by: Wouter Wolters
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Tested-by: Markus Klein

History

#1 Updated by Florian Baumann over 5 years ago

It only seems to occur in a specific folder. The folder only contains PDF documents. The largest one is 1.7MB. There are 19 files and the thumbnails are switched on. IM is configured to render thumbs from PDF files. The filenames do not contain any special characters as German Umlaute or similar special chars.

#2 Updated by Gerrit Code Review over 5 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/28404

#3 Updated by Frans Saris over 5 years ago

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

#4 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF