Home › Forums › Calendar Products › Events Calendar PRO › Google maps not displaying properly after upgrading to 3.4.1
- This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by Barry.
-
AuthorPosts
-
February 18, 2014 at 3:28 am #105838bsb1976Participant
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.
February 18, 2014 at 9:44 am #106015BarryMemberHi!
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?
March 5, 2014 at 6:38 am #112830BarryMemberI’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!
-
AuthorPosts
- The topic ‘Google maps not displaying properly after upgrading to 3.4.1’ is closed to new replies.