Download corrupt

Locked

Started by freya on 26 Sep 2007, 5:26 PM · Views: 20,177

Results 21 to 40 of 94
This thread is locked. New replies are disabled.
28 Sep 2007, 6:21 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Download corrupt

freya:

They are running PHP 5 and have customized their Apache for highest efficiency and stability. Not sure what that means about what they've done or how it would affect Zen Cart.

This is Siteground, btw.Perhaps you might ask them for a detailed list of changes they've made since around the time you first started getting complaints.

The goal is to find out what's suddenly caused downloads to no longer be delivered reliably since they made the changes.

.
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.

28 Sep 2007, 6:57 PM
#22
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

I was going to update from 1.3.2 to 1.3.7, but decided to do a new install instead as it seemed easier and less problematic, so that is what I did.

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

28 Sep 2007, 7:12 PM
#23
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

I was having some problems in the beginning, but then they fixed the symlink issue, so that's not a problem. They upgraded their servers, but it didn't affect my downloads. In any case, I have gone to streaming, but now people are getting errors that the files are not found when they are on the server, in the correct folder, and it shows in admin that they are there, AND I still have the corrupt file problem. I have zipped my files, although that really shouldn't be necessary as people download pdf files off the internet without a problem all of the time.

Should I reinstall Zen Cart? (Gah! Thinking about it makes me shudder. LOL) I'll do it if it might fix this mess.

Thanks,

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

28 Sep 2007, 7:18 PM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

I'm not optimistic that a re-install will make much difference, since I suspect the problem is a server thing.

However, you could test the theory by installing into a subdirectory, with a fresh set of files, and using a separate new temporary database. Then set up a couple products with downloads, and test. If the problem "does" go away, then maybe it's worth the re-install. Or at least worth doing a careful comparison of all your settings, etc.

.
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.

29 Sep 2007, 6:20 AM
#25
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

If it is an issue with the server translating Zen Cart, what do I do? Query them?

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 6:34 AM
#26
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

There are too many unknowns to be able to know exactly what's causing it.

You said it used to work reliably.

Your hosting company says they've changed some things.
But they won't tell you what. Most likely they don't even know exactly what.

So, they're just going to "pass the buck" and blame your software ... ie: Zen Cart.

If we knew what exactly they changed, we might have an idea of what to tell them to undo, or maybe even a way to write code to override the mess their changes have caused.

Since I doubt they're going to help you at all, any resolution is going to require a lot of research, including trial-and-error.

And, since the problem seems to be intermittent and cannot be repeated consistently "on demand", it's going to be a very tough one to solve.

But, if you can find a pattern, or narrow it down to certain specific conditions during which the downloads fail, there might be some hope.

.
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.

29 Sep 2007, 6:39 AM
#27
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

Some of the things we'll need to know are:

  • how is the file corrupted? -- ie: is it too short? or too long?
  • does it contain any extra characters, either at the top or the bottom?
  • does it happen with any file, or just specific ones?
  • what's common with respect to the failures? file sizes similar? file type? file extension?
  • is there any pattern to the browsers used?

You already mentioned earlier that you were:> I have been querying customers who've had download problems to see what browser, OS and internet speed they have to see if there is any correlation between these and the download issue.What sort of observations have you made?

.
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.

29 Sep 2007, 6:41 AM
#28
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

Do you have GZip compression enabled in Admin->Configuration->GZip ?
Is there any difference if you change the setting there?
Turning it off might be a help.

What is your setting in Admin->Tools->Server Info for "output_buffering" ? (go to that screen, and search for output_buffering, and report the values shown beside it).

.
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.

29 Sep 2007, 6:45 AM
#29
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

Okay. I have at least found why the file is said to be corrupt: There is HTML inserted at the end. For some reason, some computers can open it fine where others can't. The original files do not have HTML in them. What would cause a file to have HTML inserted into it?

I have informed my server about what is happening.

This still does not explain why some times files are not found.

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 7:04 AM
#30
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

Alright, this is what I have learned from my server:

As I am on a shared server, Apache is set to time out at after a certain time. I find this a bit upsetting as we have very few files larger than 1 MB. Even if someone buys say five books at a time that are 1 MB/book, you are only looking at a 5 MB download. Say a few other people are buying and downloading at the same time, this still shouldn't be that much of an issue. I never exceed my daily limit. We have decent sales, but nothing that should overtax the server or go past our limit (5000 GB/mo). It looks as if I will need a new host if this cannot be resolved. (sigh) I am not going to pay $89/month for a virtual private server when the file sizes are so small. We do not have enough product to warrant a private server.

Breathe, Marci. Breathe.

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 7:11 AM
#31
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

freya:

I am not going to pay $89/month for a virtual private server when the file sizes are so small. We do not have enough product to warrant a private server.I completely agree.
Downloading 1MB files shouldn't cause the need for a VPS.
However, a host who knows Zen Cart could be a much better place to spend your money, and not have to break the bank on a VPS.

.
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.

29 Sep 2007, 7:12 AM
#32
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

freya:

There is HTML inserted at the end. For some reason, some computers can open it fine where others can't. The original files do not have HTML in them. What would cause a file to have HTML inserted into it?THIS IS VERY IMPORTANT
What specific HTML ?

.
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.

29 Sep 2007, 7:15 AM
#33
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

After telling them the size of the files, they are saying that this is only with large files or slow download speed and it is probably browser or application related. How do you fix that? I zip them. Shouldn't they be safe from browsers and applications. I can't control those?

Has anyone else had issues with this and why can people download files from websites with direct links with no problem yet they have a problem with this?

I hope to have hair on my head still after all of this.

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 7:15 AM
#34
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

freya:

This still does not explain why sometimes files are not found.Agreed. That seems strange.
Can you explain that situation in more detail?
Does this happen around the same time as files getting corrupted?
Does it happen near the time of other downloads?
Or is it randomly happening even if only 1 download is attached to an order and no other downloads have been happening?

Does the "file not found" refer to an error message? or the absence of a download link?
Does it happen after a timeout? ie: click the download link, and wait 30 seconds, and then it times out saying file not found?

Anything else you can describe about it?

.
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.

29 Sep 2007, 7:20 AM
#35
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

In your collecting of information from customers affected have you determined whether any/many of these are downloading via dialup connections?
A 1MB file on dialup can be a lengthy process, but shouldn't kill things.

If you have a lot of dialup users (or otherwise using slow connections), then you might be best advised to use Download-By-Redirect, and turn off Download-by-Streaming.
The streaming method uses PHP processes, and if your server has a short PHP max-execution-time, things will be cut short.

What is the max_execution_time setting in Admin->Tools->Server Info ?
What is your setting in Admin->Configuration->My Store->Admin Set max_execution_time for processes ?

.
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.

29 Sep 2007, 7:23 AM
#36
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

HTML of the file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Your Download ... : Wild Child Publishing Store, A Quality eBook and Print Publisher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="eBooks Books In Print fiction ebooks, fiction print books, wild child publishing store, print publisher, electronic book publisher Your Download ..." />
<meta name="description" content="Wild Child Publishing Store : Your Download ... - eBooks Books In Print fiction ebooks, fiction print books, wild child publishing store, print publisher, electronic book publisher" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="The Zen Cart™ Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" />
<meta name="robots" content="noindex, nofollow" />

<base href="http://www.wildchildpublishing.com/store1/" />

<link rel="stylesheet" type="text/css" href="includes/templates/XXX/css/stylesheet_new.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/XXX/css/stylesheet_original.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/XXX/css/print_stylesheet.css" />
</head>

<body id="downloadBody">

<div id="mainWrapper">
    <table class="centershop" border="0" cellspacing="0" cellpadding="0">
      <tr><td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="headerNavigation">
          <tr>
            <td align="left" valign="top" width="35%" class="headerNavigation">
              <a href="http://www.wildchildpublishing.com/store1/index.php?main_page=index">Home</a> | 
              <a href="https://www.wildchildpublishing.com/store1/index.php?main_page=logoff">Log Out</a> | 
              <a href="https://www.wildchildpublishing.com/store1/index.php?main_page=account">My Account</a>
            </td>
            <td align="center" width="30%" class="headerNavigation"></td>
            <td align="right" valign="top" width="35%" class="headerNavigation">
            </td>
          </tr>
        </table>
        <table border="0" width="100%" cellspacing="0" cellpadding="0" class="header">
          <tr><!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
            <td valign="middle" height="64px" width="192px">
<a href="http://www.wildchildpublishing.com/store1/index.php?main_page=/FILENAME_XXX/"><img src="includes/templates/XXX/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce" title=" Powered by Zen Cart :: The Art of E-Commerce " width="760" height="140" /></a>            </td>
          </tr>
        </table>
<!--bof-optional categories tabs navigation display-->
<div id="navCatTabsWrapper">
<div id="navCatTabs">
<ul>
  <li><a class="category-top" href="http://www.wildchildpublishing.com/store1/index.php?main_page=index&cPath=65">eBooks</a> </li>
  <li><a class="category-top" href="http://www.wildchildpublishing.com/store1/index.php?main_page=index&cPath=67">Books In Print</a> </li>
</ul>
</div>
</div>
<!--eof-optional categories tabs navigation display-->

<!--bof-header ezpage links-->
<div id="navEZPagesTop">
  <a href="http://www.wildchildpublishing.com/store1/index.php?main_page=page&id=9&chapter=0">Privacy Notice</a>
</div>
<!--eof-header ezpage links-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
  <tr>

 <td id="navColumnOne" class="columnLeft" style="width: 100px">
<div id="navColumnOneWrapper" style="width: 100px"></div></td>
    <td valign="top">
<!-- bof  breadcrumb -->
    <div id="navBreadCrumb">Home
</div>
<!-- eof breadcrumb -->


<br />
<b>Warning</b>:  main(includes/templates/template_default/templates/tpl_download_default.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/XXX/XXX/XXX/store1/includes/templates/XXX/common/tpl_main_page.php</b> on line <b>115</b><br />
<br />
<b>Warning</b>:  main(includes/templates/template_default/templates/tpl_download_default.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/XXX/XXX/XXX/store1/includes/templates/XXX/common/tpl_main_page.php</b> on line <b>115</b><br />
<br />
<b>Warning</b>:  main(includes/templates/template_default/templates/tpl_download_default.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/XXX/XXX/XXX/store1/includes/templates/XXX/common/tpl_main_page.php</b> on line <b>115</b><br />
<br />
<b>Fatal error</b>:  main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_download_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/XXX/XXX/XXX/store1/includes/templates/XXX/common/tpl_main_page.php</b> on line <b>115</b><br />

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 7:27 AM
#37
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

Here is my server info:

Server Host: serv01.siteground12.com (67.15.245.3) Database Host: localhost (127.0.0.1)
Server OS: Linux 2.6.19.2-grsec-sg4 Database: MySQL 4.1.22-standard-log
Server Date: 09/29/2007 02:25:31 Database Date: 09/29/2007 02:25:31

Server Up Time: 02:25:31 up 35 days, 12:19, 1 user, load average: 4.62, 3.40, 4.44

The corruption happens even w/DSL & cable.

My execution time was set to 60, which could be the problem. I have increased it to 480. Eight minutes should be enough, right?

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 7:33 AM
#38
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Download corrupt

And you're saying that all that HTML is being added to the end of the downloaded files?

.
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.

29 Sep 2007, 7:36 AM
#39
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

Mind boggling, isn't it?

I don't know about all downloaded files, but certainly this "corrupted" one. The one I downloaded, no. Let me zip and see, but I still don't think zipping the PDF should make the difference.

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

29 Sep 2007, 7:48 AM
#40
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: Download corrupt

How do I test downloads if I don't have any problems with them?

I'll see if my friend can do it who had the problem, but she is only one.

Thanks!

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...