Sometimes I get the following on my page where I have ip_geoloc view based on leaflet and the page does not render well

Visitor location not available.
Visitor location not available.
Visitor location not available.
Visitor location not available.
Notice: Undefined index: locality in ip_geoloc_ip_geoloc_context_convert() (line 62 of modules/all/ip_geoloc/plugins/contexts/ip_geoloc.inc). =>
Notice: Undefined index: postal_code in ip_geoloc_ip_geoloc_context_convert() (line 62 of modules/all/ip_geoloc/plugins/contexts/ip_geoloc.inc). =>

This goes away on a refresh or two. (things happen. I am not sure that the module can do anything about this).

I am more concerned about the user experience and any work arounds that people have found.

How would you suggest that an error like this is caught and something meaningful is shown?

Comments

rdeboer’s picture

Hi SocialNicheGuru,

You must be using Panels? Or another module using contexts? That should be ok. Just wondering....

The above notices in line 62 are a result of the visitor location not being set. I've fixed this with the latest check-in.

I'm puzzled by the message "Visitor location not available".

I cannot find that message in the source code on my Drupal test rig. This leads me to believe that either
a) you are using a module that I don't have on my test system
b) the message ultimately comes from the database, i.e. you entered it through the UI of "some" module?

Rik

socialnicheguru’s picture

Yes, I am using panels.
I will investigate

rdeboer’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Closing due to inactivity.