{"id":1382151,"date":"2017-11-13T21:05:42","date_gmt":"2017-11-14T05:05:42","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/"},"modified":"2017-11-13T21:05:42","modified_gmt":"2017-11-14T05:05:42","slug":"php-error-for-coords-since-new-update","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/","title":{"rendered":"PHP Error for Coords Since new Update"},"content":{"rendered":"<p>Since updating to 4.4.19 of TEC Pro and 4.6.4 of TEC, I&#8217;m seeing this error in my PHP logs. Thoughts? <\/p>\n<pre><code>[14-Nov-2017 04:28:56 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;)\n\t\t\t\t)\n\t\t\t) AS &lt;code&gt;coords&lt;\/code&gt;&#039; at line 27 for query \n\t\t\tSELECT\n\t\t\t\tMAX( &lt;code&gt;coords&lt;\/code&gt;.&lt;code&gt;lat&lt;\/code&gt; ) AS &lt;code&gt;max_lat&lt;\/code&gt;,\n\t\t\t\tMAX( &lt;code&gt;coords&lt;\/code&gt;.&lt;code&gt;lng&lt;\/code&gt; ) AS &lt;code&gt;max_lng&lt;\/code&gt;,\n\t\t\t\tMIN( &lt;code&gt;coords&lt;\/code&gt;.&lt;code&gt;lat&lt;\/code&gt; ) AS &lt;code&gt;min_lat&lt;\/code&gt;,\n\t\t\t\tMIN( &lt;code&gt;coords&lt;\/code&gt;.&lt;code&gt;lng&lt;\/code&gt; ) AS &lt;code&gt;min_lng&lt;\/code&gt;\n\t\t\tFROM (\n\t\t\t\tSELECT &lt;code&gt;post_id&lt;\/code&gt; AS &lt;code&gt;venue_id&lt;\/code&gt;,\n\t\t\t\tCASE\n\t\t\t\t\tWHEN &lt;code&gt;meta_key&lt;\/code&gt; = &#039;_VenueLat&#039;\n\t\t\t\t\tTHEN CAST( &lt;code&gt;meta_value&lt;\/code&gt; AS DECIMAL( 10, 6 ) )\n\t\t\t\tEND AS &lt;code&gt;lat&lt;\/code&gt;,\n\t\t\t\tCASE\n\t\t\t\t\tWHEN &lt;code&gt;meta_key&lt;\/code&gt; = &#039;_VenueLng&#039;\n\t\t\t\t\tTHEN CAST( &lt;code&gt;meta_value&lt;\/code&gt; AS DECIMAL( 10, 6 ) )\n\t\t\t\tEND AS &lt;code&gt;lng&lt;\/code&gt;\n\t\t\tFROM &lt;code&gt;wp_4533_postmeta&lt;\/code&gt;\n\t\t\tWHERE\n\t\t\t\t(\n\t\t\t\t\t&lt;code&gt;meta_key&lt;\/code&gt; = &#039;_VenueLat&#039;\n\t\t\t\t\tOR &lt;code&gt;meta_key&lt;\/code&gt; = &#039;_VenueLng&#039;\n\t\t\t\t)\n\t\t\t\tAND &lt;code&gt;post_id&lt;\/code&gt; IN (\n\t\t\t\t\tSELECT &lt;code&gt;meta_value&lt;\/code&gt;\n\t\t\t\t\tFROM &lt;code&gt;wp_4533_postmeta&lt;\/code&gt;\n\t\t\t\t\tWHERE\n\t\t\t\t\t\t&lt;code&gt;meta_key&lt;\/code&gt; = &#039;_EventVenueID&#039;\n\t\t\t\t\t\tAND &lt;code&gt;post_id&lt;\/code&gt; IN (  )\n\t\t\t\t)\n\t\t\t) AS &lt;code&gt;coords&lt;\/code&gt;\n\t\t made by require(&#039;wp-blog-header.php&#039;), require_once(&#039;wp-includes\/template-loader.php&#039;), include(&#039;\/plugins\/the-events-calendar\/src\/views\/default-template.php&#039;), get_header, locate_template, load_template, require_once(&#039;\/themes\/hemingway-rewritten-wpcom\/header.php&#039;), wp_head, do_action(&#039;wp_head&#039;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, call_user_func_array, wp_enqueue_scripts, do_action(&#039;wp_enqueue_scripts&#039;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, call_user_func_array, Tribe__Events__Pro__Main-&gt;enqueue_pro_scripts, Tribe__Events__Pro__Geo_Loc-&gt;get_min_max_coords<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1382151","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>PHP Error for Coords Since new Update -<\/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\/php-error-for-coords-since-new-update\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Error for Coords Since new Update -\" \/>\n<meta property=\"og:description\" content=\"Since updating to 4.4.19 of TEC Pro and 4.6.4 of TEC, I&#8217;m seeing this error in my PHP logs. Thoughts? [14-Nov-2017 04:28:56 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;) ) ) AS [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/\",\"name\":\"PHP Error for Coords Since new Update -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-11-14T05:05:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/#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\":\"PHP Error for Coords Since new Update\"}]},{\"@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":"PHP Error for Coords Since new Update -","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\/php-error-for-coords-since-new-update\/","og_locale":"en_US","og_type":"article","og_title":"PHP Error for Coords Since new Update -","og_description":"Since updating to 4.4.19 of TEC Pro and 4.6.4 of TEC, I&#8217;m seeing this error in my PHP logs. Thoughts? [14-Nov-2017 04:28:56 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;) ) ) AS [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/","name":"PHP Error for Coords Since new Update -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-11-14T05:05:42+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/php-error-for-coords-since-new-update\/#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":"PHP Error for Coords Since new Update"}]},{"@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\/1382151","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\/1382151\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1382151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}