Webmaster tools 404 crawl errors recurring events feed and upcoming events page

Home Forums Calendar Products Events Calendar PRO Webmaster tools 404 crawl errors recurring events feed and upcoming events page

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #51137
    Barry
    Member

    Yes that does look like it is coming from Yoast’s plugin:

    <!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.7 - http://yoast.com/wordpress/seo/ -->
    <meta name="robots" content="noodp,noydir"/>
    <link rel="canonical" href="http://www.margaretriverguide.com.au/event/category/live-events/page/8/" />
    <!-- / Yoast WordPress SEO plugin. -->

    (And thanks for bearing with me while we zeroed in on that.)

    If you want to target past events only you could possibly use something like:

    if (tribe_is_past()) { /* ... your WPSEO tweak */ }

    You might also combine WordPress and The Events Calendar conditionals:

    if (is_archive() and tribe_is_event()) { /* ... your WPSEO tweak */ }

    If that sort of approach doesn’t work you could try a ‘dirtier’ approach of inspecting the request string and checking for the presence of elements such as the /events/ segment in the URL.

    #51141
    Benji
    Participant

    Yey nice work Barry. Good team on this. the second code is working a charm

    ** remove canonical link from events archives */
    function wpseo_canonical_exclude( $canonical ) {
    global $post;
    if (is_archive() and tribe_is_event()) {
    $canonical = false;
    }
    return $canonical;
    }
    add_filter( ‘wpseo_canonical’, ‘wpseo_canonical_exclude’ );

    So all is now good. I think around 700 404s fixed with these two edits in this thread 🙂

    I would like to ask if you have any knowledge of why the standard category archives are now playing up? eg
    404: http://www.margaretriverguide.com.au/news/page/2
    link from: http://www.margaretriverguide.com.au/news/

    I see this problem on a few categories archives (those which are paginated)
    I have done the standard disable plugins and this did not work. I can not replicate the issue on my test site though? Any thoughts are welcome although I know this is not events calendar directly 🙂 but more a break in the theme.
    Thank you

    #51146
    Barry
    Member

    Yeah it’s from the Previous Posts link right? I’m not sure without checking to see how the theme determines the need to display that link – which I’m afraid is outwith the support we can offer (since, as you say, it isn’t related to The Events Calendar).

    Are the databases of your dev and production sites in synch – is it possible there is a difference in settings (or active plugins) that might explain why you see it on one and not the other?

    #51230
    Benji
    Participant

    Thank you. replicating issue now and seems to be in theme somewhere as with all plugins deactivated it still happens. Category slug being stripped from the URL. Any way all good as on to it.
    FYI seems there were many more issues with 404s in webmaster tools and all I can see this being down to is a broken site map maker. seems all is good now with the changes we have done above and upgrading my site map plugin (now using Yoast wordpress SEO) Thanks again

    #51302
    Barry
    Member

    No problem, hope you get on track with this. Since based on what you’ve told me I don’t think there are any more issues stemming from The Events Calendar itself I’ll go ahead and mark this closed, but please feel free to create new threads as needed for any further issues.

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Webmaster tools 404 crawl errors recurring events feed and upcoming events page’ is closed to new replies.