Post by ukdesigner » Mon Sep 02, 2013 2:00 am

I am developing a print selling site and purchased a Mod called Product Downloads http://www.opencart.com/index.php?route ... on_id=1738

The intended use is to place free artwork templates on each product page. So far so good got them uploaded and available to download.

I am offering three formats: .pdf (Acrobat), .indd (InDesign) and .qxp (QuarkXPress). Have ensured MIME types and file extensions are present in the System settings. There is also a download.php file with the Mod that resides in the catalog/controller/product directory and made sure this also has MIME types.

So can download all three file types okay. However the only one that will open after downloading is the PDF file. The other two types both give error messages stating "cannot be opened by this version" even though they were created in the same version.

The fact the pdf version works does not mean much as pdf is a standard option in Opencart.

1. Perhaps there is something else I need to do?
2. Is this a hosting issue with downloads via PHP?

The files do fully download and file sizes match the originals, but perhaps they are corrupted? FYI downloaded via FTP from the download folder and these open fine.

New member

Posts

Joined
Mon Sep 02, 2013 1:50 am

Post by butte » Wed Sep 11, 2013 2:58 am

You have two differing but overlapping threads, the other one apparently went somewhere, did that feed back onto this one or is this one orphaned and awaiting rescue? (http://forum.opencart.com/viewtopic.php ... 23#p433823)

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by ukdesigner » Wed Sep 11, 2013 4:54 am

I solved it myself as per the other thread:

Deleting this code in download.php fixed the issue for me.

// Clean the output buffer
$levels = ob_get_level();
for ($i=0; $i<$levels; $i++) {
@ob_end_clean();
}

New member

Posts

Joined
Mon Sep 02, 2013 1:50 am

Post by butte » Wed Sep 11, 2013 5:33 am

Good enough, you just f'got about this one; and congratulations. Go ahead and mark this one Solved, the other one is in an otherwise ongoing thread begun, as I recall, by someone else.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 40 guests