WordPress said: PCLZIP_ERR_BAD_FORMAT (-10)
October 22, 2009 | otherauthor: Karol Zielinski | comments: 1 | views: 1549
Tags: overload, pclzip, php, wordpress, zip
I had an issue… I couldn’t upgrade my WordPress to 2.8.5 because of an error: ‘PCLZIP_ERR_BAD_FORMAT (-10)’. What is it and how to fix that problem?
Answer is really simple:
comment mbstring.func_overload in your php.ini!
I was fighting with that for a few days… now I know that it was the problem.
What is mbstring.func_overload? From the php.ini:
overload(replace) single byte functions by mbstring functions.
mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
etc. Possible values are 0,1,2,4 or combination of them.
For example, 7 for overload everything.
0: No overload
1: Overload mail() function
2: Overload str*() functions
4: Overload ereg*() functions
And some more informations about overloading you can find on php.net.
After you comment this line in php.ini – restart your web server.
Hello, I'm Karol Zielinski, internet evangelist, an entrepreneur, project manager and a web developer from Gdynia, Poland. I like creative design, good advertisement, social media and all kind of stuff around the web.
December 3, 2009, 7:39 am
[...] tech.karolzielinski.com Follow us on Twitter 1,510 śledzących RSS Feed 162 czytelników WordPress said: PCLZIP_ERR_BAD_FORMAT (-10) 1 głosuj! I had an issue… I couldn’t upgrade my WordPress to 2.8.5 because of an [...]