{"id":1185823,"date":"2016-11-01T09:10:57","date_gmt":"2016-11-01T16:10:57","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/"},"modified":"2016-11-01T09:10:57","modified_gmt":"2016-11-01T16:10:57","slug":"google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/","title":{"rendered":"&#039;google is not defined&#039; console error and site hangup upon loading any events pg"},"content":{"rendered":"<p>So, any time I try to load an events page (any view at all), there is a major site hangup and a console error:<\/p>\n<p>Uncaught ReferenceError: google is not defined<\/p>\n<p>Looks like it is trying to call Google Maps objects within this file: tribe-events-ajax-maps.min.js<br \/>\nThings I have tried to resolve this issue:<\/p>\n<ul>\n<li>Enqueue the google maps script within my functions.php with my API key whenever other scripts are loaded<\/li>\n<li>Enqueue the google maps script within my functions.php with my API key when init is fired<\/li>\n<li>Swapping to default themes and deactivating other plugins<\/li>\n<li>Reinstalling and updating to the latest versions of Events Calendar PRO<\/li>\n<\/ul>\n<p>Also, take note of the following<\/p>\n<ul>\n<li>I am using the latest version of the Jupiter theme<\/li>\n<li>Sometimes when I perform the steps above, the error will be bypassed and the page and maps will be loaded, but only for a limited time.<\/li>\n<li>This error ONLY occurs when I have the Events Calendar PRO plugin activated.<\/li>\n<li>I have my API key set within the plugin options (I also have an option to include it within my Theme Options as well.<\/li>\n<\/ul>\n<p>I&#8217;ve been trying to find a stable solution or a workaround to this for quite some time now. Perhaps there is some code somewhere in the resources for the plugin that loads the Google Maps script incorrectly?<\/p>\n<p>Please help! Thanks in advance.<\/p>\n","protected":false},"template":"","class_list":["post-1185823","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>&#039;google is not defined&#039; console error and site hangup upon loading any events pg -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&#039;google is not defined&#039; console error and site hangup upon loading any events pg -\" \/>\n<meta property=\"og:description\" content=\"So, any time I try to load an events page (any view at all), there is a major site hangup and a console error: Uncaught ReferenceError: google is not defined Looks like it is trying to call Google Maps objects within this file: tribe-events-ajax-maps.min.js Things I have tried to resolve this issue: Enqueue the google [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/\",\"name\":\"&#039;google is not defined&#039; console error and site hangup upon loading any events pg -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-11-01T16:10:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"&#039;google is not defined&#039; console error and site hangup upon loading any events pg\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"&#039;google is not defined&#039; console error and site hangup upon loading any events pg -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/","og_locale":"en_US","og_type":"article","og_title":"&#039;google is not defined&#039; console error and site hangup upon loading any events pg -","og_description":"So, any time I try to load an events page (any view at all), there is a major site hangup and a console error: Uncaught ReferenceError: google is not defined Looks like it is trying to call Google Maps objects within this file: tribe-events-ajax-maps.min.js Things I have tried to resolve this issue: Enqueue the google [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/","name":"&#039;google is not defined&#039; console error and site hangup upon loading any events pg -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-11-01T16:10:57+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-is-not-defined-console-error-and-site-hangup-upon-loading-any-events-pg\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"&#039;google is not defined&#039; console error and site hangup upon loading any events pg"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1185823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1185823\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1185823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}