Project

General

Profile

Actions

Bug #101724

open

PHP Warning: Undefined array key in in /.../cms-recordlist/Classes/Browser/FileBrowser.php line 158

Added by Patrick Lenk 8 months ago. Updated 5 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2023-08-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Undefined array key warnings in the filebrowser.

Tue, 22 Aug 2023 10:09:57 +0200 [WARNING] request="00c26218332ab" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: Undefined array key 1 in /var/www/html/vendor/typo3/cms-recordlist/Classes/Browser/FileBrowser.php line 158 
Tue, 22 Aug 2023 10:09:57 +0200 [WARNING] request="00c26218332ab" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: Undefined array key 2 in /var/www/html/vendor/typo3/cms-recordlist/Classes/Browser/FileBrowser.php line 158 
Tue, 22 Aug 2023 10:09:57 +0200 [WARNING] request="00c26218332ab" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: Undefined array key 4 in /var/www/html/vendor/typo3/cms-recordlist/Classes/Browser/FileBrowser.php line 158 
Actions #1

Updated by Christian Kuhn 8 months ago

  • Status changed from New to Needs Feedback

Thanks!

Looking at the code, the line in question should probably be sanitized better.

Still, do you have any information on how to reproduce?

It looks as if this should not happen in general by default, and I guess the fix depends on what is actually going wrong here.

Actions #2

Updated by Patrick Lenk 8 months ago

It seems that these warnings occur in rare cases when an editor wants to add an image or link to a core content element. but i can't add any steps to reproduce this.

The default upload folder is accessible and configured in sitepackage user ts config like:

options {
    defaultUploadFolder = 1:/uploads/editor/
}

Actions #3

Updated by David Bruchmann 5 months ago

Might it be related to this?
https://forge.typo3.org/issues/96529

Actions #4

Updated by Patrick Lenk 5 months ago

David Bruchmann wrote in #note-3:

Might it be related to this?
https://forge.typo3.org/issues/96529

no

Actions

Also available in: Atom PDF