• Resolved JAngelson79

    (@jangelson79)


    I am trying to upload a package from my localhost dev environment to a domain on my VPS and get this error:

    Fatal Error: Class ‘ZipArchive” not found in /home/www/example/public_html/etc.etc..

    Do this mean I need to enable or download this extension and if so how do I get it? I work on Linux systems and am comfortable with command line stuff…

    Thanks in advance.

    Justin

    https://www.ads-software.com/extend/plugins/duplicator/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey JAngelson79,

    It looks like you don’t have PHP enabled for Zipping. Your server has to be setup with “–enable-zip” for the Duplicator to zip files.

    If your trying to run just the installer then you can run without Zip Support. On the installer screen you will need to check the checkbox ‘Manual Package Extraction’ and manually extract the package before running the installer.

    ON YOUR VPS
    If your trying to use the Duplicator on your own server you will need to make sure the Zip extensions are enabled. Check your php.ini file for the following:

    On Windows: extension=php_zip.dll
    On MAC and Linux: extension=zip.so

    For more details see: https://www.php.net/manual/en/book.zip.php

    ON HOSTED SERVERS
    Just contact your hosting provider and tell them you want PHP with Zip support so that the “ZipArchive Class” will work. This is a very common feature and is available on almost all shared hosting environments.

    Hope this helps!

    Thread Starter JAngelson79

    (@jangelson79)

    It does help. I am still getting the 500 error.

    I guess I should have specified I am trying to transfer individual sites from a local wordpress multisite dev server to a live server. Can this be done with Duplicator?

    Thanks in advance.

    Justin

    Hey JAngelson79,

    It currently doesn’t support multi-site, we have it on the to-do list though. Sorry for the confusion!

    I’m having the same problem on a hosted server (on NetSol). The support team’s email said that the ziparchive class is already enabled, but Duplicator still fails at that point during system check in trying to create an archive.

    I even called the hosting provider, but the tech had basically no idea what I was talking about. He suggested I call back and ask for “paid support, where they can handle this kind of thing.”

    I can;t just move to another hosting provider, as this is the whole point – we are re-creating the site and I need a Duplicator backup of the site/DB/directories/files before lights-out on the old server.

    Any ideas?

    Thanks.

    Hey ericjarvismusic,

    Yeah the plugin won’t work if it can’t detect the ZipArchive class for PHP. You will have to work with your host to get it installed. If they can’t or won’t then you won’t be able to use the plugin at this point in time. You might look into a commercial solution like BackupBuddy…

    Cheers~

    This is not true. I just got off of a phone call with GoDaddy. All of my sites have been working perfect with duplicator up until I installed the latest 0.4.3 update. GoDaddy insists they would never have PHP ZipArchiving turned off. I then went to the dashboard of the only site I had not yet updated Duplicator on and ran the package creator and it worked like a charm.

    Something in the 0.4.3 update is not working properly. Can I copy the Duplicator folder from my server with the last version of Duplicator in it and just replace that folder on my other sites and have it work?

    I may just go ahead and try it. Nothing to lose since they are not working anyway and I have all of my previous Duplicator backups from last week…

    Will update…

    Hey No Soul To Sell,

    The underlying code for ZipArchive detection has not changed between versions 0.4.2 and 0.4.3. The check that is made is the same which is:

    $test = class_exists('ZipArchive');

    If you want to submit a support ticket I can look at your case in more detail to see if we can isolate the issue.

    Hope that helps!

    Hello,

    I have to apologize for that last post I made… I ran some more tests on some of my other sites by running the old version and then updating and running the new version and it worked without any issue on 2 of my other sites, so I don’t know what’s going on… I’m thinking now that there may be some sort of conflict going on with one or more of the other plugins that are installed on the sites I am having issues with. I will do some more testing on those site by disabling other plugins and see if I can get to the bottom of it. I will repost if I figure it out the solution.

    Thanks for your prompt response and sorry for my erroneous post. The new version IS working great on 2 of my sites. I just need to figure out where the conflict is on 8 other sites… lol

    Thanks!

    No Problem! Let me know if you run into issues…

    Cheers~

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Duplicator] No Zip Archive Enabled on VPS – What next?’ is closed to new replies.