• Hi there, thanks so much for carrying on the work of IP Geo Block. This plugin is critical to a number of sites I run and has been fairly solid for me over the years. Even though there are other plugins out there that do similar things I have always been partial to IP Geo Block and now IP Location Block!

    A couple things, on local database settings I am getting a ‘copy_failed_ziparchive Could not copy file.’ error on IP2Location database for both IPv4 and v6. Any thoughts? Also, I have always just used the default API selection and key settings so I only have IP2Location checked, but should I be using the other options? If so, how do I get API keys?

    Thanks!

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Darko G.

    (@darkog)

    Hi @wyclef ,

    Regarding the error, I haven’t seen this error so far. Do you get the error when clicking on “Download”?

    Regarding the providers/apis: any of the other APIs will be fine as well. You can visit the api website and there you can obtain key. You can check GeoLite2 from Maxmind for start.

    Best Regards,
    Darko

    I just ran into the same problem yesterday after installing it on another domain. Got it working fine on my first install but this one bops up the same message when trying to download the ip2 location database.

    I’m going to try ftp’ing the database file from the first domain over to the same …/uploads location on this domain to see if it is a write-permission setting.

    @darkog and @wyclef

    I just uploaded a May 18th copy of the 2 iplocation.bin files from the site that is working fine to the appropriate folder on my site that gives the “copy_failed_ziparchive Could not copy file.” error when clicking on “Download database”. I then tested it by coming in from a non-US country via my VPN software and it does block me as expected.

    However, when I click on the “Download database”, I still get that same error so I doubt if it will be updating the old database unless I do it manually.

    -chuck

    Thread Starter wyclef

    (@wyclef)

    Thanks for confirming @palmerct this describes the situation precisely.

    Thread Starter wyclef

    (@wyclef)

    could deactivating IP Geo Block and not uninstalling cause a conflict here?

    Plugin Author Darko G.

    (@darkog)

    @wyclef

    Did you migrate from IP Geo Block with the “Migrate now” button?

    Thanks

    Thread Starter wyclef

    (@wyclef)

    Yes

    @darkog and @wyclef

    I tried both. The first time I just de-activated IP Geo and installed IP Location. Then I uninstalled IP Location completely and re-installed using the Migrate Now option.

    Later tonite I will try uninstalling both then ftp’ing to the site and completely removing their folder structures. Then I’ll install IP Location from scratch again.

    It looks like their databases are installed in completely different folders though, correct?

    -chuck

    Plugin Author Darko G.

    (@darkog)

    @palmerct yes, ip location block uses different folder for the database.

    It should be:

    /wp-content/uploads/ip-location-block/databases/IP2Location/IP2LOCATION-LITE-DB1.BIN
    /wp-content/uploads/ip-location-block/databases/IP2Location/IP2LOCATION-LITE-DB1.IPV6.BIN

    If you can provide me login to the site i can see the error more in details and then release a fix. Feel free to message me.

    • This reply was modified 3 years, 6 months ago by Darko G..

    @darkog
    That’s what I thought and that’s where I manually placed both files the other day. But let me add this bit of info to make it even weirder! I just logged in and noticed the message under their location said that they were recently updated:

    Last update: May 27, 2021 9:55 am

    So I naturally thought something must be working and clicked on the Manual update button again to give it a shot. But I got the same “copy_failed_ziparchive Could not copy file.” message.

    -chuck

    @darkog

    I deactivated and uninstalled the IP Location plug. NOTE: It does not remove the folders and files under /wp-content/uploads/ip-location-block/ — I ftp’ed to the site and manually deleted IP2Location folder, its 3 sub-directories, and the 2 .BIN files.

    Then I reinstalled and activate the plugin. Under its settings it says “IP Location Block: Now downloading geolocation databases in background. After a little while, please check your country code and “Matching rule” at Validation rules and behavior.”

    I waited about 10 minutes and it never created the /wp-content/uploads/ip-location-block/ folder so I deleted your plugin and went back to IP Geo block.

    I can’t give you access to our prod site but will make a fresh clone over to my test area tomorrow or Saturday if you haven’t figured things out by then.

    Good luck!

    Thread Starter wyclef

    (@wyclef)

    @darkog emailed you my diagnostic information.

    Thread Starter wyclef

    (@wyclef)

    Wondering if there is any progress on this?

    @wyclef and @darkog
    Well, I ran into a couple of weirdities. I cloned my production site to a dev sub-domain a couple of days ago then installed IP Location Block and updated its database without a problem. So I don’t know why it would not update on my prod site.

    But here’s another weird one. After installing it on the dev site and doing a couple of database downloads that gave no error messages, I then ftp’ed out to the folder with those .BIN files and noticed the timestamps on the BIN files don’t seem to change.

    Lastly, a co-admin on our prod site lives in Michigan. I’m in Florida. His ip address was locked out of our prod site yesterday. The log said his country code was “ZZ”. So I’ve de-activated the plug-in on our prod site.

    Thread Starter wyclef

    (@wyclef)

    @darkog are there any updates on any of this?

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Local database settings failed to copy’ is closed to new replies.