Issue Bug Closed

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

Patrick Lenk 08/22/23, 08:19 updated 07/16/24, 14:19

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 

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 5

  1. Christian Kuhn commented and changed status New Needs Feedback 08/23/23, 16:23

    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.

  2. Patrick Lenk commented 08/24/23, 13:33

    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/
    }
  3. David Bruchmann commented 12/05/23, 08:05

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

  4. Patrick Lenk commented 12/05/23, 09:22

    David Bruchmann wrote in #note-3:
    > Might it be related to this?
    > https://forge.typo3.org/issues/96529

    no

  5. Georg Ringer commented and changed status Needs Feedback Closed 07/16/24, 14:19

    Hey Patrick,

    I failed to reproduce this as well and closing the issue to cleanup forge a bit.
    If this is still valid for you in v12/v13 and you can reproduce it, please either contact me on slack or create a new issue and reference that one.