Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Problem Downloading products whose filename starts with #

    We're having a major issue here with customers trying to download purchased books, and getting error messages. When we had the books uploaded just as zip files, it worked fine. But now we've separated out all the file formats into epub, mobi, pdf, etc., and the books won't download.


    This is the error message we're getting:

    Forbidden
    You don't have permission to access /zencart/pub/.xlfbvtmnxuexokrusgnn-1354130851/AustinSoutherly-ReclaimedLove.mobi on this server.

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


    I presume that the /.xlfbvtmnxuexokrusgnn-1354130851 is because it's creating a secured or hidden url so that the book url can't be passed around...but why is it not downloading properly when the Attributes are set up properly (green button)?

    Please help...we're hosting a really big-selling book for a friend as a favor, and the sales are coming through fast and hot...but the customers can't download their books, so we're having to manually send copies to each person, which does not reflect well.

    Thank you!!

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

    Default Re: Major Problem Downloading Purchased Books

    Check the .htaccess files for something similar to:
    Code:
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
    there should be 2 in there ... see if adding your file extension(s) help ...
    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!

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Major Problem Downloading Purchased Books

    You probably need to adjust the .htaccess file in your "/pub" directory to allow files ending with "mobi". Handling for files ending with "mobi" are not included in the default installation.

    EDIT: Ajeh you are just too fast! ;)
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: Major Problem Downloading Purchased Books

    Lhungil, thank you for telling me where to find the correct version of .htaccess...I freaked when I looked at the one in the root directory and it was empty! LOL

    It says <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$"> which I presume is the default setting. So I should just add |azw3|fb2|mobi| etc at the end of the line, before the end-parenthesis?

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

    Default Re: Major Problem Downloading Purchased Books

    Be aware that there should be two lines with the similar details on them and both need the new extension(s) added to them ...
    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
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: Major Problem Downloading Purchased Books

    That did it...thank you both for your help!!!!!!!!!!!!!!!!!!!!!!!!!!! You guys ROCK!!!!!!!

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

    Default Re: Major Problem Downloading Purchased Books

    Thanks for the update that your downloads are working now that you adjusted the .htaccess file to work with your extension(s) ...
    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!

  8. #8
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: Major Problem Downloading Purchased Books

    I thought we had this problem licked, but it happened again today with a pdf file.

    Per your instructions a few days ago, I modified the .htaccess file in both places, and uploaded it...and just to be sure, I included both |pdf| and |PDF| in the lists of acceptable formats. I didn't know if it was case-specific, so better safe than sorry. I've also verified that the pdf actually exists on the server, it's properly attributed on the Attributes screen, all the capitalization is exactly the same on the file name and the Attribute, etc. And yet, when the customer tried to download the pdf file, she got the following error, just like what was happening before:

    Forbidden
    You don't have permission to access /zencart/pub/.psqpkszbvdmeoise-1354495264/ on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    When I logged into her account using the Encrypted Master Password module, and tried to download it myself as a test, I got the same error.

    Is it significant that the file name is not included in the error message? I noticed that it was the other day, when this first happened. The file name is #13-BestBuddies-Sinh,Becca.pdf.

    I manually sent her a copy of the file, so the problem is solved for now...but I sure would like to figure out why this happened so that I can get it fixed before another person tries to order a book, and can't download it.

    Thanks very much for your advice on this, it's greatly appreciated!!

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

    Default Re: Major Problem Downloading Purchased Books

    You are using special characters other than alpha, number, dash and underscore ...

    Try changing the filename to not include the # and possibly the comma in the name ...
    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!

  10. #10
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: Major Problem Downloading Purchased Books

    I was afraid that was the problem. *sigh* That's going to mean a ton of work, because all of her anthologies are numbered that way, and she has a couple hundred files that will need changing.

    The commas don't seem to be causing any trouble, because every file has the author name listed that way, and they're all downloading just fine. This is the first anthology segment that's been purchased since I converted all her files to multiple formats...so that would explain why all the other stories have been working fine but this one didn't.

    I can use Total Commander to quickly change all the file names on the server...is there a quick & easy way to do it on Zencart? A csv file or something along those lines that can be opened, edited, then re-uploaded that will make all the changes at once? *fingers crossed*

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Problem with downloading files after purchase
    By webmiss in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Jan 2012, 09:09 PM
  2. Starts with wrong domain host name
    By meshgraphics in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 20 Aug 2010, 10:40 AM
  3. Html starts with blank rows
    By tslav in forum General Questions
    Replies: 3
    Last Post: 17 Sep 2008, 10:28 AM
  4. problem with illegal characters in image upload filename
    By rosenblum68 in forum Bug Reports
    Replies: 0
    Last Post: 9 Nov 2007, 05:02 PM
  5. Problem with Downloading items
    By GTB in forum General Questions
    Replies: 0
    Last Post: 12 Sep 2007, 06:52 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