Categories and 404 Error in Wordpress

Discussion in 'WordPress' started by TheLimeDesign, Feb 29, 2008.

  1. #1
    Hi there guys, just got the following site setup:

    http://weddingstrategies.com/

    I have the categories listed on the left sidebar. However, I'm facing problems with ONE page here:

    http://weddingstrategies.com/category

    Which page does this URL refer to? I checked 404.php, archive.php but couldn't find the flaw. The categories are made into several category-##.php files so its not using category.php

    Anyone can help?
     
    TheLimeDesign, Feb 29, 2008 IP
  2. walkere

    walkere Active Member

    Messages:
    112
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    That doesn't point to a page at all - that's why it comes up with the title "Nothing found..." That's loading the custom 404 error page.

    If you're looking for the template page that displays the category listings, that's usually archive.php I believe.

    - Walkere
     
    walkere, Feb 29, 2008 IP
  3. TheLimeDesign

    TheLimeDesign Well-Known Member

    Messages:
    504
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #3
    But if it loads the custom 404.php page, then it should'nt actually look like that. The actual page has been adjusted accordingly to fit the theme. That page has some table items too, which, none of the pages now have. Any idea?
     
    TheLimeDesign, Mar 1, 2008 IP
  4. walkere

    walkere Active Member

    Messages:
    112
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    In most of the template pages, there's a basic if/else statement.

    If posts are found in that category, they are displayed. Otherwise, some sort of "Not Found" is displayed.

    For example, this is in the default archive.php template...

    <?php else : ?>
        <h2 class="center">Not Found</h2>
        <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    <?php endif; ?>
    PHP:
    Might have something to do with that.

    - Walkere
     
    walkere, Mar 1, 2008 IP
  5. digimaya

    digimaya Banned

    Messages:
    320
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Is your problem sorted out yet?
     
    digimaya, Mar 1, 2008 IP
  6. TheLimeDesign

    TheLimeDesign Well-Known Member

    Messages:
    504
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #6
    That's exactly what I have in my archive.php too. No 404 error. I dont know where is the 404 coming from at all..

    edited:
    Well, I removed the 404.php file from the template folder and the page is now rendering perfectly. I don't know what was causing it and I hope removing the 404 page was not a mistake to do. But thanks a lot guys. :)

    Digimaya, yeah, the problem is now solved (somewhat) but I'm up for learning if you do have a workaround..
     
    TheLimeDesign, Mar 1, 2008 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It's referring to your 404.php template file. Are you using the Category Base Killer plugin, or did you directly edit your wp-includes/rewrite.php file to remove the category base from your category, archive and tag URL strings? If you did either one, you'll have to add a file extension (.htm, .html, .php .mydoglarry - ok, I made that last one up) to your blog posts in Options > Permalinks in the Custom Structure form field.

    For more information, please refer to my comment on Brian Shoff's blog (he's the creator of the Category Base Killer plugin). http://www.brianshoff.com/wordpress/category-base-removal-plugin.htm#comment-1544
     
    Dan Schulz, Mar 1, 2008 IP
  8. TheLimeDesign

    TheLimeDesign Well-Known Member

    Messages:
    504
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Thanks Dan, but none of them were in play. Its okay though, the problem has been figured out by deleting the 404.php file and I dont seem to see anymore conflicts now. Thanks for the responses guys..
     
    TheLimeDesign, Mar 2, 2008 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Then that tells me there's a syntax problem with your theme files as the 404.php file should NEVER do that.
     
    Dan Schulz, Mar 2, 2008 IP