{"id":1361340,"date":"2017-10-09T17:38:43","date_gmt":"2017-10-10T00:38:43","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/"},"modified":"2017-10-09T17:38:43","modified_gmt":"2017-10-10T00:38:43","slug":"error-when-indexing-with-solr","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/","title":{"rendered":"Error when indexing with SOLR"},"content":{"rendered":"<p>I&#8217;m getting the following error when trying to index my site with SOLR using Pantheon&#8217;s Solr Search for WordPress plugin:<\/p>\n<p>WordPress database error Unknown column &#8216;EventStartDate&#8217; in &#8216;order clause&#8217; for query<br \/>\n\t\t\tSELECT<br \/>\n\t\t\t\tSQL_CALC_FOUND_ROWS *<br \/>\n\t\t\tFROM (<br \/>\n\t\t\t\tSELECT  DISTINCT wp_posts.ID FROM wp_posts  LEFT JOIN wp_postmeta as wp_postmeta on wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = &#8216;_EventStartDate&#8217; WHERE 1=1  AND wp_posts.post_type IN (&#8216;post&#8217;, &#8216;page&#8217;, &#8216;attachment&#8217;, &#8216;project&#8217;, &#8216;product&#8217;, &#8216;tribe_venue&#8217;, &#8216;tribe_events&#8217;, &#8216;tribe-ea-record&#8217;) AND ((wp_posts.post_status = &#8216;publish&#8217;))  ORDER BY wp_posts.ID ASC<br \/>\n\t\t\t) a<br \/>\n\t\t\tGROUP BY IF( post_parent = 0, ID, post_parent )<br \/>\n\t\t\tORDER BY EventStartDate ASC<br \/>\n\t\t\tLIMIT 100, 100<br \/>\n\t\t made by do_action(&#8216;wp_ajax_solr_options&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, SolrPower_Options-&gt;options_load, SolrPower_Batch_Index-&gt;fetch_next_posts, WP_Query-&gt;__construct, WP_Query-&gt;query, WP_Query-&gt;get_posts<\/p>\n<p>It&#8217;s similar to some errors other have reported. I can confirm that turning off Pro (and leaving regular Events Calendar on) makes the error go away.<\/p>\n","protected":false},"template":"","class_list":["post-1361340","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>Error when indexing with SOLR -<\/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\/error-when-indexing-with-solr\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error when indexing with SOLR -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m getting the following error when trying to index my site with SOLR using Pantheon&#8217;s Solr Search for WordPress plugin: WordPress database error Unknown column &#8216;EventStartDate&#8217; in &#8216;order clause&#8217; for query SELECT SQL_CALC_FOUND_ROWS * FROM ( SELECT DISTINCT wp_posts.ID FROM wp_posts LEFT JOIN wp_postmeta as wp_postmeta on wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = &#8216;_EventStartDate&#8217; WHERE [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/\" \/>\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\/error-when-indexing-with-solr\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/\",\"name\":\"Error when indexing with SOLR -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-10-10T00:38:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/#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\":\"Error when indexing with SOLR\"}]},{\"@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":"Error when indexing with SOLR -","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\/error-when-indexing-with-solr\/","og_locale":"en_US","og_type":"article","og_title":"Error when indexing with SOLR -","og_description":"I&#8217;m getting the following error when trying to index my site with SOLR using Pantheon&#8217;s Solr Search for WordPress plugin: WordPress database error Unknown column &#8216;EventStartDate&#8217; in &#8216;order clause&#8217; for query SELECT SQL_CALC_FOUND_ROWS * FROM ( SELECT DISTINCT wp_posts.ID FROM wp_posts LEFT JOIN wp_postmeta as wp_postmeta on wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = &#8216;_EventStartDate&#8217; WHERE [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/","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\/error-when-indexing-with-solr\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/","name":"Error when indexing with SOLR -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-10-10T00:38:43+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/error-when-indexing-with-solr\/#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":"Error when indexing with SOLR"}]},{"@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\/1361340","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\/1361340\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1361340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}