{"id":1309937,"date":"2017-06-28T00:15:38","date_gmt":"2017-06-28T07:15:38","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/"},"modified":"2017-06-28T00:15:38","modified_gmt":"2017-06-28T07:15:38","slug":"community-events-user-event-deletion-not-working","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/","title":{"rendered":"Community Events User Event Deletion Not Working"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I have found that the ability for a user to delete their own event in the Community Events plugin does not function. I have done the following for troubleshooting:<\/p>\n<ul>\n<li>Revert to 2017 Theme<\/li>\n<li>Disable all plugins except Tribe plugins (Events Calendar, Events Calendar Pro, Community Events<\/li>\n<li>Verified that the ability to &#8220;Remove Events&#8221; was checked underneath Events Calendar Settings -&gt; Community Events<\/li>\n<li>Attempted with all role access levels up to Administrator<\/li>\n<li>Attempted with a draft event and a published event<\/li>\n<\/ul>\n<p>Please note that this is using the &#8220;\/events\/community\/list\/&#8221; view on the front-end.<\/p>\n<p>I tracked down the code where this operation is occurring in the &#8220;\/src\/Tribe\/Main.php&#8221; file of the Community Events plugin. On line 1517 under the &#8220;doDelete&#8221; function, it attempts to do a meta-capability check and a nonce verify. Removing the nonce verify does allow the event to be removed. The meta-capability check is functioning correctly.<\/p>\n<p>Due to the fact that the delete button does show, the capability check is working (since the $canDelete variable in the view is set to true).<\/p>\n<p>In addition, I do see that the _wpnonce is being passed via a GET parameter in the URL and that the actions match in the code (tribe_community_events_delete). I then logged the nonce URL being created for the view and the $_GET where &#8220;_wpnonce&#8221; is being read from and found that in the doDelete function $_GET is empty. It appears that the function cannot read that variable, or by the time it is being called the $_GET variable is set to empty.<\/p>\n<p>Please advise as to the next steps, I can do further debugging to find the fix for this or if there is something wrong in my methodology or setup, I would appreciate your expertise. Thank you!<\/p>\n<p>-Adam Listek<\/p>\n","protected":false},"template":"","class_list":["post-1309937","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>Community Events User Event Deletion Not Working -<\/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\/community-events-user-event-deletion-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Community Events User Event Deletion Not Working -\" \/>\n<meta property=\"og:description\" content=\"Hello, I have found that the ability for a user to delete their own event in the Community Events plugin does not function. I have done the following for troubleshooting: Revert to 2017 Theme Disable all plugins except Tribe plugins (Events Calendar, Events Calendar Pro, Community Events Verified that the ability to &#8220;Remove Events&#8221; was [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/\" \/>\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\/community-events-user-event-deletion-not-working\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/\",\"name\":\"Community Events User Event Deletion Not Working -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-28T07:15:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/#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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Community Events User Event Deletion Not Working\"}]},{\"@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":"Community Events User Event Deletion Not Working -","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\/community-events-user-event-deletion-not-working\/","og_locale":"en_US","og_type":"article","og_title":"Community Events User Event Deletion Not Working -","og_description":"Hello, I have found that the ability for a user to delete their own event in the Community Events plugin does not function. I have done the following for troubleshooting: Revert to 2017 Theme Disable all plugins except Tribe plugins (Events Calendar, Events Calendar Pro, Community Events Verified that the ability to &#8220;Remove Events&#8221; was [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/","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\/community-events-user-event-deletion-not-working\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/","name":"Community Events User Event Deletion Not Working -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-28T07:15:38+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-user-event-deletion-not-working\/#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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Community Events User Event Deletion Not Working"}]},{"@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\/1309937","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\/1309937\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1309937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}