{"id":48660,"date":"2015-05-22T01:18:00","date_gmt":"2015-05-22T05:18:00","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=48660"},"modified":"2016-04-13T09:50:28","modified_gmt":"2016-04-13T13:50:28","slug":"wordpress-troubleshooter-how-ti-fix-google-api-key-is-invalid-error","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-troubleshooter-how-ti-fix-google-api-key-is-invalid-error.html","title":{"rendered":"WordPress Troubleshooter. How t\u043e fix &#8220;Google API key is invalid&#8221; error"},"content":{"rendered":"<p>\r\n<p>Hello! This tutorial shows how to fix <strong>&#8220;Google API key is invalid&#8221;<\/strong> error.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=W90MYgd02QU?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress Troubleshooter. How ti fix &#8220;Google API key is invalid&#8221; error<\/a><\/p>\r\n<p>You may receive the following error on your site:<\/p>\r\n<p><code>This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError<\/code><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_1-300x150.png\" alt=\"wordpress.how_to_fix_google_api_key_is_invalid_error_1\" width=\"300\" height=\"150\" class=\"aligncenter size-medium wp-image-48661\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_1-300x150.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_1-150x75.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Let&#8217;s learn how to get rid of it.<\/p>\r\n<ol>\r\n<li>\r\n<p>Access your WordPress admin panel and navigate to <strong>Appearance ->Editor<\/strong> tab.<\/p>\r\n<\/li>\r\n<li>\r\n<p>On the appeared screen locate the <strong>static-map.php<\/strong> file in the list on the right:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_2-300x154.png\" alt=\"wordpress.how_to_fix_google_api_key_is_invalid_error_2\" width=\"300\" height=\"154\" class=\"aligncenter size-medium wp-image-48662\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_2-300x154.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_2-150x77.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_2.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Click on the file title to open it for editing.<\/p>\r\n<\/li>\r\n<li>\r\n<p>On the appeared interface locate the following line of code:<\/p>\r\n<\/li>\r\n<\/ol>\r\n<pre class=\"brush:html\">&lt;script type=&quot;text\/javascript&quot; src=&quot;https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyASm3CwaK9qtcZEWYa-iQwHaGi3gcosAJc&amp;sensor=false&quot;&gt;&lt;\/script&gt;<\/pre>\r\n<p>Replace it with the following:<\/p>\r\n<pre class=\"brush:html\">&lt;script type=&quot;text\/javascript&quot; src=&quot;https:\/\/maps.googleapis.com\/maps\/api\/js?v=3.exp&amp;sensor=false&quot;&gt;&lt;\/script&gt;<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_3-300x169.png\" alt=\"wordpress.how_to_fix_google_api_key_is_invalid_error_3\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-48663\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_3-300x169.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_3-150x84.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/05\/wordpress.how_to_fix_google_api_key_is_invalid_error_3.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Click the <strong>&#8220;Update File&#8221;<\/strong> button in the lower part of the screen to save changes.<\/p>\r\n<p>Open your site and refresh the page. You can see the error is no longer displayed.<\/p>\r\n<p>This is the end of the tutorial, you have learnt how to fix <strong>&#8220;Google API key is invalid&#8221;<\/strong> error.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=W90MYgd02QU?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress Troubleshooter. How ti fix &#8220;Google API key is invalid&#8221; error<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This video tutorial shows how to fix <strong>&#8220;Google API key is invalid&#8221;<\/strong> error in Wordpress.<\/p>\n","protected":false},"author":68,"featured_media":48665,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1102,691,929,1113,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48660"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=48660"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48660\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/48665"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=48660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=48660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=48660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}