tokkonopapa / WordPress-IP-Geo-API

A class library for WordPress plugin IP Geo Block to handle geolocation database of Maxmind and IP2Location.
GNU General Public License v3.0
1 stars 2 forks source link

Can not find Geolocation API libraries in wp-content #1

Open brianz opened 5 years ago

brianz commented 5 years ago

Thank you for this plugin!

I'm having some problems getting the plugin to find the API libraries. The error in the plugin configuration page is:

IP Geo Block: Can not find Geolocation API libraries in wp-content. It seems to have failed downloading ZIP file from WordPress-IP-Geo-API. Please install ip-geo-api with write permission according to this instruction.

I have followed these instructions and placed the files in my root /wp-content/. I'm using the Bitnami Wordpress AMI from AWS. So, the root directory is /opt/bitnami/apps/wordpress/htdocs/wp-content/

You can see the directory structure below:

root@ip-172-31-31-48:/opt/bitnami/apps/wordpress/htdocs/wp-content# tree -L 2 ip-geo-api/
ip-geo-api/
├── index.php
├── ip2location
│   ├── bcmath.php
│   ├── class-ip2location.php
│   ├── index.php
│   └── IP2Location.php
└── maxmind
    ├── class-maxmind-geolite2.php
    ├── class-maxmind-legacy.php
    ├── class-maxmind.php
    ├── geoipcity.inc
    ├── geoip.inc
    ├── GeoLite2
    ├── index.php
    ├── LICENSE
    └── vendor
tokkonopapa commented 5 years ago

Hi @brianz ,

Sorry for my late replying.

I'm afraid you have still this issue even you had installed as you reported. There is an issue that once you unselected Geolite2, Maxmind and IP2Location and saved the settings, the error message you reported never disappear.

This issue in not in this project but in tokkonopapa / WordPress-IP-Geo-Block itself.

I'll fix this issue and release new version in near future. For now, I hope you to execute clean uninstalling and reinstall again.

I appreciate your reporting the issue. Thanks.

brianz commented 5 years ago

Thank you for the reply. I finally found the time to uninstall and re-install the plugin. So far, there are no error messages so hopefully, it's fixed now.

Thank you again!