To post a new support question, click the Post New Topic button below.
Current Version: 4.8.5 | Sytist Manual | Common Issues | Feature Requests
Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.
Download File Empty Error
K
Kenneth Leek
26 posts
Fri Apr 03, 15 6:12 AM CST
Hey guys, hoping someone can help quickly.
After a customer has bought a single download the order goes through no problems but when they download the file and try to open it, they are getting an error message stating:
"can't display this picture because the file is empty"
I have had a quick look for any other posts regarding this but couldn't find anything, so apologies if this has already been covered somewhere.
Not sure what customer is using yet but on my own test, same error comes up using Windows Desktop PC. Again file downloads from order made but file is empty and cannot open.
After a customer has bought a single download the order goes through no problems but when they download the file and try to open it, they are getting an error message stating:
"can't display this picture because the file is empty"
I have had a quick look for any other posts regarding this but couldn't find anything, so apologies if this has already been covered somewhere.
Not sure what customer is using yet but on my own test, same error comes up using Windows Desktop PC. Again file downloads from order made but file is empty and cannot open.
Tim - PicturesPro.com
16,151 posts
(admin)
Fri Apr 03, 15 8:41 AM CST
When you uploaded the photos, did you by chance select to discard the original files?
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
K
Kenneth Leek
26 posts
Fri Apr 03, 15 4:28 PM CST
Dont think so Tim, but does sound likely! Will check it out now.
Thanks
Thanks
D
Derek O'Leary
25 posts
Tue Sep 10, 19 4:30 PM CST
I get the same problem, where the jpeg is empty.
I actually "replace" the file with a new file, and still get the same error
I actually "replace" the file with a new file, and still get the same error
Tim - PicturesPro.com
16,151 posts
(admin)
Wed Sep 11, 19 9:07 AM CST
No clue as to why you would be getting that error unless the discard original is checked. You would have to email me the link to your Sytist admin, FTP access (username and password) and also where to test to download where it produces an empty JPG so I can look into it.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
B
Benoit Champagne
58 posts
Tue Jun 07, 22 7:27 PM CST
Hi,
I know this is an old topic, but searching I cannot find and answer for what is basically the same problem. The client downloads work fine when done using Chrome for example. But an empty file is received when using Safari on OSX. Was the problem above resolved and if so, how ? Wondering if it can be the same cause.
PS: The problem happens regardless if the file is on S3 or local. And I also uploaded a new file (replace). Always works with Chrome.
I know this is an old topic, but searching I cannot find and answer for what is basically the same problem. The client downloads work fine when done using Chrome for example. But an empty file is received when using Safari on OSX. Was the problem above resolved and if so, how ? Wondering if it can be the same cause.
PS: The problem happens regardless if the file is on S3 or local. And I also uploaded a new file (replace). Always works with Chrome.
Tim - PicturesPro.com
16,151 posts
(admin)
Wed Jun 08, 22 5:52 AM CST
Added in Sytist 3.8.2
In some cases (depends on the server environment) you can have failed or incomplete downloads on Apple products (safari, iphone). But not all. If you have that issue and maybe I have sent you files in the past to work around it, you can now edit your sy-config.php file and add this line of code:
$setup['do_not_use_content_length_header_download'] = true;
In some cases (depends on the server environment) you can have failed or incomplete downloads on Apple products (safari, iphone). But not all. If you have that issue and maybe I have sent you files in the past to work around it, you can now edit your sy-config.php file and add this line of code:
$setup['do_not_use_content_length_header_download'] = true;
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
B
Benoit Champagne
58 posts
Wed Jun 08, 22 5:55 AM CST
Hi Tim,
Thanks for the reply. However, I did add this line and I even commented out the targeted lines. But it still happens nonetheless. Which is why I was searching for another possible cause and/or fix.
Any idea ?
Thanks for the reply. However, I did add this line and I even commented out the targeted lines. But it still happens nonetheless. Which is why I was searching for another possible cause and/or fix.
Any idea ?
Tim - PicturesPro.com
16,151 posts
(admin)
Wed Jun 08, 22 5:56 AM CST
That is the fix for it. What line did you comment out? In the download file?
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
B
Benoit Champagne
58 posts
Wed Jun 08, 22 6:05 AM CST
First, I added the option in the sy-config.php file. Did not work. Then I commented out these in freedownload.php :
// set the original DPI into the copy
imageSetDPI($tmp, imageGetDPI($theImagePath));
//if($setup['do_not_use_content_length_header_download'] !== true) {
// header("Content-Length: ".@urldecode(@filesize($tmp)));
//}
// return the copy
@readfile($tmp);
// discard the temp file
@unlink($tmp);
}
// ... otherwise, just return the original (uses NO GD so faster, no memory use)
else
//if($setup['do_not_use_content_length_header_download'] !== true) {
// header("Content-Length: ".@urldecode(@filesize($theImagePath)));
//}
@readfile($theImagePath);
That did not work either.
Is there another place that could affect the download ?
// set the original DPI into the copy
imageSetDPI($tmp, imageGetDPI($theImagePath));
//if($setup['do_not_use_content_length_header_download'] !== true) {
// header("Content-Length: ".@urldecode(@filesize($tmp)));
//}
// return the copy
@readfile($tmp);
// discard the temp file
@unlink($tmp);
}
// ... otherwise, just return the original (uses NO GD so faster, no memory use)
else
//if($setup['do_not_use_content_length_header_download'] !== true) {
// header("Content-Length: ".@urldecode(@filesize($theImagePath)));
//}
@readfile($theImagePath);
That did not work either.
Is there another place that could affect the download ?
B
Benoit Champagne
58 posts
Wed Jun 08, 22 6:10 AM CST
Btw, I opened up the said file ... turns out it is not 0 k like before. But here is what it contains.
It is in fact a directory. An empty one. I'm wondering if Safari is not transferring an empty ZIP file, uncompressing it resulting in an empty directory. The file (or directory as it turns out) has the name of the file, plus the time and the string ".download" Like what happens when Safari cannot download something.
ex : 220501_11371.jpg.download 20-22-26-810.download
It is in fact a directory. An empty one. I'm wondering if Safari is not transferring an empty ZIP file, uncompressing it resulting in an empty directory. The file (or directory as it turns out) has the name of the file, plus the time and the string ".download" Like what happens when Safari cannot download something.
ex : 220501_11371.jpg.download 20-22-26-810.download
Tim - PicturesPro.com
16,151 posts
(admin)
Wed Jun 08, 22 6:37 AM CST
Email me the file you downloaded so I can look at the contents.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
Please log in or Create an account to post or reply to topics.
Loading more pages