You need to sign in to do that
Don't have an account?
Generic Error Page not displayed to Site Guest User
This may be a limitation but I would like to confirm that OR find an alternative solution.
I have created a Visualforce page to be used as the Generic Error Page in my site. However, when an error occurs on the site while being viewed by a Site Guest User instead of displaying my error page the "Authorization Required Page (401)" is displayed.
When a user is logged in (such as then the site is used for a community) then the correct generic error page is displayed.
The same actaully happens when using the default "Exception" page so it is not related to my own Visualforce error page.
Is this a limitation? Can generic error page only be displayed to logged in users? If so, any ideas on how to create a similar experience for guest users?
Thanks in advance.
Derek
Please add this VF page in site settings.
Please see below to add:
http://salesforce.stackexchange.com/questions/17419/adding-visualforce-page-to-sites
here it is :
My controller for the bsas_error page does not use "with sharing". I have tried to add "with sharing" and the problem is the same. THis also happens with the standard "Exception" page that does not have a controller at all.
My page be viewed in the site if you enter its URL directly: https://sandbox-cloudsmiths.cs81.force.com/barclays/bsas_error as can the standard exception page https://sandbox-cloudsmiths.cs81.force.com/barclays/exception
Its only when an exception occurs that the login page is displayed instead of the error page.
See screenshot as requested
Regards
Derek