{"id":1050219,"date":"2016-01-04T22:56:48","date_gmt":"2016-01-05T06:56:48","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/"},"modified":"2016-02-18T08:33:35","modified_gmt":"2016-02-18T16:33:35","slug":"returning-issues-with-posts-2-posts-and-events-calendar-compatability","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/","title":{"rendered":"Returning issues with Posts 2 Posts and Events Calendar compatability"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;m running into compatibility issues with Events Calendar and Scribu&#8217;s Posts 2 Posts plugin. The issue appears to be the same or similar to this issue from several years ago: https:\/\/theeventscalendar.com\/support\/forums\/topic%2Fposts-2-posts-connections\/?source=tri.be <\/p>\n<p>I have followed the steps outlined by another blogger, who seems to be experiencing the same issue after upgrading their WP and Events Calendar installs to the most recent versions: http:\/\/4hoursoftware.com\/test\/2015\/01\/14\/the-event-calendar-and-posts-2-posts-plugin-compatibility-issue-query\/<\/p>\n<p>Is this a known issue and, if so, are there any workarounds? I&#8217;m not even especially wedded to the Posts 2 Posts plugin \u2013 I simply need a way to assign speakers to events in a reciprocal way.<\/p>\n<p>For reference, here&#8217;s the debug error I&#8217;m receiving (modified to removed identifying info):<\/p>\n<p>WordPress database error: [Incorrect usage\/placement of &#8216;SQL_CALC_FOUND_ROWS&#8217;]<br \/>\nSELECT DISTINCT wp_posts.*, wp_p2p.* FROM wp_posts INNER JOIN wp_p2p WHERE 1=1 AND wp_posts.post_type = &#8216;artists&#8217; AND (wp_posts.post_status = &#8216;publish&#8217; OR wp_posts.post_status = &#8216;private&#8217;) AND (wp_p2p.p2p_type = &#8216;events_to_artists2&#8217; AND wp_posts.ID = wp_p2p.p2p_to AND wp_p2p.p2p_from IN ( SELECT SQL_CALC_FOUND_ROWS * FROM ( SELECT DISTINCT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta as tribe_event_end_date ON ( wp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = &#8216;_EventEndDateUTC&#8217; ) WHERE 1=1 AND wp_posts.ID IN (13) AND ( wp_postmeta.meta_key = &#8216;_EventStartDateUTC&#8217; ) AND wp_posts.post_type = &#8216;tribe_events&#8217; AND (wp_posts.post_status = &#8216;publish&#8217; OR wp_posts.post_status = &#8216;private&#8217;) ORDER BY wp_posts.post_date DESC ) a GROUP BY IF( post_parent = 0, ID, post_parent ) ORDER BY EventStartDate ASC )) ORDER BY wp_posts.post_date DESC \/* From [sitename.com\/event\/eventname\/] in [\/nas\/content\/live\/sitename\/wp-content\/themes\/twentyfifteen\/tribe-events\/single-event.php:65] *\/<\/p>\n<p>Best,<br \/>\nConnor<\/p>\n","protected":false},"template":"","class_list":["post-1050219","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>Returning issues with Posts 2 Posts and Events Calendar compatability -<\/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\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Returning issues with Posts 2 Posts and Events Calendar compatability -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I&#8217;m running into compatibility issues with Events Calendar and Scribu&#8217;s Posts 2 Posts plugin. The issue appears to be the same or similar to this issue from several years ago: https:\/\/theeventscalendar.com\/support\/forums\/topic%2Fposts-2-posts-connections\/?source=tri.be I have followed the steps outlined by another blogger, who seems to be experiencing the same issue after upgrading their WP and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:33:35+00:00\" \/>\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\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/\",\"name\":\"Returning issues with Posts 2 Posts and Events Calendar compatability -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-05T06:56:48+00:00\",\"dateModified\":\"2016-02-18T16:33:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/#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\":\"Returning issues with Posts 2 Posts and Events Calendar compatability\"}]},{\"@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":"Returning issues with Posts 2 Posts and Events Calendar compatability -","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\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/","og_locale":"en_US","og_type":"article","og_title":"Returning issues with Posts 2 Posts and Events Calendar compatability -","og_description":"Hi there, I&#8217;m running into compatibility issues with Events Calendar and Scribu&#8217;s Posts 2 Posts plugin. The issue appears to be the same or similar to this issue from several years ago: https:\/\/theeventscalendar.com\/support\/forums\/topic%2Fposts-2-posts-connections\/?source=tri.be I have followed the steps outlined by another blogger, who seems to be experiencing the same issue after upgrading their WP and [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/","article_modified_time":"2016-02-18T16:33:35+00:00","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\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/","name":"Returning issues with Posts 2 Posts and Events Calendar compatability -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-05T06:56:48+00:00","dateModified":"2016-02-18T16:33:35+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/returning-issues-with-posts-2-posts-and-events-calendar-compatability\/#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":"Returning issues with Posts 2 Posts and Events Calendar compatability"}]},{"@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\/1050219","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1050219\/revisions"}],"predecessor-version":[{"id":1050220,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1050219\/revisions\/1050220"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1050219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}