{"id":1376346,"date":"2017-11-06T11:53:03","date_gmt":"2017-11-06T19:53:03","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/"},"modified":"2017-11-06T11:53:03","modified_gmt":"2017-11-06T19:53:03","slug":"errors-sql-and-on-scheduler","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/","title":{"rendered":"Errors: SQL and on Scheduler"},"content":{"rendered":"<p>We cannot get the scheduled job to pull in events. Here are two errors; one from the debug log and the other<br \/>\nERROR 1:<br \/>\nDebug log shows:<br \/>\n[06-Nov-2017 16:35:31 UTC] WordPress database error Unknown column &#8216;post_parent&#8217; in &#8216;group statement&#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 wphd_4_posts.ID FROM wphd_4_posts  INNER JOIN wphd_4_postmeta ON ( wphd_4_posts.ID = wphd_4_postmeta.post_id ) LEFT JOIN wphd_4_postmeta as tribe_event_end_date ON ( wphd_4_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = &#8216;_EventEndDate&#8217; )  WHERE 1=1  AND (<br \/>\n  wphd_4_postmeta.meta_key = &#8216;_EventStartDate&#8217;<br \/>\n) AND wphd_4_posts.post_type = &#8216;tribe_events&#8217; AND ((wphd_4_posts.post_status = &#8216;publish&#8217;)) AND ((wphd_4_postmeta.meta_value &gt;= &#8216;2017-11-06 00:00:00&#8217; AND wphd_4_postmeta.meta_value &lt;= &#8216;2018-02-04 23:59:59&#8217;) OR (tribe_event_end_date.meta_value &gt;= &#8216;2017-11-06 00:00:00&#8217; AND wphd_4_postmeta.meta_value &lt;= &#8216;2018-02-04 23:59:59&#8217; ) OR (wphd_4_postmeta.meta_value &lt; &#8216;2017-11-06 00:00:00&#8217; AND tribe_event_end_date.meta_value &gt;= &#8216;2018-02-04 23:59:59&#8217; )) ORDER BY wphd_4_posts.post_date 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 20, 20<br \/>\n\t\t made by require(&#8216;wp-blog-header.php&#8217;), wp, WP-&gt;main, WP-&gt;parse_request, do_action_ref_array, WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, call_user_func_array, rest_api_loaded, WP_REST_Server-&gt;serve_request, WP_REST_Server-&gt;dispatch, call_user_func, Tribe__Events__REST__V1__Endpoints__Archive_Event-&gt;get, Tribe__Events__REST__V1__Endpoints__Archive_Event-&gt;has_next, tribe_get_events, Tribe__Events__Query::getEvents, WP_Query-&gt;__construct, WP_Query-&gt;query, WP_Query-&gt;get_posts<br \/>\n[06-Nov-2017 16:35:31 UTC] WordPress database error Unknown column &#8216;post_parent&#8217; in &#8216;group statement&#8217; for query <\/p>\n<p>ERROR 2:<br \/>\nAttempt to schedule a new job.<br \/>\nerror message:<br \/>\n&#8220;There was an error fetching the results from your import: Events could not be imported. The URL provided could be reached and has The Events Calendar REST API enabled, but returned an empty archive page. Learn more.<br \/>\nTry to adjust your import settings and try again.&#8221;<\/p>\n<p>Learn More link https:\/\/theeventscalendar.com\/knowledgebase\/other-url-import-errors-in-event-aggregator goes to a 404 page<\/p>\n","protected":false},"template":"","class_list":["post-1376346","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>Errors: SQL and on Scheduler -<\/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\/errors-sql-and-on-scheduler\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Errors: SQL and on Scheduler -\" \/>\n<meta property=\"og:description\" content=\"We cannot get the scheduled job to pull in events. Here are two errors; one from the debug log and the other ERROR 1: Debug log shows: [06-Nov-2017 16:35:31 UTC] WordPress database error Unknown column &#8216;post_parent&#8217; in &#8216;group statement&#8217; for query SELECT SQL_CALC_FOUND_ROWS * FROM ( SELECT DISTINCT wphd_4_posts.ID FROM wphd_4_posts INNER JOIN wphd_4_postmeta ON [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/\" \/>\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\/errors-sql-and-on-scheduler\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/\",\"name\":\"Errors: SQL and on Scheduler -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-11-06T19:53:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/#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\":\"Event Aggregator\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Errors: SQL and on Scheduler\"}]},{\"@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":"Errors: SQL and on Scheduler -","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\/errors-sql-and-on-scheduler\/","og_locale":"en_US","og_type":"article","og_title":"Errors: SQL and on Scheduler -","og_description":"We cannot get the scheduled job to pull in events. Here are two errors; one from the debug log and the other ERROR 1: Debug log shows: [06-Nov-2017 16:35:31 UTC] WordPress database error Unknown column &#8216;post_parent&#8217; in &#8216;group statement&#8217; for query SELECT SQL_CALC_FOUND_ROWS * FROM ( SELECT DISTINCT wphd_4_posts.ID FROM wphd_4_posts INNER JOIN wphd_4_postmeta ON [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/","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\/errors-sql-and-on-scheduler\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/","name":"Errors: SQL and on Scheduler -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-11-06T19:53:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/errors-sql-and-on-scheduler\/#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":"Event Aggregator","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/"},{"@type":"ListItem","position":5,"name":"Errors: SQL and on Scheduler"}]},{"@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\/1376346","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\/1376346\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1376346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}