Zen Cart Logo
Forums / General Questions / Customer cant download virtual product

Customer cant download virtual product

Views: 659

Results 1 to 6 of 6
30 Mar 2015, 11:12 AM
#1
blackerutuf avatar

blackerutuf

New Zenner

Join Date:
Feb 2015
Location:
United Kingdom
Posts:
29
Plugin Contributions:
0

Customer cant download virtual product

I have searched for an answer but nothing came back to this problem

I have a digital form to send to customers, which is time and download limited, I have set the attributes accordingly and everything seems to be in order.
When the test customer tries to download from their account, the page comes back with:

Forbidden

You don't have permission to access etc,etc,/test.zip on this server.

Can someone shead some light please?
Regards
Mike

30 Mar 2015, 11:52 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Customer cant download virtual product

What are the permissions set on that file and the folder(s) it's contained in?

30 Mar 2015, 11:55 AM
#3
blackerutuf avatar

blackerutuf

New Zenner

Join Date:
Feb 2015
Location:
United Kingdom
Posts:
29
Plugin Contributions:
0

Re: Customer cant download virtual product

Stevesh
Thanks for coming back to me permissions are 644 and its in the 'downloads' file of the shop.
Regards
Mike

30 Mar 2015, 1:03 PM
#4
blackerutuf avatar

blackerutuf

New Zenner

Join Date:
Feb 2015
Location:
United Kingdom
Posts:
29
Plugin Contributions:
0

Re: Customer cant download virtual product

The Download file is 755

30 Mar 2015, 1:12 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customer cant download virtual product

Are you using the redirect option for downloads? Does your site support a directory having permission level of 755 for a folder?

Somewhere in I think it is the template file for downloads the temporary directory is created with a permission level that may be higher than supported by your host when using the above method... Sorry that I forget the specific location/detail.

Also in that light, same questions to the pub directory if using the redirect.

30 Mar 2015, 1:25 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customer cant download virtual product

Had a quick opportunity to spot what I was looking for. Above I. Was incorrect, the temporary directory is created with 777 permissions not 755... Look in includes/modules/pages/download/header_php.php

If you look for:

if (DOWNLOAD_BY_REDIRECT == 'true') {

You a mkdir command that sets 0777 as the permission, change that to 0755 if using redirect to have the temporary directory set to permissions of 0755. It may workin your situation.