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

Guests can't download files... - [Solved]

Started by romagromov, 22.02.2015 15:38:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

romagromov

Hi!

Guests can't download files





Then I found, that after update all files and all categories have setting permissions as not allowed for guests.

How I can edit this permissions in batch mode for all downloads and categories?
Thanks.
Best free windows software for your PC at bestwinsoft.com
  •  

ColinM

#1
Hi
You should just need to set the permissions for Public Group in the Component permissions.  They should the pass through by the Inherit unless you have set deny or allowed for public elsewhere.

Please also see article Controlled Access to Categories and Downloads (Permissions & Access Levels)
http://www.jdownloads.net/documentations/item/controlled-access-to-categories-and-downloa
Did you reload a fresh version? Or did you do a regular upgrade?

Colin
Colin M
  •  

romagromov

I already did it.
Did you seen screenshot above?
This is Jdownloads permissions settings.
This was update from 19.x.x
Best free windows software for your PC at bestwinsoft.com
  •  

ColinM

Hi
Yes I did see screenshot but I needed to check.  Migration is like a fresh install.
Did you set the permissions during the install process or afterwards?

Also did you set deny permission anywhere?
Can logged in users download?

Please try changing the permissions for Public Group on one of your top level Categories, then check permissions on a Download on that branch.

Colin
Colin M
  •  

romagromov

QuoteDid you set the permissions during the install process or afterwards?
I set permissions immediatly after installation - that was first step - otherwise impossible open Jdownloads admin panel.

QuoteAlso did you set deny permission anywhere?
No. I was denied by default.

QuoteCan logged in users download?
No.

QuotePlease try changing the permissions for Public Group on one of your top level Categories, then check permissions on a Download on that branch.
No results.
Best free windows software for your PC at bestwinsoft.com
  •  

romagromov

Strange... I reinstall component - but problem not fixed...
Inheriting does not work...
I only can set Download - Allowed in each Download and Category, but it is not correct. I have hundreds files...
Best free windows software for your PC at bestwinsoft.com
  •  

ColinM

Hi
It sounds peculiar about setting permissions for backend
QuoteI set permissions immediatly after installation - that was first step - otherwise impossible open Jdownloads admin panel.
As super admin you should have no restrictions.  But how did you set Permissions if you could not get into jDownloads backend, I ask myself.  Most likely you did that from the Joomla! system pane.  That should not be the case.  Sounds very much like the migration did not complete.  During the migration/fresh install process it asks you to visit the permissions page there and then.  Did you do that or did you 'postpone' doing it?

It may possibly be that if one does not visit the Options to set a permission then jDownloads does not set up the permissions.  That is at the moment just speculation by me.  This is because no one else has reported a similar fault so something different happened that we need to identify. This could be just a problem with 3.2.25 but unlikely as nothing has changed in that area.  Hmm very puzzling.

By
QuotePlease try changing the permissions for Public Group on one of your top level Categories, then check permissions on a Download on that branch.
I really mean to look at the download in the back end and look at the permissions as calculated there.  Could you try that please.

Also by looking for a Deny I mean looking at the Permissions at the Backend, not at the resultant effect at the FrontEnd.  This is because we need to identify the cause of the problem in order to cure it!!

The other possibility is the View Access Level.  This should be Public not only for the Download itself but also for the entire chain from the top level category.  Could you check that through an entire chain of a top level category through the sub categories and to a final Download

Are you on 3.2.25?  If you are after checking all of the above from the backend, it might be worthwhile doing a regular upgrade - but please first check the other possibilities.
Thanks
Colin
PS I see our posts have crossed - I will look in detail at you latest post when you have done the backend checks etc I requested.
PPS Inheriting does work in jDownloads but seems not to work on your site, so something was done differently and we need to identify to prevent it occurring again.

Colin M
  •  

ColinM

Hi
Another thought which may have confused.  When looking at permissions the first time something has been created then the inheritance may not look correct.  One positively has to do a Save and then re-look at the permissions to see the true calculated position.  This is a Joomla! thing not a jDownloads issue.

It is a possibility that that has not occurred during the migration, and that is the cause of your problem.  I will need to test it as a possibility.

I know you have a huge number of Downloads and doing changes to them individually is neither feasible or desirable, and furthermore should not be necessary.  We need to get to the bottom of this.  Could you tell me how you you migrated please.  Was it an existing site migrated onto itself, or was it from an existing site to a new site?  Did you need to reload the files? Or putting it another way how did you 'transfer' the Downloads?

Colin
Colin M
  •  

romagromov

I just removed component and install it again.

Now I can see this notification:



Then I tryed to set access rules and pressed "Save button":



But after refreshing page it displays as allowed




Then I checked category permission

Best free windows software for your PC at bestwinsoft.com
  •  

ColinM

Ok Not sure why it did not save but there is probably a clue there somewhere.  At that time I do not think there is any file involved and it should be able to write to the database.

Please open up the category in jDownloads backend, check it is set to public access, then Save, then look again at Permissions and Access of that Category.

Colin
Colin M
  •  

romagromov

Best free windows software for your PC at bestwinsoft.com
  •  

ColinM

Hi
Not sure what order you did things in! Not sure which was before save and which after. How did the allowed get into the Edit Own I ask myself - any idea?

There is a note in the documentation about looking at Permissions via Joomla!  This may shed some light.
Also the migrate from 1.9 series may not have created or set correct server permission (755) on some jDownloads directories

Will check later.

Colin
Colin M
  •  

romagromov

Quote from: ColinM on 24.02.2015 15:56:25
Hi
Not sure what order you did things in! Not sure which was before save and which after. How did the allowed get into the Edit Own I ask myself - any idea?

There is a note in the documentation about looking at Permissions via Joomla!  This may shed some light.
Also the migrate from 1.9 series may not have created or set correct server permission (755) on some jDownloads directories

Will check later.

Colin

Where access options saved? What is the database table? Or what file?
Best free windows software for your PC at bestwinsoft.com
  •  

ColinM

The permissions are in a a Joomla database table, assets. The organisation of that table is not simple! I would not recommend attempting to modify anything in that table.

When you migrated your site what procedure or documentation did you follow?

Colin
Colin M
  •  

romagromov

Quote from: ColinM on 25.02.2015 01:10:10
The permissions are in a a Joomla database table, assets. The organisation of that table is not simple! I would not recommend attempting to modify anything in that table.

When you migrated your site what procedure or documentation did you follow?

Colin

Yes of course.
I used this article: http://www.jdownloads.net/documentations/item/how-to-upgrade-jdownloads-component-from-1-9-x-to-latest-3-x-version?category_id=40

I had joomla 2.5 and jdownloads 1.9.16
Then I updated to jdownloads 1.9.2.11
Then to jD2,5
Then to joomla 3.xx
And finally to jD3.2
Best free windows software for your PC at bestwinsoft.com
  •