Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2015
    Location
    Us
    Posts
    8
    Plugin Contributions
    0

    Default Question about problem download ?

    Hello everyone!

    This is going to be a bit long, but please bear with me. Most downloads work just fine. Occasionally, they don't, and I can't seem to find any rhyme or reason to why some don't. But...I've got one customer working with me to try to fix this. She's taken a bunch of screen shots for me, so I can see what she sees.

    She tried to purchase Book A in .mobi. When she tried to press the download button, she didn't get the pane to save. Instead she was informed that she didn't have permission to access the file on this server, though the purchase shows (with file type) in her purchases, and there are no problems on the sale end. In addition, there was an error code below it that said a 404 error was encountered when trying to use an Error Document to handle the request. Now, mind you, the download manager shows all file types/names as green lighted, so it's not an error in the file name causing this. Additionally, she purchased the same title in PDF, and PDF worked fine, first shot, when Mobi wouldn't work, most times she tried it.

    She went back in and (at my urging) tried to save the target as instead of pressing the button. The few times I've gotten the don't have permission error (yes, this sometimes happens to people who otherwise have no problems, which tells me it's not linked to OS or browser), that has worked for me...or reloading the page and then using the right click to save target as works. In her case, she clicks to save target as, and the pane to save does not open. She gets stuck at that point and cannot download.

    She finally did get the Mobi to download, at one point, at which point, she encountered ANOTHER error. Namely, it wouldn't open on her Kindle. As a test, she tried to open it in Calibre, and she got a bunch of errors...and the book wouldn't open. I sent her the same copy I loaded on the download folder of the Zen Cart, and it opens fine in Calibre and on the Kindle. When she compared the two files (SUPPOSEDLY the same file) on Calibre, she noted that Calibre sees it as three subfiles for the one that opens (book, cover, and metadata...all bundled together in the .mobi file) and two much smaller subfiles (book and metadata...both smaller than the listing for the one that opens) for the one that doesn't open. Also, when viewing the list of files in Calibre pane, the one I sent her (the one that opens) shows all it's metadata, but the one that doesn't open has blank metadata.

    This leads me to the conclusion that, in addition to not allowing customers to download the file, it's also SCRAMBLING or TRUNCATING the file loaded onto the download folder in Zen Cart somehow and for some reason.

    Now, we weren't sure this was a Zen Cart issue the first day, but she's just encountered the SAME issues from another publisher using Zen Cart, which tells me it's definitely Zen Cart-related. Whatever this is, both the download problems and the file problems are repeatable. I believe all the errors we've seen so far were on Mobi and ePub files. PDF seems to go smoothly, as do other formats.

    Does ANYONE have an idea what might be going wrong and how to fix this? If several formats won't download properly, I will never get the home site sales platform up and sustaining itself, and all my income will end up coming from third party distribution channels. HARDLY ideal.

    Author: internet việt nam
    Have a nice day.
    Công ty Du lịch việt website >> https://dulichviet.net.vn/https://jobs.drupal.org/company/15207https://www.scout.org/user/2802935 chuyên dịch vụ viễn thông và du lịch.

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Question about problem download ?

    Have you edited the .htaccess file in the /download folder to include mobi and MOBI file extensions? Is your epub file extension used all lower case or ePub? You might need to account for that too.

    Code:
    # deny *everything*
    <FilesMatch ".*">
      Order Allow,Deny
      Deny from all
    </FilesMatch>
    
    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>
    
    <IfModule mod_headers.c>
      <FilesMatch ".*\.(zip|ZIP|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
        # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
        # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
        # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
        ForceType application/octet-stream
        Header set Content-Disposition attachment
      </FilesMatch>
    </IfModule>
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Question about problem download ?

    I found something that may relate other than the 404 errors, but specifically to the mobi and ePub files.

    http://manual.calibre-ebook.com/faq....droid-ipad-etc

    About a quarter of the way down. Discusses something about making/tagging the file as a personal document which also explains why the file when emailed "works" but when downloaded may not in calibre.

    Only thoughts I have on the 404 is something to do with the .htaccess files in the download and pub directories and method of providing the files whether by link or otherwise. Also, if the various server path works 100% of the time as provided or if it was entered as one of the many paths that are a result of resolving the path.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Question about a fresh download of Zencart files
    By beyre in forum General Questions
    Replies: 4
    Last Post: 6 Aug 2009, 04:04 PM
  2. Question About the Download Relocation FAQ
    By zglider in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 17 Mar 2009, 12:35 AM
  3. Quick question about Digital Download site.
    By tomato in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jun 2007, 09:33 AM
  4. question about uploading files to be download
    By mlbracewell in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jan 2007, 07:24 PM
  5. question about download products
    By sergiojg in forum General Questions
    Replies: 2
    Last Post: 6 Jun 2006, 07:37 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