• 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!

Viewing 10 replies - 1 through 10 (of 10 total)
  • A link to your site might help.

    Thread Starter drekyn

    (@drekyn)

    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!

    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?

    Thread Starter drekyn

    (@drekyn)

    yes, i tried. i’m currently using %category/%postname% as permalink rule, and typing the correct id in the address (https://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!

    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.

    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 https://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.

    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.

    Thread Starter drekyn

    (@drekyn)

    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?

    Thread Starter drekyn

    (@drekyn)

    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?

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘404 error displaying sub-category content’ is closed to new replies.