My site http://www.hotaphrodite.com/
All I can see when I go to a 404 error page is the text below:
The requested URL /fsdffsdf was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”
Shouldn’t I see the 404.php of twenty eleven when I type something like http://www.hotaphrodite.com/anything ?
Your 404 page is working fine, exactly the way it should.
I thought I should see a 404 error message within my theme (twenty eleven), showing a list of sugestions of the correct page to the visitor, tags, the categories menu and things like that. That blank page with a text is really useless.
I already tried lots of plugins that were supposed to create a 404 error page like the one I described above, but when I type the wrong URL for my site all I see is, again, that blank page with the 404 error text. I thought that maybe I should remove the 404.php from my parental theme in order for the plugin to work, but shouldn’t the alterations I make on the child theme overwrite what’s in the parent?
Thanks for the help! Actually this seems to be the only one of my questions on the forums that’s being answered.
Perhaps you need to add a 404 error template to your child theme?
Thank you very much for answering so fast guys; for some bizarre reason, this seems to be the only of my questions that is being answered here in the forums.
So, esmi, I had already read that wordpress tutorial about the 404 error template; I’m using a twenty eleven child theme which already comes with a 404 Template file (404.php). Anyway, I read that tutorial again and I can’t find the piece of code it gives:
<?php get_header(); ?> <div id="content" class="narrowcolumn"> <h2 class="center">Error 404 - Not Found</h2> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Besides, I must confess that it really seems extremely odd to me the fact that the default twenty eleven 404 error page is that clumsy blank page with a text. I must also point that my knowledge regarding code editing is extremely poor, so it would take a lot of time for me to create a nice 404 error page out of nowhere, just by writing the code, which is exactly why I’ve been searching for a plugin to do so.
Well, any ideas?
Thank you very much for your help!
I’m using a twenty eleven child theme which already comes with a 404 Template file (404.php).
Where did you download this child theme from?
it really seems extremely odd to me the fact that the default twenty eleven 404 error page is that clumsy blank page with a text.
I’m sorry but I’m not sure what you’re referring to.
OK, I’m sorry, I expressed myself wrong. What I meant was that my parent theme has a 404.php -I followed the wordpress tutorial to crate the twenty eleven child theme.
About the “clumsy 404 error page”, I’m referring to tthe fact that when the URL is wrong, like in http://www.hotaphrodite.com/dfsdfsfs, all I see is a clumsy page with the “Not Found” text on it.
Well, as you see, I’m a newbie. Shouldn’t the 404 error page makes a person who writes any non-existent URL for my site, like http://www.hotaphrodite.com/anything, goes to that nice 404 page (like in http://www.hotaphrodite.com/?page_id=999)?
What should I do to make any wrong URL goes to the correct 404 error page (the one with suggestions of the right page)? An important thing to say is that my posts have no title or text, every post is just an image.
Shouldn’t the 404 error page makes a person who writes any non-existent URL for my site
Only if that url fits in with WP’s current permalink structure. If you switched to a custom permalink structure (say – one of the preset ones), you’d see that the 404.php template would then get picked up.
So, what should I do to make any miswritten URL sends to that nice 404 error page, the one with the suggestions? Or there’s no way to do it? I mean, like you said, only the miswritten urls that fit in with the wp permalink structure I’ve chosen on my settings will be redirected to that nice 404 page?
When I go to Settings > Permalinks, the Dafult option is selected, which makes my urls look like http://www.hotaphrodite.com/?p=123. Is there any option I could select in my permalinks settings to make any miswritten url redirects to the 404 page I want? I’m not sure if this could make a difference regarding this issue, but just remembering: my posts are just an image with no title nor text.
If you switched to a custom permalink structure (say – one of the preset ones), you’d see that the 404.php template would then get picked up.
Sorry for being such a pain, but I’m a beginner; considering what you just said and the fact that I’ve selected one of the preset permalinks structure, then shouldn’t all miswritten urls redirect to the correct 404 page?
- The topic ‘The default 404 error page of twenty eleven isn't working’ is closed to new replies.