Title: Error while extracting the zip file using php ziparchive
Last modified: August 31, 2016

---

# Error while extracting the zip file using php ziparchive

 *  [jatsptl2014](https://wordpress.org/support/users/jatsptl2014/)
 * (@jatsptl2014)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/)
 * Hi there,
 * Got the below error while using WP Clone.
 * The plugin encountered an error while extracting the zip file using php ziparchive,
   the following error message was returned:
 * Image Link: [http://imgur.com/Jes5Lr6](http://imgur.com/Jes5Lr6)
 * Thanks,
    Jatin
 * [https://wordpress.org/plugins/wp-clone-by-wp-academy/](https://wordpress.org/plugins/wp-clone-by-wp-academy/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/page/2/?output_format=md)

 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913153)
 * try the alternate zip method (it’s in advanced settings) at the very least it’ll
   return an error message.
    by the way, make sure that you’re able to download 
   the backup file using your browser or download manager. if you’re having trouble
   downloading it, deactivate wpclone and activate it again (it’ll update the htaccess
   rules)
 *  Thread Starter [jatsptl2014](https://wordpress.org/support/users/jatsptl2014/)
 * (@jatsptl2014)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913208)
 * Thanks for such a quick response.
 * Did try Alternate Zip Method and got below error:
 * Error Message : PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir
   Record signature
 * THanks
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913260)
 * it’s probably downloading an html file instead of the zip file, make sure that
   the link works.
 *  Thread Starter [jatsptl2014](https://wordpress.org/support/users/jatsptl2014/)
 * (@jatsptl2014)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913313)
 * Yes, link is working fine, also Backup from browser worked.
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913325)
 * hmm, are you able to open the downloaded zip file?
 *  [Kristionne](https://wordpress.org/support/users/kristionne/)
 * (@kristionne)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913358)
 * I’ve had same problem. It will restore from the link it creates, but if you try
   to upload a backup of a site from a zip file you have stored remotely, it does
   not work. Same error. I feel like it has something to do with the name. Even 
   if I have it scan and populate the file and tell it to restore from the link.(
   I hope that all make sense).
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913362)
 * hmm, scan and repopulate should have worked.. tell you what, download the file
   to your computer and see if you can open it without trouble.
    you could rename
   the file and do another scan to see if that solves it.
 *  [Kristionne](https://wordpress.org/support/users/kristionne/)
 * (@kristionne)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913364)
 * I tried this….
 * 1. created a backup,
    2. downloaded that zip file and opened it (which removes
   the string of other info…dates/times/etc and names it just wpclone_backup). 3.
   Then, zipped the same file back up, uploaded to server 4. Used the option to 
   scan/repopulate list.
 * When I tried to restore from that file (reuploaded zip), I got the error above.
   When I tried to restore from the link that system originally created (the same
   exact file), it worked.
 * The restore log on the server seems to show that is just stops…
 * Sunday, 10-Jan-2016 19:45:50 – restore started
    Sunday, 10-Jan-2016 19:45:50 –
   wp version : 4.4.1 Sunday, 10-Jan-2016 19:45:50 – php version : 5.3.24 Sunday,
   10-Jan-2016 19:45:50 – mysql version : 5.5.43 Sunday, 10-Jan-2016 19:45:50 – 
   memory limit : 1024M Sunday, 10-Jan-2016 19:45:50 – execution time : 600 Sunday,
   10-Jan-2016 19:45:50 – mysql timeout : 600 Sunday, 10-Jan-2016 19:45:50 – socket
   timeout : 600 Sunday, 10-Jan-2016 19:45:50 – file exists in the backup folder,
   filesize – 1.63 MB Sunday, 10-Jan-2016 19:45:50 – extracting database using ziparchive
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913366)
 * could you send the links to those files (the original and the one you created)
   to [support@wpacademy.com](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/support@wpacademy.com?output_format=md)?
 *  Thread Starter [jatsptl2014](https://wordpress.org/support/users/jatsptl2014/)
 * (@jatsptl2014)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913386)
 * As far as my issue is concern it is still the same. The backup download works
   absolutely fine.
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913387)
 * are you able to extract that file without errors?
 *  Thread Starter [jatsptl2014](https://wordpress.org/support/users/jatsptl2014/)
 * (@jatsptl2014)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913388)
 * Yes, it seems to be fine.
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913390)
 * hmm, tell you what, upload that file to /wp-content/uploads/wp-clone/ on your
   target site, do a “scan and repopulate” and try doing a restore. you really shouldn’t
   be seeing a “PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir 
   Record signature” error for a file that extracts without errors.
 *  [khoavo](https://wordpress.org/support/users/khoavo/)
 * (@khoavo)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913431)
 * Hi there, I’m trying to restore a site from a server to another server. WP Clone
   works fine when Creating the Zip Backup. But after I uploaded the Zip file to
   the other server and tried to Restore from URL and also Scan & repopulate the
   backup list and then Restore backup from the new Zip file, I get the same “Plugin
   encounter error…” message, shown from “jatsptl2014’s” example screenshot on this
   thread.
 * I’ve had the most problem using WP Clone plugin on the GoDaddy.com hosting server
   for some reason. The other servers seems to work fine, but GoDaddy seems to not
   be as compatible with this great plugin. Let me know if you can help me solve
   this issue.
 * Thanks!
 *  [wpacademy](https://wordpress.org/support/users/wpacademy/)
 * (@wpacademy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/#post-6913433)
 * godaddy has a 120 second limit for php scripts, so it will fail if the backup/
   restore takes longer than that (for example, if the site has a large database
   or a lot of large files)
 * anyways, did you manage to get it to work?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/page/2/?output_format=md)

The topic ‘Error while extracting the zip file using php ziparchive’ is closed to
new replies.

 * ![](https://ps.w.org/wp-clone-by-wp-academy/assets/icon-128x128.png?rev=2181280)
 * [Clone](https://wordpress.org/plugins/wp-clone-by-wp-academy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-clone-by-wp-academy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-clone-by-wp-academy/reviews/)

 * 16 replies
 * 4 participants
 * Last reply from: [khoavo](https://wordpress.org/support/users/khoavo/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/error-while-extracting-the-zip-file-using-php-ziparchive/page/2/#post-6913434)
 * Status: not resolved