Project

General

Profile

Actions

Bug #39235

closed

Warning: ArrayIterator::seek() expects parameter 1 to be long, string given

Added by Arno Dudek over 12 years ago. Updated about 7 years ago.

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

browse_links.html (7.73 KB) browse_links.html Arno Dudek, 2012-07-25 11:31

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #51752: FAL ArrayIterator::seek() warning in ElementBrowserClosed2013-09-04

Actions
Related to TYPO3 Core - Bug #47649: LocalDriver.php line 312 - PHP Warning: ArrayIterator::seek() expects parameter 1 to be long, stringClosed2013-04-27

Actions
Actions #1

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.

Actions #2

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

Actions #3

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

Actions #4

Updated by Steffen Ritter about 12 years ago

  • Target version set to 6.0.0-beta2
Actions #5

Updated by Steffen Ritter about 12 years ago

  • Assignee set to Andreas Wolf
Actions #6

Updated by Anonymous about 12 years ago

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

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF