Archive

Posts Tagged ‘’256M’);’

One cause of “PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure”

February 24th, 2010 No comments

I’ve recently moved this blog onto a new VPS server in the UK, to improve my editing speed of other sites and most peopel looking at my blog are in the uk, It’s not to slow for the US or anywhere else anyway.

The point is when I tried to upgrade wordpress, or any plugins I got this error: “PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure”

Some quick googling shows that normally the error is due to a problem with the http.php file makeing corrupt archives. I tried the new version but to no avail, I was then looking at the sourse to see if it used a function I forgot to enable for some reason and saw this line in /wp-admin/includes/file.php (which contains the extracting function):

&ini_set('memory_limit', '256M');

Now the server only has 256MB at the moment, which is enouge for my use; but this will cause the above error unless it is lowed, I set to 128M with no problems.