No Code Attached Yet
avatar exlemor
exlemor
7 Apr 2025

Steps to reproduce the issue

( similar/related issue to #43220 which was fixed )

During DACH JUG 5.3.0 RC2 testing session, I was testing Media Manager by uploading this test image:

Image

Expected result

For the file to Save successfully and for their to be a visual confirmation of successful saving.

Actual result

It does not save nor confirm that it does not save (only if I go to Console do I see an issue:

[Error] TypeError: null is not an object (evaluating 'Joomla.MediaManager.Edit.xhr.readyState')
(anonymous function) (edit-images.min.js:4:5888) line 167 )

[see video]:

ScreenFloat.Recording.of.Safari.at.Apr.7.2025.at.10_26_51.PM.mp4

System information (as much as possible)

PHP 8.3.19
Joomla 5.3.0. RC2

but also applies to older and newer versions (see below)

Additional comments

I have tested this on 5.2.5, 5.3.0 RC2, 5.4.0 dev, 6.0.0 Nightly - all have this same issue.

I should point out that this feels like a regression to an issue I happen to report back in Joomla 4.4.4 rc1 (which also affected Joomla 5.0.3 and Joomla 5.1.0. rc1)

avatar exlemor exlemor - open - 7 Apr 2025
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Apr 2025
avatar exlemor exlemor - change - 7 Apr 2025
The description was changed
avatar exlemor exlemor - edited - 7 Apr 2025
avatar exlemor exlemor - change - 7 Apr 2025
The description was changed
avatar exlemor exlemor - edited - 7 Apr 2025
avatar brianteeman
brianteeman - comment - 8 Apr 2025

could not replicate this myself

chrome_2Jqj7Armca.mp4
avatar exlemor
exlemor - comment - 8 Apr 2025

could not replicate this myself

chrome_2Jqj7Armca.mp4

Hi @brianteeman, appreciate that you tested it but I fear that your test wasn't the accumulation that I described, you have to Crop the Image (and save it), then immediately (without leaving that area of Crop/Resize/Rotate), Resize it (and save it) and then Rotate it and it is then at the Rotate stage that you can not save and that you within a few seconds get the error message in Console.

avatar brianteeman
brianteeman - comment - 8 Apr 2025
chrome_jkzMZlYxVe.mp4
avatar brianteeman
brianteeman - comment - 8 Apr 2025

I do agree however that there should be a message when you save

avatar exlemor
exlemor - comment - 8 Apr 2025

Hi @brianteeman - thanks for the updated test - this led me to think it could be related to Safari as I was testing in Safari 18.4 so I tested it in Vivaldi (Chromium based browser) and it seems to be related to the processing speed of Javascript in these browsers vs the amount of time you wait before pressing buttons:

IF I test in Vivaldi and I press Save (no visual confirmation of said save) AND I wait 2-3 seconds and then press Save + Close, all good, the file is rotated and saved BUT

IF I test in Vivaldi and I press Save (and since I have no visual confirmation of said save), I then quickly press Save again and/or Save+Close, then the same message appears in the Console.

Armed with this knowledge, I redo the test in Safari and if I wait a full 2 seconds in Safari after pressing Save, to press Save and Close, there is a noticeable delay before the blue line in my browser shows me it is updating to the thumbnail screen BUT it does work... if I do not wait 2 seconds, because I am not seeing any visual confirmation, I quickly press Save twice or Save and then quickly Save + Close, the console error appears.

avatar brianteeman
brianteeman - comment - 8 Apr 2025

sorry I cant help you further. the media manager is written in a language I have zero knowledge of

avatar exlemor
exlemor - comment - 8 Apr 2025

sorry I cant help you further. the media manager is written in a language I have zero knowledge of

Always appreciate the help. :)

Add a Comment

Login with GitHub to post a comment