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 pclzip_err_bad_format (-10) : Invalid archive structure
Thanks man, it worked!
i am really glad that it worked for you!
Thank You Nabeel! This works for me also.
Thanks for giving feedback. Its a pleasure to know that its working for you guys!
hi. great article!
thanks, I am glad that you liked it
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
thanks mate, just what i needed. im using wordpress mu btw, should this fix the same error there as well?
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.
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.
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.
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?
[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.
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.
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
I’m on a bluehost server…I’m gonna try a new installation now.
ok, lemme know how it went
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!
i am glad that you got it fixed :)
Thanks for sharing this.
Thanks for
your sharing, it’s very useful .I bookmarked your site!
Thanks, i am glad that you liked it.
I am glad that you found it helpful :)
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 :(
if you want my services to have a look at it do let me know.
I’m having the same problem with wordpress 3.0
were you able to fix your problem Dave?
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
disable the plugins and try again
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 !
thanks Stacy!
not fixed ..not worked…
did you try any fix? make sure your hosting have enough space too!
Recently I started to hate wordpress is incredible sometimes I spend a lot of time fixing stupid problems instead creating content.
You can hire a professional for managing wordpress related issue (I am available)
Where I can find http.php ? Coz I got the same problem
this post is meant for older wordpress versions actually
Please will you advise how you go about overwriting this file – I manage my own wordpress and dont know how to do this?
you probably don’t need to overwrite it, make sure your wordpress is up to date and that the server have disk space
Sadly, that gave me a white screen. Still searching …
What’s the exact issue that you are facing? Do you want me to fix it for you?