jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Suggestions - Feature Request => Topic started by: MrNiceGuy on 28.04.2015 16:54:23

Title: Errorsite for Category with no permissions
Post by: MrNiceGuy on 28.04.2015 16:54:23
Hey i want to setup a specific Errorsite if a user get linked to a download category without permissions.

At the moment Joomla comes with the errorpage (templates/<templatename>/error.php). Is it possible to redirectt to a specific site? Maybe a joomla articlepage?

best regards from germany :)
Title: Re: Errorsite for Category with no permissions
Post by: ColinM on 29.04.2015 17:24:49
Hi
Do you mean that a 404 error is generated?  If that is the case it does not get to jD at all.  You need to setup a 404 handler.
Some links that may help are below  - I used search term 'joomla 404 error handling' in Google.

https://docs.joomla.org/Creating_a_Custom_404_Error_Page
https://www.ostraining.com/blog/joomla/404-pages/
http://joomlaseo.com/Checklist/avoid-404-errors

Colin
Title: Re: Errorsite for Category with no permissions
Post by: MrNiceGuy on 29.04.2015 17:51:26
jeah you can link all 404 errors to a page, thats right... i want to link a specific page to categories without permissions. i dont want to get to that page with every fault link. So the categorie without permission should not result to a 404 like it did.
Title: Re: Errorsite for Category with no permissions
Post by: ColinM on 29.04.2015 18:12:59
Hi
I do not understand. Was the error a 404 error?  At this stage I am trying to understand the symptoms, not a possible cure.

Colin
Title: Re: Errorsite for Category with no permissions
Post by: MrNiceGuy on 29.04.2015 18:22:26
if i click on a link to a jdownloads category without permission i got a 404 error page from my template. My question is: its possible to link to a joomla article page or something to get explain the user the reason and how to solve it?
Title: Re: Errorsite for Category with no permissions
Post by: ColinM on 30.04.2015 12:11:14
Hi
If it is a 404 error then it does not get as far as jDownloads.  With 404 errors there are several things that can be found, one of which is the invalid link.  So in principle one could have a 404 handler which analyses the input and redirects to an appropriate page.  This is not simple!

So the other approach is to see why the 404 error occurred and avoid it.  If it is permissions then one approach is to use Access Levels so that the user does not even see the download.  However I have not been able to re-create your error so it is a little difficult to suggest an 'avoidance' approach.  Was the error from within some content such as an article using the jD content plugin such as {jd_file file==23} where 23 was the Download id?  Or was it from a jD menu link?

Colin
Title: Re: Errorsite for Category with no permissions
Post by: MrNiceGuy on 30.04.2015 12:23:30
Thanks for the reply.

It is easy to reproduce the problem:
1. Copy a Link to a Downloadfile (This downloadfile has permission to a joomla usergroup, not public)
2. If you logout from joomla and click the link, you get a 404 error

My jdownload configuration is like this:
- direct downloads: no
- use php script for downloads: no (cause i have large files and max execution time of php from my provider is blocking)