News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Errorsite for Category with no permissions

Started by MrNiceGuy, 28.04.2015 16:54:23

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MrNiceGuy

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 :)
  •  

ColinM

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
Colin M
  •  

MrNiceGuy

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.
  •  

ColinM

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
Colin M
  •  

MrNiceGuy

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?
  •  

ColinM

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
Colin M
  •  

MrNiceGuy

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)
  •