Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pravs 4 posts 24 karma points
    Oct 08, 2009 @ 04:53
    Pravs
    0

    "This page is intentionally left ugly :)" - Umbraco 404 error page

    Hi

    Can anyone suggest how to get rid of this annoying message in the "Page Not Found 404 error message".

    I get this message when the user clicks on the dead link and the page cannot be found.

     

    Following is the error message:

    *****************************************************

    Page not found

    No umbraco document matches the url 'http://infonet.bcc.qld.gov.au/advanced-search.aspx'

    umbraco tried this to match it using this xpath query'/root/node [@urlName = "advanced-search"] | /root/node/node [@urlName = "advanced-search"]')

    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.

    For more information, visit information about custom 404 on the umbraco website.

    This page is intentionally left ugly ;-)

    *****************************************************

    Thanks in advance.

    Pravs

  • skiltz 501 posts 701 karma points
    Oct 08, 2009 @ 05:19
    skiltz
    0

    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.

    Does this make sense?

  • Pravs 4 posts 24 karma points
    Oct 08, 2009 @ 05:26
    Pravs
    0

    Thanks Skiltz.. I saw the /Settings/Content folder but content folder does not have anything. 

    I am the end user for umbraco and our site was developed by external vendor.  So i am trying to understand how it works. 

    I am sure somewhere in the config files "This page is intentionally left ugly :) " is coded.  I am happy if i can get rid of this line.

    - Pravs

     

  • skiltz 501 posts 701 karma points
    Oct 08, 2009 @ 05:44
    skiltz
    0

    This text is actually hard coded in the core of umbraco!  Do you have access to the file system?  Because the best thing to do is as above. Create a new node in Umbraco with some "friendly text" and then change the node id in the umbracoSettings.config file.

    Let me know if you need more help.

  • Pravs 4 posts 24 karma points
    Oct 08, 2009 @ 05:55
    Pravs
    0

    Hmmm interesting to see why Umbraco has hard coded it. 

    I have access to Umbraco files.  I can see the following code from UmbracoSettings.Config file

     <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <!--        <errorPage culture="default">1</errorPage>-->
          <!--        <errorPage culture="en-US">200</errorPage>-->
          <error404>1</error404>
        </errors>

    How do i create node in Umbraco.  Is it just creating the folder.  Do i need to create errors/error404 in /Settings/Content folder.

    Pravs

     

  • skiltz 501 posts 701 karma points
    Oct 08, 2009 @ 06:05
    skiltz
    1

    Chnage

    <error404>1</error404> to the nodeid containing the "friendlytext"

    i.e <error404>1065</error404>

    In content tree in the backend of umbraco hover your mouse over a node.  In the status bar it will display the node id.

  • Pravs 4 posts 24 karma points
    Oct 08, 2009 @ 07:04
    Pravs
    0

    Thanks Skiltz... It worked.

    Much Appreciated your help.

    Pravs

     

  • Reinier Kops 3 posts 23 karma points
    Nov 20, 2009 @ 09:48
    Reinier Kops
    0

    Is is also possible to call a masterpage instead of an actual page?

  • Matthew Bettesworth 14 posts 35 karma points
    Sep 02, 2010 @ 10:22
    Matthew Bettesworth
    0

    Sorry, posted in the wrong thread! I'll move to the right place.

  • Janet Kirklen 102 posts 212 karma points
    Dec 31, 2010 @ 01:21
    Janet Kirklen
    1

    So have you noticed that you get a 404 Error when you click on the link from the Umbraco error page?

    Page not found

    No umbraco document matches the url 'http://infonet.bcc.qld.gov.au/advanced-search.aspx'

    umbraco tried this to match it using this xpath query'/root/node [@urlName = "advanced-search"] | /root/node/node [@urlName = "advanced-search"]')

    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.

     

    For more information, visit information about custom 404 on the umbraco website.

    Sort of ironic, isn't it...

  • Victor 10 posts 61 karma points
    Oct 22, 2013 @ 16:41
    Victor
    0

    Hi,

    I have followed what is written here and updated the following:

    in umbracoSettings.config I have:

        <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <!--<error404>
                       <errorPage culture="default">1</errorPage>
                       <errorPage culture="en-US">200</errorPage>
                </error404>-->
          <error404>11550</error404>
        </errors>

     

    in Web.config I got:

      <system.webServer>

       <httpErrors existingResponse="PassThrough"/>
      </system.webServer>

     

    I anticipated that with these simple settings, my 404 would be set.

    this DOES work for http://www.myDomainName.com/random_chars_what_so_ever,

     

    but it DOES NOT work for this scenario:

    if I have this valid url: http://www.myDomainName.com/5592/CountriesHotels/

    but request this: http://www.myDomainName.com/5592/CountriesHotels/random_chars_what_so_ever

    I still get umbraco ugly 404 page which is not the one I set and defined in the configs.

    further more if I request an image file that does not exist like this: http://www.myDomainName.com/5592/CountriesHotels/bogus_image_file.gif

    I get an error message on my page, saying that the image cannot be displayed because it contains errors.

    I anticipated for my defined 404 page.

    is there something that I have neglected in the configuration?

     

    I'm using Umbraco 6.1.2 and my defaultRenderingEngine is set to MVC

     

    vic.

  • Sharon 1 post 21 karma points
    Dec 03, 2013 @ 11:04
    Sharon
    0

    Hi there

    Does anyone know how to fix this in Version 4 of Umbraco?

    Thanks

    Sharon 

Please Sign in or register to post replies

Write your reply to:

Draft