WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] incompatible_archive; PCLZIP_ERR_BAD_FORMAT : Unable to find End (3 posts)

  1. msolution
    Member
    Posted 1 year ago #

    Error: incompatible_archive => PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

    im trying to update my own plugin from my site,

    when i give it a direct link to the new zip file alls well,
    but when i want to cloak it , it gives the above error

    http://domain.com/pluginlink/{username}/plugin.zip

    and im intercepting ( on wordpress ) on 'init', and checking if file exists, and then using readfile.

    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename='.basename($file));
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');
    header('Content-Length: ' . filesize($file));
    readfile($file);
  2. msolution
    Member
    Posted 1 year ago #

    == -- sorry -- please delete thread, it worked out ok -- ==

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    We don't delete posts here, but I'll mark it resolved.

    http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.