Project

General

Profile

Actions

Bug #96638

closed

Image editor throws JS error - cannot read properties of undefined

Added by Philipp Kuhlmay over 2 years ago. Updated 9 days ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2022-01-24
Due date:
% Done:

0%

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

Description

After opening the image manipulation editor I get the following JS error inside the Google Chrome console:

VM910 ImageManipulation.js:13 Uncaught TypeError: Cannot read properties of undefined (reading 'find')
    at h.update (VM910 ImageManipulation.js:13:8040)
    at HTMLLabelElement.<anonymous> (VM910 ImageManipulation.js:13:6529)
    at HTMLLabelElement.dispatch (jquery.js?bust=1642602253:5430:27)
    at HTMLLabelElement.elemData.handle (jquery.js?bust=1642602253:5234:28)
Actions #1

Updated by Riccardo De Contardi almost 2 years ago

  • Category set to Backend JavaScript
Actions #2

Updated by Riccardo De Contardi over 1 year ago

This looks still reproducible on 12.0.0-dev (latest master) with the following steps

1. Create Text & pic CE
2. Open chrome console & clear messages
3. Go to "Images" tab and add an image (an already loaded one is OK)
4. Save the CE (it is important)
5. Open the image manipulation ("Open Editor")

Result: the error appears

Uncaught TypeError: Cannot read properties of undefined (reading 'find')
    at ImageManipulation.update (image-manipulation.js?bust=489562db164085d6304b74f2789a8586f1b006bc:13:8055)
    at ImageManipulation.init (image-manipulation.js?bust=489562db164085d6304b74f2789a8586f1b006bc:13:7683)
    at n.<anonymous> (image-manipulation.js?bust=489562db164085d6304b74f2789a8586f1b006bc:13:3689)
    at e.emitEvent (ev-emitter.js?bust=489562db164085d6304b74f2789a8586f1b006bc:1:761)
    at n.complete (imagesloaded.js?bust=489562db164085d6304b74f2789a8586f1b006bc:6:2552)
    at n.progress (imagesloaded.js?bust=489562db164085d6304b74f2789a8586f1b006bc:6:2369)
    at imagesloaded.js?bust=489562db164085d6304b74f2789a8586f1b006bc:6:1937
Actions #3

Updated by Riccardo De Contardi 10 months ago

Right not it seems I cannot reproduce it anymore on 12.4.5 and 13.0.0-dev. Can someone confirm?

Actions #4

Updated by Georg Ringer 9 days ago

  • Status changed from New to Closed

I can't reproduce it either, therefore closing the issue

Actions

Also available in: Atom PDF