Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Digital downloads issues (error 500)

    Hey,

    I couldn't find any reference to this specific issue through search or general browsing so if I missed something and this has already been addressed please let me know and I will go seek it out there.

    Anyway, here we go...

    I have installed ZC on my new host server, Linux based, and am getting it all set up very nicely. However, in testing things out I have encountered an issue with downloading digital product.

    The entire shopping experience comes off without a hitch until I get to the download portion of the event. Once I click the Download button I get an Internal Server Error 500.

    I have the cart configured stock except for its appearance which has been mostly modded via the admin control panel and some custom images, nothing major.

    The DL manager has green lights on all the files I am testing with so I know it can see them alright. I have dialogued (if you can call it that) with my host's tech support and they suggest A) checking all .htaccess files for OPTION and ErrorDocuments and to remove those refs and B) to default back to the out of the box 'look' of the cart.

    So I used the developer tools to search out the suggested lines and found nothing and I cannot fathom why the appearance of the cart while using the included modular controls to adjust it has anything at all to do with the issue at hand.

    If it makes any difference at all, I have the files in a sub-directory within the downloads folder but as I said, the lights are all green so I didn't think that should be an issue either.

    I had this working on my test host before I set this all up, using the exact same configuration/settings which leads me to believe that it is the host's issue, not mine, since that is the only real difference between the two situations.

    At this point I just need some help troubleshooting this out so I can call my host and beat them senseless with facts and get them to take some responsibility for their issues. If it ISN'T their fault then I would like some assistance tweaking this situation to make it go.

    Thanks in advance for any assistance and please let me know if any more/different info would be of assistance here.

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

    Default Re: Digital downloads issues (error 500)

    Your host was likely right about the .htaccess comment, because they've likely set up restrictions to prevent you from being able to control your own security.
    Look in your /pub/.htaccess file. There is a reference to Options there. Try removing that. It may or may not help.

    Alternatively, you could change your download method to streaming instead of redirect ... Admin->Configuration->Attribute Settings .... turn off redirect, and turn on streaming.
    .

    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
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Digital downloads issues (error 500)

    That seems to have done it actually. It is interesting how there are so many .htaccess files in this application and none of the help files are terribly specific on which ones need to be modified in order to affect certain changes.

    Maybe I am just that much of a PHP novice...

    Anyway, thank you for your assistance. Here's another question... If I put this block of code in the .htaccess file in my /download directory is the syntax correct for blocking visibility to the referenced file extensions?

    <Files *.mov, *.flv, *.wma, *.avi, *.mp4, *.zip>
    Order Deny,Allow
    Deny from all
    </Files>

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

    Default Re: Digital downloads issues (error 500)

    Quote Originally Posted by PaulLell View Post
    That seems to have done it actually. It is interesting how there are so many .htaccess files in this application and none of the help files are terribly specific on which ones need to be modified in order to affect certain changes.

    Maybe I am just that much of a PHP novice...
    .htaccess has nothing to do with PHP.
    It's an Apache Webserver thing.
    There are lots of tutorials about it online. Just google: Apache htaccess


    Quote Originally Posted by PaulLell View Post
    If I put this block of code in the .htaccess file in my /download directory is the syntax correct for blocking visibility to the referenced file extensions?
    No, if I'm not mistaken, you can't list multiple file extensions in one directive.

    But, why are you doing that anyway?
    The supplied .htaccess works around the security issue for the /downloads/ folder differently, by denying access to a directory listing, and also requiring authentication to browse files, with no accessible authentication, thus blocking everyone.

    Or, if it's real security you're after, maybe you should just make the folder inaccessible to browsers:
    https://www.zen-cart.com/tutorials/i...hp?article=280
    .

    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
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Digital downloads issues (error 500)

    Quote Originally Posted by DrByte View Post
    .htaccess has nothing to do with PHP.
    It's an Apache Webserver thing.
    There are lots of tutorials about it online. Just google: Apache htaccess



    No, if I'm not mistaken, you can't list multiple file extensions in one directive.

    But, why are you doing that anyway?
    The supplied .htaccess works around the security issue for the /downloads/ folder differently, by denying access to a directory listing, and also requiring authentication to browse files, with no accessible authentication, thus blocking everyone.

    Or, if it's real security you're after, maybe you should just make the folder inaccessible to browsers:
    https://www.zen-cart.com/tutorials/i...hp?article=280
    See how much of a novice I am? *laughs*

    As to the question of the download directory access, I just want to make it as impregnable as possible since that directory is going to be my bread and butter so to speak. I don't want any of that material getting wrenched out of there without payment.

    I had it set up in a different directory before but the download problem came up and I moved it back to default positioning as a troubleshooting step. Maybe I'll move it back again and see if the Dl still works smoothly now (thanks again for the assistance by the way).

 

 

Similar Threads

  1. v139h Error 500 on confirm order - also search engine issues
    By Black Dougall in forum General Questions
    Replies: 21
    Last Post: 22 Nov 2013, 04:07 AM
  2. Digital Downloads Error
    By maydeycom in forum General Questions
    Replies: 9
    Last Post: 13 Oct 2010, 06:30 AM
  3. Digital Downloads
    By mkyle in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 15 Jan 2009, 05:43 PM
  4. Large files downloads give 500 Internal Server Error
    By wcjmproducer in forum General Questions
    Replies: 9
    Last Post: 15 Feb 2008, 10:22 PM
  5. Digital Downloads
    By djdollar in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Jan 2008, 11:50 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