Plugin Author
Pascal
(@iqpascal)
You download the GeoLite2-Country.tar.gz file from the Maxmind database, unzip that file and you get a folder with where the GeoLite2-Country.mmdb file is located.
Upload this file to your upload folder.
I’ve just hit this issue as I think the old Maxmind database link is now dead. That’s a problem as my old script for downloading meant I ended up with a 0 bytes Geoip database and IQ Block Country throws a fatal error making my site inaccessible (front and back-ends). I has to SSH and rename the plugin folder.
For anyone else facing this, here’s what I did…
The new database is now tar-ed rather than just gzipped and the database itself is in a folder structure, so a few changes were needed. I’m no shell guru, but after some learning, the following appears to work (use with caution as it’s possible I may have missed something)…
“cd ~/public_html/wp-content/uploads
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -O GeoLite2-Country.tar.gz
tar –strip-components 1 –overwrite -xvf GeoLite2-Country.tar.gz –wildcards “*.mmdb” -C ~/public_html/wp-content/uploads/”
-
This reply was modified 7 years, 4 months ago by
stuartb3502.
i moved my website to a new hosting, and now when I install the plugin, I get the message that I should copy the /home/des*******/public_html/(mywebsite).com/wp-content/uploads/GeoLite2-Country.mmdb however, my /home director is: /home/kkbx*****/public_html/(mywebsite).com/wp…..
The file is in the right place, but the iq country block is looking for the home directory of the hosting I used to have….how do I fix this?
Plugin Author
Pascal
(@iqpascal)
From the FAQ
I have moved my WordPress site to another host. Now iQ Block Country cannot find the GeoIP databases anymore
Somewhere in your WordPress database there is a wp_options table. In the wp_options table is an option_name called ‘upload_path’.
There probably is an (old) path set as option_value. If you know your way around MySQL (via PHPMyAdmin for instance) you can empty the option_value.
This should fix your problem.
Please note that your wp_options table may be called differently depending on your installation choices
Not sure that has gone wrong. I already had the GeoIP Detection plugin installed. The I added iQ Block Country. GeoIP Detection automatically uploads the database in to the the correct location. I have checked this physically on the server. The database is there in wp-content/uploads but iQ Block Country fails to detect it?
Plugin Author
Pascal
(@iqpascal)
Are you sure the correct database is downloaded?