Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1506

Administration Joomla! 5.x • com_media no longer retrieving the directory listing, JSON brokes error.

$
0
0
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:
Uncaught SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
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.

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
I hope someone can help me with this.

Regards, Nico

Statistics: Posted by Thunderbird0 — Sat Nov 30, 2024 10:33 am



Viewing all articles
Browse latest Browse all 1506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>