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

Error Unauthorized access to downloads.

Started by siti, 15.09.2016 14:21:45

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

siti

after passage to joomla 3.6


and jDownloads 3.2.45
i have this message ... Error

Unauthorized access to downloads

and all user (admin too) cannot download file... the permess are ok

ty for assistence




[gelöscht durch Administrator]
  •  

ColinM

Hi
Many users have upgraded OK to Joomla! 3.6 with jD 3.2.45 - the only known problem is one related to the use of Tags in jD Categories where Joomla! has introduced a problem.  So maybe something else has changed. 
Some quick thoughts.
Could you check your PHP version is compatible with Joomla! 3.6

If you like I could take a look but you would need to PM super user details of your site.

Col;in
Colin M
  •  

deejay_xb

I have the same problem!
Permissions are set right!
How to solve?

[gelöscht durch Administrator]
  •  

ColinM

Hi
Will try to help but at present I cannot reproduce your problem -  am using Joomla! 3.6.3, with php 5.6.27 and jD 3.2.46
Please send super user details by PM.

Colin
PS have you checked out that your other extensions are OK with Joomla! 3.6.x
Colin M
  •  

deejay_xb

Thank you for the fast support! I had sent you pm with the table you exported. I hope the issue can be fixed. For a fast workaround - is there any code i can remove from some .php file so that downloads are unrestricted?
  •  

Arno

#5
Hi,
- at first should you update to the newest jD version 3.2.46 (when still not done)
- as Colin could not reproduce your problem it seems to be not a general problem
- please check your jD configuration and deactivate every 'anti leech' option (see pic)
- try it then again

This message has normally nothing to do with wrong permission settings in jDownloads.
From which Joomla version have you updated and what is your currently Joomla version?



[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

deejay_xb

Thank you for the response.

before the joomla update jd plugin was a beta variant.
the joomla upgrade was made from joomla v3.3.6 and now we have joomla v3.6.3.
jd plugin was updated yesterday to latest version.
settings from the pic you attached ar the same on our site.

can you give us a workaroud so that all downloads are unrestricted?
  •  

deejay_xb

The jD version we upgraded from was 3.2.18 beta.
I just verified from a backup that in the old version (also combined with old joomla version before upgrade) it didn't even matter if jdownloads public persmission were inherited (calculated NOT allowed) or allowed, because in both cases public access worked.

As soon as I upgraded jD only, it behaves exactly as you've seen.

Is the any non-distructive way to go backup to 3.2.18 beta? We REALY need to make public those documents today.
  •  

Arno

Hi,
QuoteThe jD version we upgraded from was 3.2.18 beta.
wow, this is very old. Maybe a problem with the update.

When it is not possible to get an backend access, you can try this:
- make sure that you have created a backup before (maybe with Akeeba Backup) you change anything
- go then to the tools page in jDownloads and try to reset the Downloads and the Categories permissions
- afterwards go to the jD control panel and click on the options button in the top
- check whether every user group have the permissions for 'download'

Please send me also a link to the site (with the Downloads) via PM.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

deejay_xb

Can you please try and reproduce this?
from that beta version to the latest to see if you have the same problem.
  •  

Arno

Have you tried what i had described?
What are your results?


I wait also still on your link (via PM).

QuoteCan you please try and reproduce this?
from that beta version to the latest to see if you have the same problem.
This would be really much work and it is at this point not sure that your problem is really a jDownloads problem. For me could it be also a problem with your Joomla installation, your server settings or maybe a session problem.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

Hi
I have thought more on this.  It is also the first time I have not been able to resolve a 'permissions' challenge.
The cause is undoubtedly in the permissions handling which has changed since the beta versions.

A way forward is a rather boring one but should be effective.  As you saw yesterday I was able to restore some Downloads to become 'downloadable' by simply resaving them individually by selecting them from the jD backend 'Downloads' page and then Saving. But some were not restored to downloadable.  That indicates to me it could be one of the Categories in the directory chain. So Identify the chain, the jD Tree module is useful, and then starting at the top re save each category in turn from the jD backend Categories page. Then resave any un-downloadable Downloads.  Please check at each stage.

There is a slightly more automated vossibility by actually deleting the relevant Downloads and their Categories by using the Back End Downloads and Categories.  The actual directories and files are retained so if one now manually invokes a monitoring then they will get restored. Do not do many at once as you might get a server timeout problem. Just do the boring way! Beware however if you use the monitoring method that the new Downloads take their name from the file name.

Remember more haste less speed!!

Colin
Colin M
  •  

deejay_xb

Yesterday's solution with save did restore linkages to categories, subcategories and each download that it was applied to.
Although it appeared to be downloadable, when actually pressing download it would end with error "unauthorized...".

I did some research and found a way to automate linkage restore by messing with sql tables.
I will finish all (hundredes) downloads in a few minutes.
  •  

deejay_xb

To make them temporarily downloadable we restored original (beta version) files components/com_jdownloads/ modules/mod_jdownloads_* plugins/system/jdownloads/ plugins/search/jdownloads/ plugins/content/jdownloads/ plugins/jdownloads/
from backup.

This is the reason now no more "unauthorized" error.
We need to find a way so that after all linkage restored to put new version files in place.

The way i see it, upgrading jD messed the linkages and the permissions because tested from backup vm (a month ago) all works perfectly until I update just this jD component.
  •  

deejay_xb

Also, if just one download in category has broken linkage, in the category antet it says : you are not allowed to download and this is misleading, even if maybe some files are broken or perhaps denied. It scares the viewer.
  •