Forums

404 error displaying sub-category content (11 posts)

  1. drekyn
    Member
    Posted 7 months ago #

    Hi there, I'm having this issue:
    I'm running wordpress 2.7 and I have several categories, each one have some subcategory inside it. when I select one of the subcategories, with some of the subcategories i get a 404 error, even if the subcategory DO HAVE posts inside it! the strange thing is that some other subcategory (with posts inside them) shows up one of the posts only, with the comment box underneath...

    I don't think this is a theme issue 'cause even with the default theme I'm experiencing the same issue...

    does anybody know where is the problem?

    thank you so much!

  2. esmi
    Member
    Posted 7 months ago #

    A link to your site might help.

  3. drekyn
    Member
    Posted 7 months ago #

    the site is in italian and needs registration, if you want i can mail you a user login so you can test it yourself :)

    thanks for reply!

  4. esmi
    Member
    Posted 7 months ago #

    Are you using custom permalinks? If so, have you tried using the default permalinks simply to try and eliminate custom permalinks as the cause of the problem?

  5. drekyn
    Member
    Posted 7 months ago #

    yes, i tried. i'm currently using %category/%postname% as permalink rule, and typing the correct id in the address (http://www.mysite.com/?cat=40, for example) i obtain the correct archive for that subcategory. this works even with custom permalinks and default permalinks.

    any idea? maybe a corrupted .htaccess?

    thanks for reply!

  6. WPspider
    Member
    Posted 7 months ago #

    Hello?

    Is anyone going to admit this is busted? I just loaded a NEW INSTALL of 2.7.1 and "Hello World" breaks (lands a 404) if you set Permalinks to /%category/%postname%

    This is obviously a code error, so why not somebody that's in charge of this project just post a status notice instead of having a bunch of people banking their heads for no reason?

    Meanwhile, to all you users of the software, if your custom code relies on the permalinks, you will either want to go back to an earlier version or be the hero that finds the broken code for the rest of us non-programmers.

  7. WPspider
    Member
    Posted 7 months ago #

    Okay, I'm a lamer. But maybe I can still be a hero for some of those banging their heads over this...

    After chewing out geniuses that build this software, I took my own advice and ripped out my entire Wordpress directory and database and restored them to an older version. But I still got 404 on my %category%/%postname% permalinks!

    This clearly meant it wasn’t the Wordpress 2.7.1 update.

    So, after a couple of WTFs, it occurred to me that it had to be permissions or the Apache server configuration. (I’m not a programmer, but I do hack a little admin here and there.)

    Anyway, first I ran my usual Wordpress premissions commands: chmod -R 644 * and then chmod -R +X * and made sure permissions were okay. But still, I got the 404s.

    So next, I grudging began scanning, line by line, through the httpd.conf file (which has moved a few times over the years and is now located at /etc/httpd/conf/httpd.conf in Fedora) and there it was! Properly placed between the <Directory> section was the AllowOverride directive set to none!

    Of course when the AllowOverride directive is set to none, the .htaccess file is completely ignored! So I quickly set it to all and BAM! everything worked.

    Of course, you may not want to set AllowOverride to all as there are other ramifications besides making your pretty permalinks work. But that’s something you can read about (see http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride) after your blog is serving up pretty linked pages.

    Hope that helps someone. And again, sorry to all you hard working Wordpress project people.

  8. Chris_K
    Administrator
    Posted 7 months ago #

    Glad to hear you got it sorted. :-)

    I realize I'm late to the party... but for future readers, that solution is covered on the Permalinks page in the docs section.

  9. drekyn
    Member
    Posted 7 months ago #

    the problem is that probably i cannot modify the httpd.conf file 'cause it is protected by my provider... perhaps i'm wrong (i hope so!), but is there another way to solve the problem?

  10. drekyn
    Member
    Posted 6 months ago #

    is there anyone who can help me?
    unfortunatley my host doesn't grant me access to the httpd.conf file... so, what should i do?

  11. Toly
    Member
    Posted 4 months ago #

    The WP No Category Base plugin takes care of this issue.

Reply

You must log in to post.

About this Topic