Sometimes geolocation code is added to ALL pages, despite settings. Refreshing of page resolves issue for a moment - maybe it's related to "Minimum elapsed time before geolocation data for the same user will be collected again." option.

Comments

rdeboer’s picture

Assigned: Unassigned » rdeboer
Priority: Major » Normal

Looking at the code, the only condition under which this can happen is when a previous reverse-geocoding request timed out.

In the context of your issue I question the logic of this. I think I may change this logic to not incorporate whether a request timed out or not.

In the mean time could you please switch on the debug trail on your system by entering your user name in the "Detail execution progress with status messages" box ("Advanced options" fieldset on the config page admin/config/system/ip_geoloc)?
This will display status messages at the top of your pages and should give us a better idea as to when exactly your symptoms occur.

Also the watchdog, admin/reports/dblog, may reveal further info.
Rik

dr.user’s picture

Ok, I entered my user name and I can see messages like this on every page

IPGV&M: location info now pending for 43.6 s.

and after

IPGV&M: location info now pending for 205.1 s.
Smart IP and GeoIP API fallbacks NOT enabled.
IPGV&M: initiating services to locate current position and reverse-geocode to address...

followed by prompt from browser to allow/deny geolocation.

Meanwhile watchdog has no entries.

rdeboer’s picture

@dr.user:
Thanks for that. Assuming that your time-out is set to the default of 60 seconds, this confirms what I was thinking: on your system the reverse-geocode call to Google times out and because of the questionable logic mentioned above, the module tries again.

Why does the Google service time out without an error though?
As an aside: what browser are you using?

Rik

dr.user’s picture

Why does the Google service time out without an error though?

Maybe because I don't click allow nor deny when prompt from browser pops out.

As an aside: what browser are you using?

Google Chrome.

rdeboer’s picture

Ah... I see.... Yep, I guess you're not the only one doing that.
In that case it makes double sense that I change the code to NOT retry.
Will look into it.

rdeboer’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Believe this was fixed with 7.x-1.24. Please reopen if still an issue.