Project

General

Profile

Actions

Bug #97466

open

Adding an image with filelist won't work

Added by Christian Drost about 2 years ago. Updated about 1 year ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-04-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Stabilization Sprint

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

Actions #1

Updated by Riccardo De Contardi about 2 years ago

  • Status changed from New to Needs Feedback

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!

Actions #2

Updated by Christian Drost about 2 years ago

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.

Actions #3

Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Needs Feedback to New
Actions #4

Updated by Riccardo De Contardi almost 2 years ago

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.

Actions #5

Updated by Benni Mack about 1 year ago

  • Sprint Focus set to Stabilization Sprint
Actions #6

Updated by Krzysztof Gutkowski about 1 year ago

  • Category set to Backend User Interface
  • TYPO3 Version changed from 11 to 13

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

Actions #7

Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79445

Actions #8

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79445

Actions

Also available in: Atom PDF