Problem: PCLZIP_ERR_BAD_FORMAT (-10)

Problem: PCLZIP_ERR_BAD_FORMAT (-10)

by Adam Frederick -
Number of replies: 5
I created a program that automated course creation based on a larger text. There appeared to be no problems with the creation. As I did this all on a test server, I wanted to try to move the courses to a non-test server. However, I found that when trying to restore these courses from a backup, I get the following error:

PCLZIP_ERR_BAD_FORMAT (-10) : Invalid End of Central Dir Record size : 17

Now, I realize that it would be nearly impossible to diagnose the problem exactly without a full understanding of the integration to the two programs (moodle and other), but, I was wondering if anyone knew of any documentation surrounding this error.
Average of ratings: -
In reply to Adam Frederick

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

by Adam Frederick -
Closing subject. Had to do with test server zip tool.
In reply to Adam Frederick

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

by Adam Frederick -
Just for anyone who encounters this error: If are having problems with corrupted xml files and problems using server unzip utilities, check to see if mbstring.func_overload = x in the php config file is on. If it is, and you are using phpmyadmin, it has the potential to corrupt the database, so turn it off with a semicolon.
In reply to Adam Frederick

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

by Paul Taylor -
Hi Adam: I had this problem some time ago with Moodle and Mambo. I commented out the line relating to -10 error in the pclzip file. It still worked, but I never got the error. Not ideal I know. Paul
In reply to Paul Taylor

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

by Simone Wachtel -
Hi there,

now this problem occured again:

PCLZIP_ERR_BAD_FORMAT (-10) : Invalid End of Central Dir Record size : 7

I tried to unzip a backup of version 1.8.2. to 1.9.4.+

When I try to restore, I get the following error message:
Error unzipping backup file. Invalid zip file.
An error has ocurred

What can I do?

Greetings from Germany,
Simone

In reply to Simone Wachtel

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

by Sebastian Tennant -
Did you a find a solution to this problem?

I'm now experiencing the same thing.

Seb