Actions
Bug #39235
closedWarning: ArrayIterator::seek() expects parameter 1 to be long, string given
Status:
Closed
Priority:
Must have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-07-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi!
Get this error when using the new image storage on open the Element Browser.
Core: Error handler (BE): PHP Warning: ArrayIterator::seek() expects parameter 1 to be long, string given in /t3lib/file/Driver/LocalDriver.php line 349
I throw an exception at this line to find more (attached).
And found in typo3/class.browse_links.php line 2130
$folder->getFiles($extensionList);
will pass the parameter $extensionList (string: "gif,jpg,jpeg,...") but t3lib_file_Folder::getFiles requires $start (integer: usually 0).
This happens after update from 4.7 to 6.0.0alpha2. With a clean install there is no error.
Thanks!
Files
Updated by Andreas Wolf about 12 years ago
This can be fixed by using a FileExtensionFilter instance on the storage. I'll commit a patch in a few minutes.
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14255
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14255
Updated by Anonymous about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7472f53a064bde013b938d4d28051ba211aeb5a3.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed
Actions