+44 (791) 5698 086

[Solved]Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure

With the release of wordpress 2.8 there was an error while installing some plugins on the wordpress from admin panel. This error was not fixed till wp 2.8.1

When the admin tries to install the plugi, it gives the following error:

Installing Plugin: —————–

Downloading install package from http://———————-.com

Unpacking the package.

Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure

The error can be solved by downloading this new http.php file from official WordPress site and over writing it on your current file (make sure to backup your current http.php file).

https://core.trac.wordpress.org/export/11450/trunk/wp-includes/http.php

Hope it solves the issue.

Please note, if you have recently upgraded your wordpress and are getting this issue (if you have solved it last time) make sure that you have replaced the http.php file in your wordpress with the above file again.

Update: Stacy commented:

Hey guys, I found out that this error is also caused by a full directory in cpanel. Make sure you have enough disk space :) good luck !

Hopefully this will solve the issue with wordpress sayingIncompatible archive

41 Responses to [Solved]Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure

  1. Ståle

    Thanks man, it worked!

    • Nabeel

      i am really glad that it worked for you!

  2. owen

    Thank You Nabeel! This works for me also.

    • Nabeel

      Thanks for giving feedback. Its a pleasure to know that its working for you guys!

  3. plairltag

    hi. great article!

    • Nabeel

      thanks, I am glad that you liked it

  4. Dee

    It didn’t work for me unfortunately. I still get
    Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

  5. nztraveller

    thanks mate, just what i needed. im using wordpress mu btw, should this fix the same error there as well?

  6. Nabeel

    hopefully it should (didn’t try myself though) you can try it and confirm it to us too.

    please make sure that you make the backup of your current file before replacing it.

  7. Hans

    I’m getting the same error when trying to update plugins and reinstall wordpress, but I’m using wordpress 2.9, and the http.php file replacement didn’t work for me.

    • Nabeel

      a quick test could be to install a new wordpress 2.9 in a new directory/subdirectory on your same server and see if same action gives the error on it too.

  8. Hans

    Good call! Attempts to update plugins on another blog of mine result in the same error.

    Hmmm…I was messing with the php.ini file today, could that have done it?

    • Nabeel

      [did you try the fresh install of wp 2.9 instead of upgrade version?]

      this could be the issue with php settings and file size restrictions.

      • Hans

        No, I only attempted the plugin updates on an existing WP 2.9 installation which did not have this issue yesterday. Now I tried restoring the default php.ini file and lost all access to the wp backend…the site still works, though.

        • Nabeel

          then try installing new wp 2.9 first and make it work. Once its successful then move on to upgraded ones.

          whats the server that you are using?

          do you have messenger? lemme know ill add ya if you need professional service

          • Hans

            I’m on a bluehost server…I’m gonna try a new installation now.

          • Nabeel

            ok, lemme know how it went

          • Hans

            I never actually got around to installing a new wp. I switched my php configuration from FastCGI to regular PHP. Then I found the whitespace at the top of my wp-config.php file which was crashing the backend. Once I got back in, I was able to update the plugins and move back to FastCGI. Thanks for pointing me in the right direction!

          • Nabeel

            i am glad that you got it fixed :)

  9. RFID Reader

    Thanks for sharing this.

  10. Summail

    Thanks for

    your sharing, it’s very useful .I bookmarked your site!

    • Nabeel

      Thanks, i am glad that you liked it.

    • Nabeel

      I am glad that you found it helpful :)

  11. Boon

    Sorry didn’t help me, I started getting errors trying to upgrade plugins, first it wanted an FTP user and pass, then it couldn’t find the wp-content directory, now it cant unpack plugins….

    IT WAS WORKING FIND A FEW DAYS AGO!!!

    This solution didn’t quite help me, I think there may be a problem on the server side in my case :(

    • Nabeel

      if you want my services to have a look at it do let me know.

  12. Dave @ Web Hosting Coupons

    I’m having the same problem with wordpress 3.0

    • Nabeel

      were you able to fix your problem Dave?

  13. Master

    Oops…must have messed with something. Getting new error now. In the admin section I can’t see anything except the below error

    Fatal error: Cannot redeclare class WP_Http in /home/…/public_html/blog/wp-includes/class-http.php on line 38

    • Nabeel

      disable the plugins and try again

  14. Stacy Steele

    Hey guys, I found out that this error is also caused by a full directory in cpanel. Make sure you have enough disk space :) good luck !

    • Nabeel

      thanks Stacy!

  15. ram

    not fixed ..not worked…

    • Nabeel

      did you try any fix? make sure your hosting have enough space too!

  16. RCC

    Recently I started to hate wordpress is incredible sometimes I spend a lot of time fixing stupid problems instead creating content.

    • Nabeel

      You can hire a professional for managing wordpress related issue (I am available)

  17. blezzme

    Where I can find http.php ? Coz I got the same problem

    • Nabeel

      this post is meant for older wordpress versions actually

  18. Paul Pearson

    Please will you advise how you go about overwriting this file – I manage my own wordpress and dont know how to do this?

    • Dr. Nabeel

      you probably don’t need to overwrite it, make sure your wordpress is up to date and that the server have disk space

  19. Stebro

    Sadly, that gave me a white screen. Still searching …

    • Nabtron

      What’s the exact issue that you are facing? Do you want me to fix it for you?

Leave a Reply

Your email address will not be published. Required fields are marked *

Who are we?

Nabtron team includes web, desktop software and mobile apps developers along with SEO professionals.

We are available 24 hours, 7 days a week. Contact us now for anything you need!

Join our mailing list

Lets become friend :) What's your name & email?