Results 1 to 8 of 8
  1. #1
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    application error Downloads do NOT work for me

    Cheers,

    I have set up Zen v1.3.7 following all instructions. Currently the only products are files available for download. The files are in the /download directory with the proper permissions as per [1].

    A friend was helping me test. He successfully completed his checkout, the money came through PayPal fine. However the link provided to him for download resulted in a 500 Internal Server Error.

    Here are lines from the Apache error log:

    Code:
    [Tue May 01 13:10:23 2007] [alert] [client 8.8.8.8] /home/user/www/domain.com/directory/cart/pub/.htaccess: IndexIgnore not allowed here, referer: http://www.domain.com/directory/cart/index.php?main_page=checkout_success
    
    [Tue May 01 13:11:20 2007] [alert] [client 8.8.8.8] /home/user/www/domain.com/directory/cart/pub/.htaccess: IndexIgnore not allowed here, referer: http://www.domain.com/directory/cart/index.php?main_page=account_history_info&order_id=2
    /cart/pub/.htaccess:
    Code:
    #prevent directory browsing -- for security
    IndexIgnore */*
    
      Options +FollowSymLinks -Indexes
    /cart/download/.htaccess:
    Code:
    #prevent directory browsing -- for security
    IndexIgnore */*
    
    AuthType Basic
    AuthName "No access"
    AuthUserFile .htnopasswd
    AuthGroupFile /dev/null
    Require valid-user
    I followed all the instructions I could find in setting up the products with the configuration and everything. Any help is appreciated!


    [1]. http://www.zen-cart.com/forum/showpo...64&postcount=4

  2. #2
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Downloads do NOT work

    Just wanted to mention the attribute settings:

    Configuration > Attribute Settings
    Code:
    Title                 Value
    Enable Downloads                 true
    Download by Redirect                 true
    Download by streaming                 false
    Download Expiration (Number of Days)                 0
    Number of Downloads Allowed - Per Product                 5
    Downloads Controller Update Status Value                 4
    Downloads Controller Order Status Value >= lower value                 2
    Downloads Controller Order Status Value <= upper value                 4
    Enable Price Factor                 true
    Enable Qty Price Discount                 true
    Enable Attribute Images                 true
    Enable Text Pricing by word or letter                 true
    Text Pricing - Spaces are Free                 1
    Read Only option type - Ignore for Add to Cart                 1

  3. #3
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Downloads do NOT work

    Might be relevant to mention that I followed these instructions when adding the downloads:

    https://www.zen-cart.com/tutorials/index.php?article=71

  4. #4
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Downloads do NOT work

    Might also be worth mentioning that these directions were followed as well:
    https://www.zen-cart.com/tutorials/index.php?article=57

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Downloads do NOT work

    Some servers are not setup to allow for the .htaccess for the symbolic links to function correctly ...

    Could you check with your host about this?

    If they will not allow you to control your own domain then you will need to turn off the Redirect ... while this is less secure, it should correct your problem if all else is setup correctly ...

    If your downloads are large, you may also have size or timeout issues ... which again you will need to speak to your hosting site about ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Downloads do NOT work

    Thank you for the reply.

    I think you're on to something here. I made a separate directory ([FONT=Courier New]/htaccess[/FONT]), then a file located two subdirectories below that ([FONT=Courier New]/htaccess/temp/.asdf/file1.txt[/FONT]). A symlink was placed in /htaccess ([FONT=Courier New]ln -s /htaccess/temp/.asdf/file1.txt /htaccess/file1.txt[/FONT]), and the same .htaccess file under /pub in Zen Cart was dropped into the testing /htaccess directory. When requesting /htaccess/file1.txt in the browser, the result was the same behavior as with the product download.


    Next step seems to be finding the proper configuration to allow Apache to properly follow the symbolic links. In the vhost config, I have:
    Code:
    DocumentRoot /home/user/www/domain.com
    <Directory />
        Options +FollowSymLinks
        AllowOverride AuthConfig
    </Directory>
    
    <Directory /home/user/www/domain.com>
        Options -Indexes +FollowSymLinks MultiViews
        AllowOverride Authconfig
        Order allow,deny
        allow from all
    </Directory>
    At first there was not a + before FollowSymLinks, however adding the plus and restarting the httpd did not seem to change the behavior. Feel free to provide any helpful links or suggestions. Thanks again

  7. #7
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Downloads do NOT work

    Appears that I've fixed it. Unfortunately I'm not certain on the full reason, but my hypothesis is that the .htaccess somehow disagreed with the vhost configuration. What I did was
    Code:
    mv /pub/.htaccess /pub/.NOThtaccess
    The vhost configuration:
    Code:
    DocumentRoot /home/user/www/domain.com
    <Directory />
        Options FollowSymLinks
        AllowOverride AuthConfig
    </Directory>
    
    <Directory /home/user/www/domain.com>
        Options -Indexes FollowSymLinks MultiViews
        AllowOverride Authconfig
        Order allow,deny
        allow from all
    </Directory>
    Thanks for the suggestions Ajeh!

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Downloads do NOT work

    Glad that this helped you get it working ...

    I am not into server configuration ... I leave that to my server guru to worry about ... so I cannot really elaborate much on this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Video Product downloads don't work for .mp4 ?
    By NadiaUSA in forum General Questions
    Replies: 1
    Last Post: 18 Sep 2013, 05:13 PM
  2. Free shipping option for US does not work for NY
    By imen in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 11 Aug 2011, 04:27 AM
  3. SSL urls work for certain links but not for others
    By jayamohan in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 17 Apr 2010, 07:29 PM
  4. Will downloads work if they were made for a previous version?
    By sassayone in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 28 Sep 2006, 04:40 AM

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