WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] The default 404 error page of twenty eleven isn't working (29 posts)

  1. Gabriel Calil
    Member
    Posted 1 year ago #

    My site http://www.hotaphrodite.com/

    All I can see when I go to a 404 error page is the text below:
    "Not Found

    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 ?

    Thanks!

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Your 404 page is working fine, exactly the way it should.

  3. Gabriel Calil
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Perhaps you need to add a 404 error template to your child theme?

  5. Gabriel Calil
    Member
    Posted 1 year ago #

    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!

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  7. Gabriel Calil
    Member
    Posted 1 year ago #

    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.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Something like http://www.hotaphrodite.com/?page_id=999 works for me. since you aren't using custom permalinks, http://www.hotaphrodite.com/dfsdfsfs won't work at all.

  9. Gabriel Calil
    Member
    Posted 1 year ago #

    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.

    Thanks again!

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  11. Gabriel Calil
    Member
    Posted 1 year ago #

    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?

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Are you using a custom permalink structure yet?

  13. Gabriel Calil
    Member
    Posted 1 year ago #

    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.

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  15. Gabriel Calil
    Member
    Posted 1 year ago #

    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?

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    Select anything but the default one.

  17. Gabriel Calil
    Member
    Posted 1 year ago #

    Thank you very much, that worked!

    Like I said my posts have no title, but the image of the post does have a title, like: "hot gorgeous beautiful girl woman brunette 1". The idea is to make the images' titles sequential: the next image of a brinette will be entitled "hot gorgeous beautiful girl woman brunette 2", the first image of a blonde will be "hot gorgeous beautiful girl woman blonde 1", and so on. Is there a way to make the post's permalinks look like http://www.hotaphrodite.com/image-title ? Would that make any difference beyond aesthetics (like for SEO, for example)?

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    Try using the "Post name" preset permalink structure in Settings -> Permalinks.

  19. Gabriel Calil
    Member
    Posted 1 year ago #

    I did that and the url became http://www.hotaphrodite.com/297/. I guess Post name refers to the title of the post, it can't be replaced with the title of the image; at least not just by altering the settings in the dashboard. So, any ideas?

    Thanks again! You are being really helpful.

  20. esmi
    Forum Moderator
    Posted 1 year ago #

    Try again. Use the Post name preset.

  21. Gabriel Calil
    Member
    Posted 1 year ago #

    I did it again, selected the option "Post name" for the permalinks, and again the url became http://www.hotaphrodite.com/297/ instead of http://www.hotaphrodite.com/title-of-the-image. And I don't think it's something that takes time to update because the other times when I changed the permalinks, the modification could be seen right after being made. Just to remember: my posts are going to be like the one I have right now at the site, just an image with no title nor text.
    Something came to my mind right now: in case I achieve what I want with the permalinks, isn't it possible that I have problems because of the fact that my post's urls will be like http://www.hotaphrodite.com/hot-gorgeous-beautiful-girl-woman-blonde-1 and the only thing that will change among, lets say, the brunettes category urls will be the last number?

  22. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Why don't you use a title for the post? That will help you get the desired post name.

  23. Gabriel Calil
    Member
    Posted 1 year ago #

    Because my site will be pretty much like some kind of tumblr: it'll show just images of women. I'm sure that visitors who'll come to my site will be interested solely in the pictures of beautiful women, nothing else, which is exactly the reason why I'm keeping things as minimalists as possible. Besides, considering the content of the site, my post's titles would be like my images' titles, something like "hot gorgeous beautiful girl woman brunette 1, 2, 3" and so on; it'd be horrible in terms of aesthetics to see these sequential titles as post's titles, but it'd be perfect if I could show it just in the permalinks and hide it as post's titles when a visitor sees the site. So far I didn't find a way to do that.

    So, again, any ideas?

  24. Gabriel Calil
    Member
    Posted 1 year ago #

    The fact that my images titles will be like ""hot gorgeous beautiful girl woman brunette 1, 2, 3" and so on wouldn't cause a problem with the search mechanisms? Cause if I change my permalinks structure to looks like "http://www.hotaphrodite.com/image-title", the only difference among posts from the same category (like "Blondes", for example) would be the final number. I mean the permalinks would be extremely alike, can't it cause a search engine problem?

  25. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    hot gorgeous beautiful girl woman brunette 1, 2, 3" and so on wouldn't cause a problem with the search mechanisms

    Yes, you will have some problems. You can overcome it by trying like:

    Brunette: Hot gorgeous woman
    Brunette: A day on the beach
    Brunette: Beautiful girl in lingerie

    That means, while the first part shows the classification, the second part describes the woman.

  26. Gabriel Calil
    Member
    Posted 1 year ago #

    But it would only cause a problem if I put it as permalink, right? Or keep only my image titles like that would cause some problem too? Cause I use this tytles for my images just to organize myself in a better way.

    If I use exactly the same group of tags for different posts (each post on my site is an image), can it cause some problem?

    Thanks!

  27. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    If I use exactly the same group of tags for different posts (each post on my site is an image), can it cause some problem?

    You don't use the same group of tags as much as you are not going to post the same photos. They will vary in many aspects, and so shall the tags to suit individual images. That way, it will help only, not harm. Anyway, you may go ahead as you think fit. Make corrections on the way, if needed, as you progress. I have no more suggestions/ ideas.

    Good Luck!

  28. Gabriel Calil
    Member
    Posted 1 year ago #

    Thank you very much!

  29. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    You are welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic