J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Error on Geolocation (1 viewing) 
Go to bottom
TOPIC: Error on Geolocation
#4987
Bertrand Couvin
Junior Boarder
Posts: 21
User Offline
Error on Geolocation Karma: 0  
Hello John,

This app is great (version 3.1).

I made some tests with friends in different countries.

We found some errors on the location. My friend is in the same district than me, and the app says that he is in China.

In fact he uses his iphone with chinese language (version Taiwan). And JRealtime says that this IP is from Taiwan.

The geo location more is on IP address. The IP address I got, and search this from www.iplocation.net. This gives me the correct location.

So, How to update the location database?

Thanks John,
Bertrand
 
Logged Logged  
  The administrator has disabled public write access.
#4988
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Error on Geolocation Karma: 79  
Hello Bertrand,

it's not an error int he IP geolocation. Probably this happens because your PHP settings don't allow the use of file_get_contents function related to the PHP setting for "allow_url_fopen" that must be "on".

Indeed the IP geolocation is done using http://www.geoplugin.net/ opening a connection, if not possible the component fallbacks on the browser language header. This explains your result.

If you have issue with this contact your hosting provider in order to change PHP/Server settings to be able to connect to http://www.geoplugin.net/

As an alternative you can try to switch to the PHP Curl library using the JRealtime configuration as visible in the image below:



Best regards
John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top