SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Webmaster Tools isn't happy with my wordpress, please help

    I have a number of wordpress sites that are all having the same problem. In Webmaster tools I'm getting 404 error messages. But the list of urls doesn't make any sense:

    http://www.tightsandfights.com/2007/<li class= 404 (Not found)Help
    Loading...

    Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/10/<li class= 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/...t-ratings.html 404 (Not found)Help Help
    Sep 13, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/12/<li class= 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/12/fret-dreams/<li class= 404 (Not found)Help Help
    Sep 13, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 13, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 13, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2007/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2008/<li class= 404 (Not found)Help Help
    Sep 13, 2008
    http://www.tightsandfights.com/2008/...hats-evil.html 404 (Not found)Help Help
    Sep 16, 2008
    http://www.tightsandfights.com/2008/...elygirl15.html 404 (Not found)Help Help
    Sep 15, 2008
    http://www.tightsandfights.com/2008/07/13/<li class= 404 (Not found)Help Help
    Sep 12, 2008
    http://www.tightsandfights.com/2008/...sandfights.com 404 (Not found)Help Help
    Sep 12, 2008
    http://www.tightsandfights.com/2008/1/<li class= 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2008/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2008/2/<li class= 404 (Not found)Help Help
    Sep 14, 2008
    http://www.tightsandfights.com/2008/...sandfights.com 404 (Not found)Help Help
    Sep 14, 2008
    http://www.tightsandfights.com/2008/7/<li class= 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2008/...sandfights.com 404 (Not found)Help Help
    Sep 9, 2008
    http://www.tightsandfights.com/2008/...sandfights.com 404 (Not found)Help Help
    Sep 16, 2008
    http://www.tightsandfights.com/about/the-cast-of-tights-and-fights/<li class= 404 (Not found)Help Help
    Sep 8, 2008

    For some reason google is adding either the domain or "<li class=" to the end of all these urls. But I can't figure out why?? Please help.

    The sitemap is correct:

    http://www.tightsandfights.com/sitemap.xml

    Any ideas?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,420
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    I didn't check them all, but
    http://www.tightsandfights.com/about/the-cast-of-tights-and-fights/
    view-source shows
    HTML Code:
    <div id="topmenu_links"><ul>
    <li><a title="Original Video Series" href="<li class="page_item page-item-59">
    <a href="http://www.tightsandfights.com/home/" title="Home">Home</a></li>
    And in Opera, http://www.tightsandfights.com/2007/10/overnight-ratings.html shows
    HTML Code:
    <title>Nothing found for  2007 10 Overnight-ratings</title>

  3. #3
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's the php for that menu:

    PHP Code:
    <div id="topmenu_links"><ul><li><a title="Original Video Series" href="<?php wp_list_pages('title_li=&depth=1'); ?><li>|</li><li><?php wp_loginout(); ?> </li></ul>
    </div><br/>
    What did I do wrong?

  4. #4
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so I took out:

    <a title="Original Video Series" href="

    And I think that fixes that one. But what about the links with the domain repeated after it? Any ideas?

  5. #5
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I'm thinking the problem is in this piece of code:


    PHP Code:
    <div class="datetime">
    <?php the_time('l'?>, <a href="<?php bloginfo('url'); ?>/<?php the_time('Y/n'?>"><?php the_time('F'?></a> <?php the_time('jS'?>, <a href="<?php bloginfo('url'); ?>/<?php the_time('Y'?>"><?php the_time('Y'?></a> - <?php the_time() ?><br/>
    Filed Under: <?php the_category(', '?> 
    </div>
    This is part of the blog navagation. Am I doing this right?

  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,420
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    It's good you found the problem for that one at least. I couldn't find any links like
    site/year/month/title/site
    anywhere. Any idea what page the links are coming from?
    Maybe a template file with a misplaced get_option('home') in a link loop?

    Edit:
    That looks OK to me, It should look something like
    HTML Code:
    Tuesday, <a href="site/2008/09/">September</a> 23rd,
    <a href="site/2008">2008</a> - 4:57 pm<br/>
    I don't see an extra "site" at the end there.

    Look for the bloginfo('url'); where it shouldn't be.

  7. #7
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I"m wondering if the open <a> tag was cascading through all the links...maybe just for the spider.

    But the loop thing, that could be. I'm pretty new to php and wordpress and build all these sites off of the same root template that I coded myself.

    This is the loop I've built for a single post:

    PHP Code:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>


    <div class="post_title">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    </div> <! close post title >

    <div class="post_content">
    <?php the_content(__('Read more'));?>
    </div> <! close post content >

    <div class="navigation">
    <?php previous_post_link('&laquo; %link''Previous Episode'TRUE); ?> ∞
    <?php next_post_link('%link &raquo;''Next Episode'TRUE); ?>
    </div>


    <div class="datetime">
    <?php the_time('l'?>, <a href="<?php bloginfo('url'); ?>/<?php the_time('Y/n'?>"><?php the_time('F'?></a> <?php the_time('jS'?>, <a href="<?php bloginfo('url'); ?>/<?php the_time('Y'?>"><?php the_time('Y'?></a> - <?php the_time() ?><br/>
    Filed Under: <?php the_category(', '?> 
    </div>

    <div class="post_tag">
    <a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">Subscribe</abbr>'); ?></a> 

    <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {// Both Comments and Pings are open ?> | <a href="#respond">Comment</a> | <a href="<?php trackback_url(); ?>" rel="trackback">Trackback</a><br/>


    <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {// Only Pings are Open ?> | <a href="<?php trackback_url(); ?> " rel="trackback">Trackback</a> | 


    <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    // Comments are open, Pings are not ?>    You can skip to the end and leave a response. Pinging is currently not allowed.

    <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>

    <?php edit_post_link('Edit','',''); ?>


                </div>

        <?php comments_template(); ?>

        <?php endwhile; else: ?>

            <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>
    Feel free to critique it in general.

    Thanks everyone

  8. #8
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It must be this line:

    PHP Code:
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    Do I need the <a> if I'm using:
    PHP Code:
    <?php the_permalink() ?>

  9. #9
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,420
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    I looked at several themes' index.php files
    HTML Code:
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_time('j F Y'); ?></a>
    <a href="<?php the_permalink() ?>" rel="bookmark" class="postlink" title="<?php bloginfo('name');?>: <?php the_title(); ?>"><?php the_title(); ?></a>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a>
    <a href="<?php the_permalink(); ?>" title="Permalink for <?php the_title(); ?>"><?php the_title(); ?></a>
    <a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to &#37;s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a>
    <a href="<?php the_permalink(); ?>" title="Permalink for <?php the_title(); ?>"><?php the_title(); ?></a>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    It looks like the usual syntax is similar to yours. I'm thinking those links are a result of
    PHP Code:
    <a title="Original Video Series"
     href="<?php wp_list_pages('title_li=&depth=1'); ?>
    <li>|</li>
    <li><?php wp_loginout(); ?> </li>
    </ul> 
    </div><br/>
    PHP Code:
     href="<?php wp_list_pages('title_li=&depth=1'); ?>
    <li>
    would get rendered something like
    PHP Code:
     href="<li class="page_item page-item-12">
    <a href="
    http://www.mittineague.com/blog/blog-map/"
     
    title="Blog Map">Blog Map</a></li>
    ....[
    a li-/li for each additional page here]
    <
    li
    and with the unclosed a tag and mixed up mark-up, it is probable the those site/year/month/title/site links are the "best guess" that the search bot could come up with.

  10. #10
    SitePoint Enthusiast TopherX's Avatar
    Join Date
    Sep 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I fixed the other thing by the way. it was a bad link in the footer http:www.tigh... I guess wordpress or the spider just guessed at it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •