Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Download Redirect 403 Forbidden Server Error

    After returning via login to collect a download by redirect for a "paid by check" order which was set to "processing" in ADMIN> Orders>I was presented with an order recapand download button displaying the number of downloads I am allowed.

    After clicking on Download, a 403 Forbidden Error was thrown explaining:

    "You don't have permission to access /Zencart/pub/.redirect-session-folder-name/downloadfilename.pdf

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

    -----

    I am running v 1.3.8a on a Unix server with the following permission settings:

    for Zencart/pub/ 777 (universal everything);

    for Zencart/ 755;

    for the generated /.redirectsesionfoldername/ 777;

    and,

    for the downloadfilename.pdf 444 (universal read-only).

    A previous test was run with a /Zencart/pub/ folder permission setting of 755 and it produced the exact same result.

    Server particulars are:

    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8.i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mydomain.com Port 80

    I see froma search of the forums that this is a recurring problem.

    Admin setting is to redirect download.

    File is recognized in attributes and product.

    I have two questions:

    1.) Is the download number allowed in the attribute settings the allowed number of download attempts, or the number of complete downloads allowed?

    2.) Does anyone see a problem with the settings or server information above which would cause the server to keep throwing a Forbidden Error when everything is in its proper place?

    Thanks for your help.
    Last edited by Jay Gee; 18 Oct 2009 at 09:36 PM. Reason: typos

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Download Redirect 403 Forbidden Server Error

    Quote Originally Posted by Jay Gee View Post
    a 403 Forbidden Error was thrown explaining:

    "You don't have permission to access /Zencart/pub/.redirect-session-folder-name/downloadfilename.pdf
    A 403 error means that rules in the webserver software (not Zen Cart) prohibited you from doing what you were attempting.
    The exact reason for the prohibition will be documented in the server's errorlog (ie: apache errorlog), usually accessible from your hosting company's control panel.

    Quote Originally Posted by Jay Gee View Post
    1.) Is the download number allowed in the attribute settings the allowed number of download attempts, or the number of complete downloads allowed?
    The number is the number of allowed download attempts, and is completely unrelated to the 403 error, since the 403 error is NOT generated by Zen Cart.

    Quote Originally Posted by Jay Gee View Post
    2.) Does anyone see a problem with the settings or server information above which would cause the server to keep throwing a Forbidden Error when everything is in its proper place?
    A 403 error for a .pdf document type sounds like you've got some sort of prohibition for .pdf files, probably in the .htaccess file of either your /pub/ folder or your /ZenCart/ folder, or the root folder above that.
    Again, the real cause will be documented in the apache logs. If you can't find those logs, you'll need to contact your hosting company.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Download Redirect 403 Forbidden Server Error

    Quote Originally Posted by DrByte View Post
    A 403 error means that rules in the webserver software (not Zen Cart) prohibited you from doing what you were attempting.
    <snip>

    The number is the number of allowed download attempts, and is completely unrelated to the 403 error, since the 403 error is NOT generated by Zen Cart.
    As a result, if the attribute setting allows 4 download attempts and the customer is successful at downloading on the first attempt, the order in the cart will show complete if the customer were to check it... correct?

    Thanks for your help!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Download Redirect 403 Forbidden Server Error

    No, the act of downloading a file does not change the order's status in your admin area.
    You have to update your order status yourself. That is not automated.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Download Redirect 403 Forbidden Server Error

    Quote Originally Posted by DrByte View Post
    No, the act of downloading a file does not change the order's status in your admin area.
    You have to update your order status yourself. That is not automated.
    Does a successful download attempt by the customer on the first try foreclose the customer's ability to return for another download of the same file if the number of allowed download attempts defined in the Attribute Settings is greater than ONE?

    Put another way, if the Attributes settings allow 4 downloads (even though the language used in the Admin pages indicates "downloads" not "download attempts"), are you really giving the customer the ability to download a file successfully four times if s/he were to try four times via Login and Profile>My Orders lookup?

    I realize that the if the Session used a credit card purchase that provided good funds, the transaction would be completable at the time of purchase and the Session would go away, I presume it would provide a completed order in the Admin files, not an Open Order. Is this also correct?

    Thanks for illuminating.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Download Redirect 403 Forbidden Server Error

    The attribute setting of "4 downloads" means the customer is allowed 4 download attempts, whether during their login session when they purchased, or by returning to their My Account order history at a later date, prior to the date of expiry which you may have also set as part of the attribute settings.
    And, yes, that means they *could* download successfully 4 times. Or, they could even start but fail to complete the download 4 times.
    After 4 attempts, their download link will be expired. To reset it for them, you can click the reset option in that order's details in your admin area.


    Again, none of this is related to solving a "403 forbidden" problem which you reported as your initial problem.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 26 Oct 2012, 04:17 PM
  2. 403 Forbidden when clicking my test download
    By Sel_888 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 5 Jan 2011, 06:43 PM
  3. 403 FORBIDDEN on product download
    By bilbothecat in forum General Questions
    Replies: 6
    Last Post: 4 May 2009, 07:40 AM
  4. '403 Forbidden Error' when trying to download product
    By rlfreshwater in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 Sep 2008, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg