RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
10 Nov 2025

Pull Request for Issue #43279 .

Summary of Changes

When there is a file in the /images folder with less than apparently 12 bytes content, the functions we are using to get information about the images are throwing notices, breaking the JSON of the media manager. According to the documentation on php.net, the methods expect files with at least 12 bytes length to work.

Testing Instructions

  1. Create an empty file with an image extension (for example test.gif) in the /images folder
  2. Go to media manager

Actual result BEFORE applying this Pull Request

No images are displayed. If you open the developer tools, you see that the ajax request returned a broken JSON with some notices at the beginning.

Expected result AFTER applying this Pull Request

No notices, working media manager

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 10 Nov 2025
avatar Hackwar Hackwar - change - 10 Nov 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Nov 2025
Category Libraries
avatar brianteeman brianteeman - test_item - 11 Nov 2025 - Tested successfully
avatar brianteeman
brianteeman - comment - 11 Nov 2025

I have tested this item ✅ successfully on 89b1c58


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46435.

avatar brianteeman
brianteeman - comment - 11 Nov 2025

I am marking this as successful because it removes the errors etc but I think it can be improved

I did expect that it would still display the filename with the icon-eye-slash icon as it does with other files it cannot determine but instead there is nothing listed at all.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46435.

avatar brianteeman
brianteeman - comment - 11 Nov 2025

The reason for the request for improvement is because if the invalid image is still listed in the media manager it can be selected and therefore deleted.

avatar richard67 richard67 - test_item - 11 Nov 2025 - Tested successfully
avatar richard67
richard67 - comment - 11 Nov 2025

I have tested this item ✅ successfully on 89b1c58


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46435.

avatar richard67 richard67 - change - 11 Nov 2025
Status Pending Ready to Commit
Labels Added: bug PR-5.4-dev
avatar richard67
richard67 - comment - 11 Nov 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46435.

avatar richard67 richard67 - change - 11 Nov 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-11-11 12:59:20
Closed_By richard67
Labels Added: RTC
avatar richard67 richard67 - close - 11 Nov 2025
avatar richard67 richard67 - merge - 11 Nov 2025
avatar richard67
richard67 - comment - 11 Nov 2025

@Hackwar Thanks for fixing this bug, and thanks @brianteeman for testing.

avatar korenevskiy
korenevskiy - comment - 12 Nov 2025

Can you tell me if this fix will be automatically added to Joomla 6?

avatar richard67
richard67 - comment - 12 Nov 2025

Can you tell me if this fix will be automatically added to Joomla 6?

@korenevskiy You should know that meanwhile as you are not new here. YOu can clearly see that this PR has been merged into 5.4-dev and so it will be in the next release 5.4.1, and it is also merged up into 6.0-dev and will be in the next release 6.0.1. Both are scheduled for November 25, see roadmap here https://developer.joomla.org/roadmap.html , and release candidates for these versions are already available.

avatar korenevskiy
korenevskiy - comment - 13 Nov 2025

@richard67 Thank you so much for clarifying. I didn't find on the website how to see that PR is linked to 2 branches at once, but I will know this for the future. Thank you very much for the clarification.

Add a Comment

Login with GitHub to post a comment