{"id":5597,"date":"2020-06-04T20:38:55","date_gmt":"2020-06-04T20:38:55","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=5597"},"modified":"2020-06-05T14:26:28","modified_gmt":"2020-06-05T14:26:28","slug":"how-to-fix-multiple-google-maps-api-error-in-ultimate-addons-maps-ultimate-addons","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/en\/ultimate-add-ons\/how-to-fix-multiple-google-maps-api-error-in-ultimate-addons-maps-ultimate-addons\/","title":{"rendered":"How to fix – Multiple Google Maps API error in Ultimate Addons Maps – Ultimate Addons"},"content":{"rendered":"

 <\/p>\n

\n

 <\/p>\n

\n
\n

How to fix \u2013 Multiple Google Maps API error in Ultimate Addons Maps<\/h1>\n

Docs<\/a> \u00bb General<\/a> \u00bb How to fix \u2013 Multiple Google Maps API error in Ultimate Addons Maps<\/strong><\/p>\n<\/div>\n<\/header>\n

#comment><\/p>\n

\n

Having issues with Google Maps functionality of\u00a0Ultimate Addons? Most probably, this should be\u00a0due to\u00a0Multiple Google Maps APIs loaded on your site.<\/p>\n

When\u00a0do\u00a0Multiple Google Maps APIs load?<\/strong><\/p>\n

Any plugin that offers\u00a0Google Maps functionality needs to load the map through APIs. If you have multiple plugins installed on your site that offer\u00a0Google Maps or if the theme you\u2019re using comes with\u00a0Google Maps functionality as well, there are chances you might face this issue.<\/p>\n

How to confirm whether you have Multiple Google Maps APIs loaded on the site?<\/strong><\/p>\n

If you\u2019re using Chrome, you may\u00a0open the console<\/a>\u00a0and see if you have an error there similar as this \u2013<\/p>\n

\"\"<\/a>(Click to enlarge the image)<\/p>\n

What can you do to fix this?<\/strong><\/p>\n

Ideally, any\u00a0theme or plugin should load\u00a0Google Maps API only on the pages where you\u2019re using it\u2019s\u00a0functionality. (In Ultimate Addons, we do load our API on pages where you would use Google Maps functionality of Ultimate Addons) However, many themes & plugins load the API throughout the website, which causes such conflict.<\/p>\n

If your theme \/ plugin is loading Map API the in header, add the following line into your theme\u2019s functions.php file \u2013<\/p>\n

define('DISABLE_ULTIMATE_GOOGLE_MAP_API', true);<\/code><\/p>\n

which will disable the API that loads through Ultimate Addons and will use other API that\u2019s loaded by other plugins \/ theme and it will most probably fix the issue.<\/p>\n

However if\u00a0the theme \/ plugin is loading Map API in the footer, you would need to\u00a0connect with your theme \/ plugin author and request information on how you can\u00a0disable their API from certain pages (or better load only on pages where you\u2019re using it).<\/p>\n

 <\/p>\n<\/div>\n

 <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

    How to fix \u2013 Multiple Google Maps API error in Ultimate Addons Maps Docs \u00bb General \u00bb How to fix \u2013 Multiple Google Maps API error in Ultimate Addons Maps #comment> Having issues with Google Maps functionality of\u00a0Ultimate Addons? Most probably, this should be\u00a0due to\u00a0Multiple Google Maps APIs loaded on your site. When\u00a0do\u00a0Multiple…<\/p>\n","protected":false},"author":2,"featured_media":5711,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[42,41],"tags":[],"class_list":["post-5597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase-ultimate-add-ons","category-ultimate-add-ons","category-42","category-41","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/5597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/comments?post=5597"}],"version-history":[{"count":5,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/5597\/revisions"}],"predecessor-version":[{"id":5843,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/5597\/revisions\/5843"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media\/5711"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media?parent=5597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=5597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=5597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}