The wait time seems to be excessive:

IP Geolocation
Date Wednesday, September 12, 2012 - 2:10pm
User admin
Location http://test/system/ajax
Referrer http://test/conferences
Message Location timeout (waited 187.5 s). Fallback: .
Severity notice
Hostname 127.0.0.1

Comments

rdeboer’s picture

Title: Is there a way to set the wait time? » Is there a way to set the reverse-geocoding timeout?

Hi SocialNicheGuru,
This timeout is currently a constant set to 60 seconds.
You could edit file ip_geoloc/ip_geoloc.module. It's at the top:

   define('IP_GEOLOC_CALLBACK_TIMEOUT', 60);

Just to explain how it all works....
When the time comes (configurable via the UI, default also 60 seconds) IP Geolocation sends a little piece of javascript to the browser to retrieve the HTML5 location. In the meantime the user continues to click away on the site, so it's a non-blocking background process and the user does not experience a wait.
If the browser responds within 60 seconds (the above fixed timeout), then the javascript invisibly posts the location to the server and all is ok. If the location takes over 60 seconds to arrive, then at the first click after the fixed time-out of 60 seconds the module logs it in the watchdog. In your case it must have been 187 seconds before that second click came in. Note that if there is no second click (i.e user abandons site after first click), there will be no log.
Rik

rdeboer’s picture

Status: Active » Closed (works as designed)
spyderpie’s picture

I seem to be having this issue and the end result is that the map never centers on the visitors location. Any thoughts?

Julie

rdeboer’s picture

#3:
Sorry Julie... no thoughts....

Have you tried switching on the debug trail on the "IP Geolocation Views and Maps" config page, admin/config/system/ip_geoloc, where it says:

Detail execution progress with status messages.
Enter a comma-separated list of names of users that should see status messages coming from this module, e.g. for debugging purposes. Use anon for the anonymous user.

Having that on for a while may reveal something...

spyderpie’s picture

OK, after playing for a while, it is specifically in IE 9 where the map does not center. Sometimes Chrome on Mac .... Other browsers are fine: chrome on pc, safari on mac, firefox on mac ...

When I add the detailed execution there are definite differences in a side by side PC based Chrome vs IE comparison.

IE:
Smart IP On: 'IP Geolocation: location info now pending for xx sec",
also: Smart IP is Retreived, still no device geolocation retrieved.

Smart IP Off: No device geolocation retrieved - there is no error and no address information retrieved.

Google Reverse Geo Code setting does not seem to affect anything.

Both indicate they received an IP address from the GEOIP module.

Thanks for your help on this,
Julie

rdeboer’s picture

Status: Closed (works as designed) » Active

Hi Julie,
First of all, you have too many modules doing similar (and perhaps conflicting?) things. I'd hoped instructions were quite clear, but maybe not, so here we go.

"IP Geoloc V&M" optionally uses either GeoIP or SmartIP. Do NOT use both at the same time.
NEVER switch on SmartIP's submodule "Device geolocation".

In fact to get to the bottom of this without interference from other modules please disable BOTH GeoIP and SmartIP. They're for inaccurate IP address-lookup as a backup only, in case the HTML5 satellite/WiFi lookup times out. Consequently do NOT tick: Employ Smart IP as a backup to the Google Maps JS API as well as declined or failed HTML5 location retrievals in Views.

I'm surprised that there are such dramatic differences between browsers and devices... but maybe it's a path we should follow to get to the bottom of this.

You MUST tick "Employ the Google Maps API to reverse-geocode HTML5 visitor locations to street addresses" or it will not attempt to do an HTML5 lookup ever.
By the way, are you getting prompted by your browser to share your location? If not, then the call from IP Geoloc to the browser to return the HTML5 location doesn't get through, or you have already told the browser to "Always share" or "Share for 24 hours" (Safari).

Suggest you set "Minimum elapsed time in seconds before geolocation data for the same user will be collected again" to something like 20-30 seconds, so that you don't have to wait too long while testing.

You may tick "Auto-refresh the page as soon as an HTML5 location update has come in".

Check your browser console for messages. For example in Chrome, right-click anywhere on the page and select "Inspect element", then pick the "Console" tab. Does it show anything?

Keep the info-trail of msgs on. Let's see if this results in clearer hints or clues...
Rik

PS: you may also want to reduce the timeout as demonstrated in #1 to say 20s.

spyderpie’s picture

;) Well that worked .... Do you still want diag info?

Also, I'm sorry. Sometimes navigating which Drupal modules you actually need to do a task can be daunting .. thank you so much for your detailed help and timely answers ... it's always refreshing to have this kind of support ;) You're awesome!

now if I can just figure out why my markers don't show ...... lol

Peace & thanks again,
Julie

rdeboer’s picture

Status: Active » Closed (works as designed)

Thanks Julie,
Glad it all works now.
No need to send me the diag... have seen plenty of those!
Rik

socialnicheguru’s picture

would you suggest not selecting any roles for admin/config/people/smart_ip since it is only a backup?