{"id":945951,"date":"2015-03-04T09:57:50","date_gmt":"2015-03-04T17:57:50","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/"},"modified":"2015-03-23T08:19:49","modified_gmt":"2015-03-23T15:19:49","slug":"404-errors-on-single-day-event-pages","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/","title":{"rendered":"404 Errors on Single Day Event Pages"},"content":{"rendered":"<p>Hello &#8211;<\/p>\n<p>I can&#8217;t resolve 404 errors that appear in Google Webmaster Tools which are generated by the Events Calendar Pro Plugin &#8211; they appear to happen on single day event pages where no events are present.  <\/p>\n<p>I&#8217;ve followed the troubleshooting steps outlined here (https:\/\/theeventscalendar.com\/knowledgebase\/fixing-http-404-errors\/) and have inserted the recommended function into my functions.php file (https:\/\/gist.github.com\/elimn\/877bc90421526d22900b).  When I run a single event page URL through a checker, like http:\/\/www.webconfs.com\/http-header-check.php it still shows an HTTP header of 404\/Not Found.  <\/p>\n<p>Here&#8217;s the debug output from one of the events pages:<\/p>\n<p>&lt;Tribe Events Query&gt;<br \/>\nobject(WP_Query)#124 (51) {<br \/>\n  [&#8220;query_vars&#8221;]=&gt;<br \/>\n  array(53) {<br \/>\n    [&#8220;post_type&#8221;]=&gt;<br \/>\n    string(12) &#8220;tribe_events&#8221;<br \/>\n    [&#8220;eventDisplay&#8221;]=&gt;<br \/>\n    string(3) &#8220;day&#8221;<br \/>\n    [&#8220;eventDate&#8221;]=&gt;<br \/>\n    string(10) &#8220;2012-11-12&#8221;<br \/>\n    [&#8220;error&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;m&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;p&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;post_parent&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;subpost&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;subpost_id&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;attachment&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;attachment_id&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;name&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;static&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;pagename&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;page_id&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;second&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;minute&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;hour&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;day&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;monthnum&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;year&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;w&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;category_name&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;tag&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;cat&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;tag_id&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;author&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;author_name&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;feed&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;tb&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;paged&#8221;]=&gt;<br \/>\n    int(0)<br \/>\n    [&#8220;comments_popup&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;meta_key&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;meta_value&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;preview&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;s&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;sentence&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;fields&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;menu_order&#8221;]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n    [&#8220;category__in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;category__not_in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;category__and&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;post__in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;post__not_in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;tag__in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;tag__not_in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;tag__and&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;tag_slug__in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;tag_slug__and&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;post_parent__in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;post_parent__not_in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;author__in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;author__not_in&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n  }<br \/>\n  [&#8220;tax_query&#8221;]=&gt;<br \/>\n  object(WP_Tax_Query)#352 (6) {<br \/>\n    [&#8220;queries&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;relation&#8221;]=&gt;<br \/>\n    string(3) &#8220;AND&#8221;<br \/>\n    [&#8220;table_aliases&#8221;:protected]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;queried_terms&#8221;]=&gt;<br \/>\n    array(0) {<br \/>\n    }<br \/>\n    [&#8220;primary_table&#8221;]=&gt;<br \/>\n    NULL<br \/>\n    [&#8220;primary_id_column&#8221;]=&gt;<br \/>\n    NULL<br \/>\n  }<br \/>\n  [&#8220;meta_query&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;date_query&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;post_count&#8221;]=&gt;<br \/>\n  int(0)<br \/>\n  [&#8220;current_post&#8221;]=&gt;<br \/>\n  int(-1)<br \/>\n  [&#8220;in_the_loop&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;comment_count&#8221;]=&gt;<br \/>\n  int(0)<br \/>\n  [&#8220;current_comment&#8221;]=&gt;<br \/>\n  int(-1)<br \/>\n  [&#8220;found_posts&#8221;]=&gt;<br \/>\n  int(0)<br \/>\n  [&#8220;max_num_pages&#8221;]=&gt;<br \/>\n  int(0)<br \/>\n  [&#8220;max_num_comment_pages&#8221;]=&gt;<br \/>\n  int(0)<br \/>\n  [&#8220;is_single&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_preview&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_page&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_archive&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_date&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_year&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_month&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_day&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_time&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_author&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_category&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_tag&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_tax&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_search&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_feed&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_comment_feed&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_trackback&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_home&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_404&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_comments_popup&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_paged&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_admin&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_attachment&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_singular&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_robots&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_posts_page&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;is_post_type_archive&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;query_vars_hash&#8221;:&#8221;WP_Query&#8221;:private]=&gt;<br \/>\n  string(32) &#8220;aab7512d662450c2ba8eaa56dbcb5504&#8221;<br \/>\n  [&#8220;query_vars_changed&#8221;:&#8221;WP_Query&#8221;:private]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;thumbnails_cached&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;stopwords&#8221;:&#8221;WP_Query&#8221;:private]=&gt;<br \/>\n  NULL<br \/>\n  [&#8220;query&#8221;]=&gt;<br \/>\n  array(3) {<br \/>\n    [&#8220;post_type&#8221;]=&gt;<br \/>\n    string(12) &#8220;tribe_events&#8221;<br \/>\n    [&#8220;eventDisplay&#8221;]=&gt;<br \/>\n    string(3) &#8220;day&#8221;<br \/>\n    [&#8220;eventDate&#8221;]=&gt;<br \/>\n    string(10) &#8220;2012-11-12&#8221;<br \/>\n  }<br \/>\n  [&#8220;tribe_is_event&#8221;]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;tribe_is_multi_posttype&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;tribe_is_event_category&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;tribe_is_event_venue&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;tribe_is_event_organizer&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;tribe_is_event_query&#8221;]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;tribe_is_past&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n}<br \/>\nQuery Results:<br \/>\narray(0) {<br \/>\n}<br \/>\nis_404() =<br \/>\nbool(false)<br \/>\n&lt;\/Tribe Events Query&gt;<\/p>\n<p>Thanks for any help&#8230;<br \/>\nBrian<\/p>\n","protected":false},"template":"","class_list":["post-945951","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>404 Errors on Single Day Event Pages  -<\/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\/404-errors-on-single-day-event-pages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"404 Errors on Single Day Event Pages  -\" \/>\n<meta property=\"og:description\" content=\"Hello &#8211; I can&#8217;t resolve 404 errors that appear in Google Webmaster Tools which are generated by the Events Calendar Pro Plugin &#8211; they appear to happen on single day event pages where no events are present. I&#8217;ve followed the troubleshooting steps outlined here (https:\/\/theeventscalendar.com\/knowledgebase\/fixing-http-404-errors\/) and have inserted the recommended function into my functions.php file [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-23T15:19:49+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=\"3 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\/404-errors-on-single-day-event-pages\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/\",\"name\":\"404 Errors on Single Day Event Pages -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-03-04T17:57:50+00:00\",\"dateModified\":\"2015-03-23T15:19:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/#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\":\"404 Errors on Single Day Event Pages\"}]},{\"@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":"404 Errors on Single Day Event Pages  -","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\/404-errors-on-single-day-event-pages\/","og_locale":"en_US","og_type":"article","og_title":"404 Errors on Single Day Event Pages  -","og_description":"Hello &#8211; I can&#8217;t resolve 404 errors that appear in Google Webmaster Tools which are generated by the Events Calendar Pro Plugin &#8211; they appear to happen on single day event pages where no events are present. I&#8217;ve followed the troubleshooting steps outlined here (https:\/\/theeventscalendar.com\/knowledgebase\/fixing-http-404-errors\/) and have inserted the recommended function into my functions.php file [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/","article_modified_time":"2015-03-23T15:19:49+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/","name":"404 Errors on Single Day Event Pages -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-03-04T17:57:50+00:00","dateModified":"2015-03-23T15:19:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/404-errors-on-single-day-event-pages\/#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":"404 Errors on Single Day Event Pages"}]},{"@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\/945951","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\/945951\/revisions"}],"predecessor-version":[{"id":946180,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/945951\/revisions\/946180"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=945951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}