jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Suggestions - Feature Request => Topic started by: dyfrig on 02.02.2025 15:35:26

Title: Improved error handling needed when downloads folder not configured correctly.
Post by: dyfrig on 02.02.2025 15:35:26
I restored a backup to my local XAMMP server. The site was working and I could access the backend however when I tried to download a jdownloads file I had a HTTP error 500. I turned on debug system and had the following error :
Error  ClassNotFoundError
HTTP 500 Whoops, looks like something went wrong.
Attempted to load class "CategoriesHelper" from namespace "JDownloads\Component\JDownloads\Administrator\Helper".
Did you forget a "use" statement for another namespace?

I first thought this was to do with different setups on the server but then realised this was to do with the downloads folder setting requiring an absolute path and so was incorrect on the local server.  It would be better if the software handled this and gave a meaningful error.
Title: Re: Improved error handling needed when downloads folder not configured correctly.
Post by: ColinM on 04.02.2025 01:31:44
Hi
The error reporting you see here is from Joomla so jD does not get to look at it.

I have added a section in the Xampp documentation about this problem.
https://www.jdownloads.net/documentation/general-items-v3-9/creating-a-joomla-test-site-on-xampp#preparation-for-jdownloads
Will maybe add elsewhere
Colin