Couple of prerequisites... you must have a hostname/language set to the root node and that node must have a property with the alias "umbracoPageNotFound" - which contains a nodeId.
Ive try using Ucomponents but doesnt work. Here is my config file
I have set my domain and Language on both root node which works well. In document type of my homepage as described i have a content picker with alias umbracoPageNotFound.
When i type the following which is a fake an non existing page i can get the errorPage to display.
Try appending "?umbDebugShowTrace=true" to the URL - see what the trace information says. There should be something useful next to the "notFoundHandler" messages. If you wouldn't mind posting a snippet from there? (removing any sensitive info first).
No umbraco document matches the url 'http://domain.com/en/toto.aspx?umbDebugShowTrace=true'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "en"]/* [@urlName = "toto"]')
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.
... and "domain.com" is definitely associated with a node that contains the "umbracoPageNotFound" property? (and has a value for it?)
I'm taking a look at the code (in uComponents), this will only work for associated domain/hostnames ... it's not going to work with sub-folders (it wasn't designed for that).
Try swapping the NotFoundHandler over to the "SearchForPageNotFound" instead. This one should work for you. It tries to find the 'nearest' node that has the "umbracoPageNotFound" property.
No umbraco document matches the url 'http://domain.eservices-host.com/en/toto.aspx'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "en"]/* [@urlName = "toto"]')
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.
No umbraco document matches the url 'http://domain.com/en/toto.aspx?umbDebugShowTrace=true'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "en"]/* [@urlName = "toto"]')
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.
Yes, definitely report bugs for uComponents ... only problem here is that I'd be the one fixing this particular bug and don't have enough info to reproduce the issue :-$
Error page in Multilingual website
Hi all,
I have some issues getting error 404 and error 500 page to display. The website has 2 culture that is EN & FR.
I did make changes in the umbracoSettings.config such as
But still nothing is showing up when i type a fake non existing page.
Any advise?
Can someone point out why the error page is not showing up when using a fake or non existing page?
//fuji
Hi Fuji
I'd recommend that you use uComponents to handle multilingual 404 handlers.You find it in the packages repository.
See for another technical solution: http://our.umbraco.org/forum/developers/api-questions/18524-Making-a-class-to-handle-multiple-404-pages
Best of luck.
Hi Martin,
Thanks for the response, let me try this.
//fuji
Hi Fuji,
As Martin says, uComponents has one to handle multi-lingual sites... the MultiSitePageNotFoundHandler.
Couple of prerequisites... you must have a hostname/language set to the root node and that node must have a property with the alias "umbracoPageNotFound" - which contains a nodeId.
Rest of the instructions are over on the uComponents CodePlex website: http://ucomponents.codeplex.com/wikipage?title=MultiSitePageNotFoundHandler
Cheers, Lee.
Hi Lee,
Ive try using Ucomponents but doesnt work. Here is my config file
I have set my domain and Language on both root node which works well. In document type of my homepage as described i have a content picker with alias umbracoPageNotFound.
When i type the following which is a fake an non existing page i can get the errorPage to display.
http://domain.com/en/toto.aspx
//fuji
Hi Fuji,
Try appending "?umbDebugShowTrace=true" to the URL - see what the trace information says. There should be something useful next to the "notFoundHandler" messages. If you wouldn't mind posting a snippet from there? (removing any sensitive info first).
Cheers, Lee.
Still not getting much info
http://domain.com/en/toto.aspx?umbDebugShowTrace=true
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Does it make a difference if i have a urlRewriting in my config?
//fuji
Hi Fuji,
This looks like IIS is still handling your 404 errors and not passing them over to Umbraco to handle.
Take a read of this thread: http://our.umbraco.org/forum/using/ui-questions/8244-IIS7--404
Ultimately, you'll need to add the following line to your Web.config, under the <system.webServer>:
Cheers, Lee.
Lee ive just set the IIS and this is the output
No umbraco document matches the url 'http://domain.com/en/toto.aspx?umbDebugShowTrace=true'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "en"]/* [@urlName = "toto"]')
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 ;-)
Request Details
Trace Information
This brings me to a error 500 message. I have just set my IIS but can paste the trace info in the RTE.
... and "domain.com" is definitely associated with a node that contains the "umbracoPageNotFound" property? (and has a value for it?)
I'm taking a look at the code (in uComponents), this will only work for associated domain/hostnames ... it's not going to work with sub-folders (it wasn't designed for that).
Try swapping the NotFoundHandler over to the "SearchForPageNotFound" instead. This one should work for you. It tries to find the 'nearest' node that has the "umbracoPageNotFound" property.
Cheers, Lee.
Yes i try to output the value of "umbracoPageNotFound" and display the right value 2623
I also changed my 404handlers.config to
Still not working
No umbraco document matches the url 'http://domain.eservices-host.com/en/toto.aspx'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "en"]/* [@urlName = "toto"]')
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.
Try rearranging the config to this:
Not sure if that will resolve the issue, but does put them in the "right" order.
Try the "?umbDebugShowTrace=true" again, see what happens this time.
Quick check, are you using uComponents v3.0 (or v2.2 beta 3)?
uComponents V2.2.
Btw so i keep those settings ?
Same message when reordering
No umbraco document matches the url 'http://domain.com/en/toto.aspx?umbDebugShowTrace=true'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "en"]/* [@urlName = "toto"]')
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.
Ok i managed to get it working but this time its not picking the culture info.
http://domain.com/en/toto.aspx is working fine an redirecting to the english error.aspx
http://domain.com/fr/toto.aspx for FR is redirecting to the english "error.aspx" instead of "erreur.aspx".
//fuji
Any idea why only the default value is being taken into consideration while the culture infos not?
Not sure about whether to keep the <error404> settings, I believe they are only used by the handle404 code.
Don't know what else to suggest, difficult to know how you've got your root/homepage nodes set-up for each language.
- Lee
I have the following structure.
Content
I think i had some issues with the setup of uComponents as well. Perhaps the post is in the bug report section of uComponents.
As i recall it, it was a fairly simple thing that caused all the trouble.
Yes, definitely report bugs for uComponents ... only problem here is that I'd be the one fixing this particular bug and don't have enough info to reproduce the issue :-$
Do you think i should upgrade to v3.0?
v3.0 is essentially v2.2 final/stable (we bumped up the version number as too many people thought the v2.2 beta was a milestone release).
Not sure if the code for the NotFoundHandlers had changed much since the v2.2 beta ... but yes, it's worth a try.
Cheers, Lee.
@Lee
I meant that my post might be in there, not that he should make his own ;-) Cheers!
Is this valid?
is working on a reply...