{"id":4328,"date":"2017-04-08T19:28:11","date_gmt":"2017-04-09T00:28:11","guid":{"rendered":"https:\/\/www.summet.com\/blog\/?p=4328"},"modified":"2017-04-08T19:29:50","modified_gmt":"2017-04-09T00:29:50","slug":"updating-xml-google-maps-plugin-for-newer-versions-of-php","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2017\/04\/08\/updating-xml-google-maps-plugin-for-newer-versions-of-php\/","title":{"rendered":"Updating XML Google Maps plugin for newer versions of PHP"},"content":{"rendered":"<p>If you are using the XML Google Maps wordpress plugin (version 1.14.1 by Patrick Matusz), it has not been updated for a while, and won&#8217;t work quite right with newer versions of PHP.<\/p>\n<p>If you are getting the following error message twice at the top of every page in your wordpress blog:<br \/>\nWarning: mysql_get_server_info(): No such file or directory in &#8230; on line 10<\/p>\n<p>Change line 10 from:<\/p>\n<p>&nbsp;<\/p>\n<p>if ( version_compare(mysql_get_server_info(), &#8216;4.1.0&#8217;, &#8216;&gt;=&#8217;) ) {<br \/>\nto:<br \/>\nif ( version_compare($mysqli-&gt;server_info, &#8216;4.1.0&#8217;, &#8216;&gt;=&#8217;) ) {<\/p>\n<p>And that will make things work without the error messages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using the XML Google Maps wordpress plugin (version 1.14.1 by Patrick Matusz), it has not been updated for a while, and won&#8217;t work quite right with newer versions of PHP. If you are getting the following error &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2017\/04\/08\/updating-xml-google-maps-plugin-for-newer-versions-of-php\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4328","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/4328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=4328"}],"version-history":[{"count":4,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/4328\/revisions"}],"predecessor-version":[{"id":4333,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/4328\/revisions\/4333"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=4328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=4328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=4328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}