Copied to clipboard

Flag this post as spam?

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


  • Carrie 20 posts 42 karma points
    May 17, 2013 @ 16:29
    Carrie
    0

    Custom 404 not working for No template exists

    Hi there,

    We have a custom 404 page that works when we go to a non-existant page, ie http://domain.com/nothinghere.aspx.

    When we go to a node that does not have a template, it displays the "ugly" page not found instead of the custom page:

    Page not found
    No template exists to render the document at url 'http:/domain.com/services-pricing/services-menu.aspx'.
    This page can be replaced with a custom 404. Check the documentation for "custom 404".
    This page is intentionally left ugly ;-)

    Is there a setting we are missing? Something with the SearchForTemplate handler that I don't know how to edit?

    Our 404handler config looks like:

    <NotFoundHandlers>
      <notFound assembly="umbraco" type="SearchForAlias" />
      <notFound assembly="umbraco" type="SearchForTemplate" />
      <notFound assembly="umbraco" type="SearchForProfile" />
      <notFound assembly="InfoCaster.Umbraco._301UrlTracker" type="Handler301URLTracker" />
      <notFound assembly="umbraco" type="handle404" />
    </NotFoundHandlers>

    We also added the following to our web.config system.webServer section:

    <httpErrors existingResponse="PassThrough" />

     

    Please let me know if you need any other information. Thanks in advance!

  • Carrie 20 posts 42 karma points
    May 17, 2013 @ 17:33
    Carrie
    0

    Forgot to add I'm using umbraco 6.0.3 and IIS 7

  • Yarik Goldvarg 35 posts 84 karma points
    Jun 28, 2013 @ 10:43
    Yarik Goldvarg
    0

    I am using umbraco 6.1.1 (IIS 8)  and i have the same issue

  • Jeavon Leopold 3061 posts 13489 karma points MVP 9x admin c-trib
    Jul 26, 2013 @ 12:29
    Jeavon Leopold
    0

    I have create a issue for this problem, please vote it up http://issues.umbraco.org/issue/U4-2549

  • Stephen 767 posts 2272 karma points c-trib
    Jul 26, 2013 @ 21:47
    Stephen
    0

    Will reply in the issue tracker.

  • Khai 71 posts 161 karma points
    Aug 20, 2013 @ 12:03
    Khai
    0

    Is this already resolved? I'm having the same problem.

  • Stephen 767 posts 2272 karma points c-trib
    Aug 28, 2013 @ 18:49
    Stephen
    0

    Have pushed a fix to 6.2.0 that requires an edit of a config file. Check the issue tracker at http://issues.umbraco.org/issue/U4-2549 for more details.

    Stephan

  • Ivan 165 posts 543 karma points
    Oct 02, 2013 @ 20:06
    Ivan
    0

    Hi all.

    This is the case for Umbraco v 4.11.9 as well. Can we expect a fix for that?

  • Stephen 767 posts 2272 karma points c-trib
    Oct 02, 2013 @ 21:40
    Stephen
    0

    I am afraid the fix has been commited to 6.x with to plan to backport it to 4.x.

    Does that have a high impact?

    Stephan

  • Ivan 165 posts 543 karma points
    Oct 03, 2013 @ 08:27
    Ivan
    0

    Unfortunately, it will hurt us much, since we have over 20 websites running Umbraco 4.11.9, and we have no plans to migrate to Umbraco 6.x.

     

    If you are not planning the backport, is there a workaround that we can do by ourselves?

  • Dan Evans 628 posts 1015 karma points
    Aug 12, 2015 @ 12:07
    Dan Evans
    0

    This appears to still be an issue in Umbraco 7.2.5 Is there a fix for this version. I am getting this error on pages with no template:

    The page you requested was removed.

  • David Armitage 491 posts 2053 karma points
    Jun 10, 2018 @ 12:27
    David Armitage
    0

    Hi Guys,

    I had the same issue in Umbraco 7 and found a fix.

    Basically with me I configured all the used 404 redirects as per the Umbraco documentation and for most part they worked.

    The only time they didn't is when a document existed which didn't have a template. This was for document types that I wasn't using as pages so shouldn't have a template.

    To fix this is simple. I am not sure exactly why but you need to configure 'culture and hostnames'

    Right click on your homepage node then click on culture and hostnames. Add one in for your main domain http://www.yourwebsite.com.

    Now try again. The document type with no template will redirect to your custom 404 the same as your other broken links.

    Kind Regards

    David

Please Sign in or register to post replies

Write your reply to:

Draft