• vanduzled

    (@vanduzled)


    This plugin is what I need for my image gallery. However, after I pressed the download button, the zip file cannot be opened.

    It would say
    Error: The archive is either unknown format or damaged

    I also tried this on the twentyfifteen theme with no success. Tried as a shortcode and as function on the template.

    Are there any solutions?

    P.S.

    The download times works. It’s just that the zip file is not working.

    https://www.ads-software.com/plugins/zip-attachments/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    So it shows the error once the zip is downloaded and you try to open it, right?

    It doesn’t really matter what theme or what method do you use for showing the button. It’s gotta be something with the server.

    I coded this a while ago and I’m not sure how to debug it.

    Thread Starter vanduzled

    (@vanduzled)

    It show the error when I opened the zip. The zip can be downloaded but it’s only like 1kb. And when I open it, it gives me an error.

    I also tried it on my localhost using xampp, but still the same.

    Should it also work on localhost? What could be the problem?

    thanks.

    Plugin Author Ricard Torres

    (@quicoto)

    I wouldn’t know.

    Are the images actually attached to the post or are they uploaded to the media gallery and then inserted into the post?

    Thread Starter vanduzled

    (@vanduzled)

    Yes they are attached to the post tried it again on localhost with the default theme but still no luck ??

    Plugin Author Ricard Torres

    (@quicoto)

    Like I said the theme has nothing to do, it must be related to the server configuration (local server and production).

    I would suggest trying another plugin.

    Regards.

    Hi vanduzled,

    In my case removing this piece of code header('Content-Length: ' . filesize($file)); from the download.php file solved the problem. Hope this helps.

    Seem to be having the same problem. Removing

    header(‘Content-Length: ‘ . filesize($file));

    Did not work.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error: The archive is either unknown format or damaged’ is closed to new replies.