Issue Bug Closed

#97466Adding an image with filelist won't work

Christian Drost 04/25/22, 09:22 updated 10/07/26, 14:30

Description

Hi there,

i tried to replace a referenced image with the file-list and the js doesn’t respond with the recent TYPO3 11 version and on 9.5 i get a JS Error (Uncaught TypeError: context is undefined in ELementBrowser.js)

The steps to reproduce this issues:
  1. Open the file list and click on the number at the end of the row of an image.
  2. Scroll to the bottom and open one of the referenced data-sets (tested with text & media) in which the image is used.
  3. Try to add another image with the add mediafile button.
Tested with recent Chrome and Firefox on Mac.
Tested TYPO3 Version:
  • 11.5.9 on a DDEV
  • 9.5.33 on a Debian Server

Kind regards

Reviews 7

History 1320

  1. Riccardo De Contardi commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2022-07-09T15:13:49+00:00" > 07/09/22, 15:13 </span>

    Hi. May I ask you if this issue still occurs with the latest versions of 11.x and 9.x ?

    I mean: 11.5.12 and 9.5.36 ELTS

    Thank you!

  2. Christian Drost commented <span data-processor="relativetime" data-value="2022-07-13T07:31:00+00:00" > 07/13/22, 07:31 </span>

    Hi.

    Yes the issue still exists in the latest versions of 9.5.36 and 11.5.13.

    JS Error in 9.5.36:
    Uncaught TypeError: context is undefined ElementBrowser.js:79:5

    At 11.5.13 i don’t get an error, nothing happens if i try to add another media file.

  3. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2022-08-04T08:22:11+00:00" > 08/04/22, 08:22 </span>

    I can confirm the behavior reported for 11.5.x on both 11.5.13 and 12.0.0-dev (latest master)

    Steps to reproduce

    1. Open File List module
    2. Upload 2 images: test1.jpg and test2.jpg*
    3. Go to a page
    4. Create a content element “Text and images”, add a reference to *test1.jpg
    (tab Images > Add Image)
    5. save and close
    6. Go again on File List module
    7. Now test1.jpg has a “1” on the column “Ref” > click on it
    8. It opens a popup, scroll down until you reach the “References to this item” part
    9. Click on the pencil; it opens a popup where you can edit the “Text and images” element
    10. tab Images > Add Image – try to add *test2.jpg*
    11. after you select it, nothing happens, the image is not added to the list of refecenced images

    I could be wrong, but AFAICS there are no javascript errors on the console

    BTW the “Select and Upload Files” button seems to work.

  4. Krzysztof Gutkowski commented and changed category TYPO3 Version 11 13 <span data-processor="relativetime" data-value="2023-06-15T09:22:17+00:00" > 06/15/23, 09:22 </span>

    Can reproduce this on v11.5.28, v12.4.2, and main.

  5. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-02-10T20:25:11+00:00" > 02/10/25, 20:25 </span>

    Applied in changeset commit:abed0c35d332de9ea3abfaa5e381fd10dcb32075.

  6. Gerrit Code Review pushed patch set 4 for main to change 79445 status Closed Under Review <span data-processor="relativetime" data-value="2026-04-22T06:52:09+00:00" > 04/22/26, 06:52 </span>