Google maps not displaying properly after upgrading to 3.4.1

Home Forums Calendar Products Events Calendar PRO Google maps not displaying properly after upgrading to 3.4.1

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105838
    bsb1976
    Participant

    The google maps were working on our site when we were running TEC 2.0.11 but since updating to 3.4.1 and the Pro version the map display on individual event pages is unpredictable.

    Sometimes the map displays properly, other times it only shows a grey box or the map shows just below the grey box.

    It’s quite random as to whether the map will display properly or not.

    #106015
    Barry
    Member

    Hi!

    It looks like your theme (or perhaps another plugin) is also setting up Google Maps, resulting in this error:

    Warning: you have included the Google Maps API multiple times on this page. This may cause unexpected errors.

    A good strategy is to determine which component is also making use of Google Maps (and so our standard troubleshooting steps of deactivating other plugins and switching theme are worthwhile here, even or ideally done on a separate test site). From there, one basic strategy you could employ would be to disable or dequeue those scripts when on event pages.

    The process for doing so will vary depending on what else is adding Google Maps support and how it is being added. Assuming it follows regular WP conventions though you could conditionally check if the page is an event page and dequeue it from there, something like this (just an example to show the basic concept, it won’t work “as is”).

    You would need to determine what else is adding Google Maps support and determine the script handle they are using (and indeed the point in time at which they add the script) to complete this solution, so touching base with the relevant plugin/theme author isn’t a bad idea.

    Does that help?

    #112830
    Barry
    Member

    I’ll go ahead and close this one – but if we can assist with anything else please don’t hesitate to create new threads as needed. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Google maps not displaying properly after upgrading to 3.4.1’ is closed to new replies.