• 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 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Phil McKerracher

    (@phil-mckerracher)

    Thanks for you help, but you checked the wrong link. As mentioned above, the “harris-academy-beckenham” location was eventually fixed with the help of a different plugin. If you want to see a failing page see https://www.bromleysymphony.org/location/test-location/

    The console error from jquery-ui has vanished, I’m not sure why. It was probably a red herring. As far as I can tell I’m using the default WordPress jquery library from /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1

    I have tried disabling all other plugins and using a default theme. Still “Map Unavailable”.

    I do have some new information – there’s a console warning (from Chrome “inspect”) that looks very relevant, though it’s only a warning:

    ?post_type=location&p=7913&preview=true:1 A cookie associated with a resource at https://www.google.com/ was set with SameSite=None but without Secure. A future release of Chrome will only deliver cookies marked SameSite=None if they are also marked Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5633521622188032.

    gkerkman

    (@pbasset)

    timrv

    (@timrv)

    Hello @phil-mckerracher

    Based from the new error, It seems to be related on google it self. From your google maps config, Can you make sure that you have properly set and whitelisted your domain? Check Step 3-6 (https://wp-events-plugin.com/documentation/google-maps/api-key/)

    I noticed that you’re also on https. Can you perhaps try and Install: https://www.ads-software.com/plugins/really-simple-ssl/ Then please enable their option to fix the “Mixed content fixer” this should fix any possible links that is showing as http even if you’re already on https.

    timrv

    (@timrv)

    Can you also perhaps try and edit the file “events-manager/includes/js/events-manager.js”

    Check please check the following code:
    if( $(this).prop('readonly') === true ) return; can be found around line 1032

    Please try changing it to:
    if( jQuery(this).prop('readonly') === true ) return;

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    The API key is properly set and whitelisted. (I don’t think I would see any maps at all otherwise.) Also I tried disabling all domain restrictions temporarily in the Google console but it made no difference.

    I installed and activated the “really simple SSL” plugin with the “Mixed content fixer” option enabled. Also tried “Enable JavaScript redirection to SSL” and “Use alternative method to fix mixed content” and checked that the mixed content fixer marker: “data-rsssl=1” is visible in the source. Still get map unavailable.

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    The edit to file events-manager.js doesn’t fix the problem but I do get a new error in the console:

    3events-manager.js?ver=5.96:1032 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[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.3:3)
    at HTMLInputElement.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.3:3)

    Was this ever resolved or just fall off? Running into the same error – followed all instructions but still no maps loading.

    Thread Starter Phil McKerracher

    (@phil-mckerracher)

    It’s working now for me (version 5.9.7.3)

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