• Resolved Phil McKerracher

    (@phil-mckerracher)


    I’m seeing a new problem with “Map unavailable” errors when adding a new location to Events Manager 5.9.6. None of the usual fixes work (tried checking API credentials and temporarily removing restrictions, disabling plugins, installing on a different site, checking for console errors etc).

    Locations that were added a few weeks ago continue to display correctly. I think that means the javascript map API credentials must be correct and working. But I can’t add any new locations.

    When I check the database I see that the latitude and longitude are not set for the new location, but do exist for the old ones. That suggests a geocoding failure (yet I know geocoding works on this site, in CiviCRM). However, I have manually added the lat and long to the new location using phpMyAdmin and yet I still see “Map unavailable”, which is strange because I can see no other difference between old locations that still work and the new location that doesn’t.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Hi Phil,

    EM User here too ??
    The coordinates are saved in both wp_em_locations table as well as in wp_postmeta as meta data for the location post. It depends on where you call the data which input is being called. ??

    If you are looking for a simple solution that just works, you might want to checkout my Google Maps replacement: EM – OpenStreetMaps.
    https://www.ads-software.com/plugins/stonehenge-em-osm/

    I created it, because of all the changes Google made to their API. ??

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    Thanks for the information. I tried the OpenStreetMaps plugin and I confirm that it works, and even after disabling it (and manually re-enabling the Google mapping) the new location is correctly displayed in Google maps (which I prefer).

    So that means there is definitely something wrong with the initial “geocoding” step in Events Manager or in the Google API it uses, and it’s a relatively recent problem.

    In case it helps, these are the APIs that I currently have enabled. None of them are showing errors:
    Maps JavaScript API
    Geocoding API
    Google Drive API
    Maps Embed API
    CalDAV API
    Directions API
    Distance Matrix API
    Geolocation API
    Google Calendar API
    Maps Elevation API
    Maps SDK for Android
    Maps SDK for iOS
    Maps Static API
    Places API
    Safe Browsing API
    Street View Publish API
    Street View Static API
    Time Zone API

    Also note that I do have billing configured and activated.

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    By the way, I found a similar support topic that may (or may not) be related – the symptoms seem different though. https://www.ads-software.com/support/topic/map-unavailable-for-only-some-locations/

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    Yes, I confirm I have already checked and followed those tutorials.

    Hello,

    When I re-visited the page: https://www.bromleysymphony.org/location/harris-academy-beckenham/ It seems like the map is already showing? Could We perhaps know if you have managed to fix it already?

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    As I mentioned above, I got it working by using the OpenStreetMaps plugin temporarily.

    I can make a new example of a non-working page if you like.

    Here: https://www.bromleysymphony.org/location/test-location/

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Do all of your locations are not working even on the admin dashboard? It seems working fine on our test sites and cannot replicate this issue,

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    Existing locations (that I created before this problem started happening) are working fine, in both the front end and back end.

    The problem happens when I create a new location in the admin dashboard. In that case there is no map. I see “map unavailable”.

    My server is running Ubuntu 18.04 and PHP 7.3 (in FPM mode) if that helps.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    For a location with “map unavailable” can you try to temporarily change the location country to refresh the map?

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    It doesn’t help, unfortunately – I still see “Map Unavailable”.

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    Update: I see this error in the “Inspect” console when I type something into the address field:

    Uncaught TypeError: $ is not a function
    at HTMLInputElement.<anonymous> (events-manager.js?ver=5.96:1032)
    at HTMLInputElement.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-sanitize,wp-a11y,jquery-ui-autocomplete,moxiejs,plupload&ver=5.2.4:3)
    at HTMLInputElement.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-sanitize,wp-a11y,jquery-ui-autocomplete,moxiejs,plupload&ver=5.2.4:3)

    CharlieAR

    (@charliear)

    I have started a post on the same issue, plus responded in another user discusssion.
    My system somehow has restored new map functioning in the Submit Event form, but not in the backend dashboard Add Location.

    I just ran the Console tonight taking your lead and my error responses are identical, except for the very last part of the 2nd and 3rd line: Where yours show:

    =-menu,wp-sanitize,wp-a11y,jquery-ui-autocomplete,moxiejs,plupload&ver=5.2.4:3)

    Mine show:
    =-menu,wp-a11y,jquery-ui-autocomplete,moxiejs,plupload&ver=5.0.7:3)

    *** I take it that means my version of WordPress is behind the times >>> 5.0.7

    Monitoring Console while putting an address in to the front end Submit Event does not generate an error. It responds and locates the valid location of that address.

    gkerkman

    (@pbasset)

    I am encountering the same problem. Locations I entered last week work perfectly, but new events I added today and not working. The map is showing as “Unavailable” I too, have followed the trouble shooting I could find in other threads, as well as checked the API, and changed the country. Was anyone able to find a solution that doesn’t include another plugin?

    Thanks!

    timrv

    (@timrv)

    @phil-mckerracher The error you see is from jquery-ui. Checking the link: https://www.bromleysymphony.org/location/harris-academy-beckenham/ and it seems like the map are already showing.

    @charliear The console errors that you see seems like from other plugins. Specially the moxiejs. I would suggest try deactivating other plugins and try changing the theme to any twenty series. Have you make sure also that you have all the APIs activated and have a valid Billing Account attached on your Gmaps Account?. Can you perhaps send us a sample link of an event with maps that is not showing?

    @pbasset Can you perhaps send us a sample link of an event with maps that is not showing? Please make sure that you have also added a valid Billing Information on your Google Maps account.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Map unavailable error (new)’ is closed to new replies.