{"id":1176248,"date":"2016-10-13T13:54:38","date_gmt":"2016-10-13T20:54:38","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/"},"modified":"2016-10-13T13:54:38","modified_gmt":"2016-10-13T20:54:38","slug":"broken-removal-of-slug-warning","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/","title":{"rendered":"Broken: removal of slug warning"},"content":{"rendered":"<p>Let me preface this by saying we have asked, and others have asked, this same question multiple times before. And each time updates to the Events Calendar break the solution we had been given, thus messing up every single site we developers have deployed the fix to. So here we go for a third solution to the same problem, with a third time of clients under our developers license not understanding why this erroneous error notice is showing:<\/p>\n<p>We need removed the slug conflict warning when a page exists at the calendar&#8217;s URL. It used to be the following code did the trick:<\/p>\n<pre><code>if ( class_exists( &#039;Tribe__Admin__Notice__Archive_Slug_Conflict&#039; ) ) {\n\tremove_action( &#039;admin_init&#039;, array( Tribe__Admin__Notice__Archive_Slug_Conflict::instance(), &#039;maybe_add_admin_notice&#039; ) );\n}<\/code><\/pre>\n<p>Unfortunately this action was removed, breaking the code we had deployed to get rid of this annoying, erroneous error that confuses our clients. The offending lines of code that generate this slug conflict warning are now 612-614, in src\/Tribe\/Main.php<\/p>\n<pre><code>if ( function_exists( &#039;tribe_notice&#039; ) ) {\n    tribe_notice( &#039;archive-slug-conflict&#039;, array( $this, &#039;render_notice_archive_slug_conflict&#039; ), &#039;dismiss=1&amp;type=error&#039; );\n}<\/code><\/pre>\n<p>Please provide us with a new workaround for disabling this notice. In the past we&#8217;ve suggested a simple checkbox be built into the settings for developers, there are so many reasons in advanced that we need a page at the same URL (for instance a banner image for the page, other content items on the page, sidebar options, etc. &#8212; to the client the fact that a calendar also exists is not rationale for breaking the entire metaphor of &#8220;I edit content on pages that exist&#8221;).<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1176248","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>Broken: removal of slug warning -<\/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\/broken-removal-of-slug-warning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Broken: removal of slug warning -\" \/>\n<meta property=\"og:description\" content=\"Let me preface this by saying we have asked, and others have asked, this same question multiple times before. And each time updates to the Events Calendar break the solution we had been given, thus messing up every single site we developers have deployed the fix to. So here we go for a third solution [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/\" \/>\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\/broken-removal-of-slug-warning\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/\",\"name\":\"Broken: removal of slug warning -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-13T20:54:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/#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\":\"Broken: removal of slug warning\"}]},{\"@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":"Broken: removal of slug warning -","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\/broken-removal-of-slug-warning\/","og_locale":"en_US","og_type":"article","og_title":"Broken: removal of slug warning -","og_description":"Let me preface this by saying we have asked, and others have asked, this same question multiple times before. And each time updates to the Events Calendar break the solution we had been given, thus messing up every single site we developers have deployed the fix to. So here we go for a third solution [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/","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\/broken-removal-of-slug-warning\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/","name":"Broken: removal of slug warning -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-13T20:54:38+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/broken-removal-of-slug-warning\/#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":"Broken: removal of slug warning"}]},{"@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\/1176248","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\/1176248\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1176248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}