Hi,
On (only) one of my Joomla (recently updated to 5.2.2.) websites the directory listing of the Media component is broke. It is a website where many front end users are making daily content changes. Uploading from new media or directories still works but it no longer retrieves the list of existing media and directories, when the componet starting.
It stays empty but the browser console gives the following error message:
According to the browser, the error is in the Joomla PHP files:
Regards, Nico
On (only) one of my Joomla (recently updated to 5.2.2.) websites the directory listing of the Media component is broke. It is a website where many front end users are making daily content changes. Uploading from new media or directories still works but it no longer retrieves the list of existing media and directories, when the componet starting.
It stays empty but the browser console gives the following error message:
After reading similar posts on this forum, I suspect that an front-end user has uploaded an image with a strange character (!, ñ or something) in the file name. Which breaks the standard Joomla JSON function that retrieves the file names. I have spent many hours checking the file names of hundreds of files multiple times, but I do not see a file with a strange character in its name. It also happend arround the moment I upgraded to Joomla 5. Does anyone have any idea how I can find out what is wrong with the JSON that the com_media Joomla fires? Is there a possibility that I can fire with a peace of PHP that JSON code separately, to see what kind of broken JSON's return? Or is there a possibility to check the files in the /images directory for these kinds of errors via Unix? Debug mode also gives me no extra information about where the error is in retrieving the directory listing.Uncaught SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
According to the browser, the error is in the Joomla PHP files:
- /media/com_media/js/media-manager.min.js
- /media/system/js/core.min.js
Regards, Nico
Statistics: Posted by Thunderbird0 — Sat Nov 30, 2024 10:33 am