Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Nov 20, 2011 @ 08:52
    Anthony Candaele
    0

    problem with Multipage Not Found Handler (uComponents)

    Hi,

    I'm trying to implement uComponents Multipage Not Found Handler, but currently it is not working.

    As instructed in the documentation I created a property of type Content Picker with the alias umbracoPageNotFound on the rootnode of my multilanguage website.

    my 404handlers.config looks like this:

    <?xml version="1.0" encoding="utf-8"?>

    <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="uComponents.Core" type="NotFoundHandlers.SearchForPageNotFound" />

      <notFound assembly="uComponents.Core" type="NotFoundHandlers.MultiSitePageNotFoundHandler" />

      <notFound assembly="umbraco" type="handle404" />

    </NotFoundHandlers>

    Is this configured the way it should.

    Thanks for your help,

    Anthony Candaele
    Belgium

  • Anthony Candaele 1197 posts 2049 karma points
    Nov 21, 2011 @ 10:04
    Anthony Candaele
    0

    I tried to solve it by deleting this line from the 404handlers.config:

    <notFound assembly="uComponents.Core" type="NotFoundHandlers.SearchForPageNotFound" />

    But now I just get the - ugly - iis 404 file not found page.

    Anyone any experience with the Multipage Not Found Handler extension from uComponents (v3).

    Your help would be greatly appreciated,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Nov 21, 2011 @ 10:44
    Anthony Candaele
    0

    maybe if it can clarify things, my the content tree of my multilanguage website looks like this:

    I defined the property with the umbracoPageNotFound alias for my homepage document type (Startpagina and Home)

    My ~/config/404handlers.config file looks like this now:

    <?xml version="1.0" encoding="utf-8"?>

    <NotFoundHandlers>

      <notFound assembly="umbraco" type="SearchForAlias" />

      <notFound assembly="umbraco" type="SearchForTemplate" />

      <notFound assembly="umbraco" type="SearchForProfile" />

      <notFound assembly="uComponents.Core" type="NotFoundHandlers.MultiSitePageNotFoundHandler" /> 

      <notFound assembly="InfoCaster.Umbraco._301UrlTracker" type="Handler301URLTracker" />    

      <notFound assembly="umbraco" type="handle404" />

    </NotFoundHandlers>

    Thanks for your help,

    Anthony

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Nov 21, 2011 @ 20:43
    Dirk De Grave
    1

    I don't know by heart, but me thinks the uComponent not found handler needs hostnames assigned, eg www.domain.be and www.domain.fr. Does that apply to your situation? Also, can you check the trace and see what 404 handler is actually firing??

    Looking forward to your info.

     

    Cheers,

    /Dirk

  • Anthony Candaele 1197 posts 2049 karma points
    Nov 22, 2011 @ 18:26
    Anthony Candaele
    0

    Hi Dirk,

    Oh I see. I don't have separate domain names, my Dutch pages are under www.webmove.be/startpagina and my English pages are under www.webmove.be/home

    What is the best practice for the names of multilingual domain names? I could make a subdomain like www.en.webmove.be

    Thanks for your help,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Dec 05, 2011 @ 11:23
    Anthony Candaele
    0

    Still can't get the uComponents Multipage Not Found Handler to work.

    Configured it for a multilanguage website (still in development):

    http://testnl.vespasympa.be

    http://testfr.vespasympa.be

    Created a custom 404 page and made a connection to it from my multilanguage rootnode (umbracoPageNotFound property)

    my 404handlers.config file looks like this:

    <NotFoundHandlers>

      <notFound assembly="umbraco" type="SearchForAlias" />

      <notFound assembly="umbraco" type="SearchForTemplate" />

      <notFound assembly="umbraco" type="SearchForProfile" />

      <notFound assembly="uComponents.Core" type="NotFoundHandlers.MultiSitePageNotFoundHandler" />

      <notFound assembly="umbraco" type="handle404" />

    </NotFoundHandlers>

    I also configured the hostnames for the multilangue rootnodes

    I don't know what there is more to configure to get this uComponents Multipage Not Found handler to work.

    Any help would be much appreciated

    Anthony

  • Phil Dye 149 posts 325 karma points
    Jan 13, 2012 @ 13:33
    Phil Dye
    0

    Anthony,

    Did you get this working? I'm in a similar situation (see http://our.umbraco.org/forum/using/ui-questions/27573-Localised-404-pages-in-4711?p=0#comment103217)

    Phil

  • Anthony Candaele 1197 posts 2049 karma points
    Jan 13, 2012 @ 14:42
    Anthony Candaele
    0

    Hi Phil,

    No, I didn't get it to work, I solved it using the custom handler solution as suggested here:

    add custom 404 handler in umbraco 4.7.0

    or you could take a look at the source of the uBootStrap starter kit which also has a 404 solution for a multilanguage website.

    greetings,

    Anthony

  • Phil Dye 149 posts 325 karma points
    Jan 13, 2012 @ 18:09
    Phil Dye
    0

    Thanks; that solution, like the built-in code, seems to require unique hostnames/domains to work, and doesn't when using using multiple root nodes with 'fake' domains and multiple root nodes (eg /en/, /fr/, /de/).

    The root of the problem seems to be that culture isn't set that early in the lifecycle, so everything just thinks it's mapping to the default 404 pages.

    Phil

Please Sign in or register to post replies

Write your reply to:

Draft