Problem: PCLZIP_ERR_BAD_FORMAT (-10)

Problem: PCLZIP_ERR_BAD_FORMAT (-10)

par Adam Frederick,
Nombre de réponses : 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.
Moyenne des évaluations: -
En réponse à Adam Frederick

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

par 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.
En réponse à Adam Frederick

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

par 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
En réponse à Paul Taylor

Re: Problem: PCLZIP_ERR_BAD_FORMAT (-10)

par 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