Questions tagged [error-handling]

Questions related to configuring, managing custom error pages according to status code.

Filter by
Sorted by
Tagged with
2
votes
1answer
100 views

Setting up custom 500 error page on SC 9.1

I'm trying to setup custom 500 page on SC 9.1 I'm following this procedure: https://www.geekhive.com/buzz/post/2017/08/a-complete-guide-to-configuring-friendly-error-pages-in-sitecore-part-2-500-...
0
votes
1answer
64 views

Prevent Login Redirect on 403 When an Ajax Call

Using Sitecore 9.1 and SXA 1.8 Does anyone know the best way to force Sitecore to return a legit 403 error when an Ajax call is hitting an API method? Currently when the following code is thrown ...
2
votes
1answer
236 views

Is it possible to add Custom 403 Error page in Azure Web Apps

We have built our Sitecore 9.1 solution in Azure Web Apps. We have added custom 403 and 400 error pages by making use of the Error Manager module from Sitecore https://marketplace.sitecore.net/en/...
0
votes
0answers
75 views

Runtime error while clicking the items in sitecore

Upgraded the sitecore 8.1 to 9.1 and sometimes while clicking the item , gor the runtime error , Error:ManagedPoolThread #6 10:10:44 ERROR Exception processing remote events from database: master ...
1
vote
1answer
75 views

How to support custom 404 Pages while keeping Languages.AlwaysStripLanguage set to false

My team is running into a very confusing error where our 404 pages are throwing 500 errors, but only when the Languages.AlwaysStripLanguage configuration setting is set to "false". When we remove the ...
0
votes
1answer
171 views

SXA server error page not working in Azure PaaS

We are using Sitecore 9.0.2 and SXA 1.7.1 We have configured a server error page in the field called "Server Error Page Link" in the "Settings" item. We generated the static error page (navigate to ...
1
vote
1answer
205 views

Replacing 404 errors with 410 Sitecore 7.2

This may be a little broad so I'd appreciate any pointers. Is there a way to replace the typical 404 response with 410 for pages that have been deleted? Obviously I'd like to keep 404 responses for ...
1
vote
1answer
471 views

“WARN Request is redirected to document not found page” message shown in the log file

I have configured CD server according to the official document and spreadsheet and also disabled anonymous IIS access to admin, login, shell folders and default.aspx file. However, after changing IIS ...
1
vote
0answers
185 views

Error message “loading hook” for content search

I have configured two Sitecore servers (CM and CD) using Sitecore 8.2.7. On CD server, Sitecore page is properly shown on the browser but there is a error message shown in the log folder as shown ...
2
votes
0answers
92 views

Custom error page on System HttpNotFound()

In my controller I'm error checking the query string and if the ID they specify doesn't exist I want to return a 404. While the path doesn't correspond with an item in sitecore I am trying to pull an ...
2
votes
1answer
1k views

handling 500 errors in sitecore 9 [duplicate]

For handling status code 500 followed below step in web.config file: <system.web> <customErrors mode="off" /> <system.web> </system.webServer> <httpErrors ...
3
votes
2answers
593 views

Sitecore SXA 500 custom error page not working

I am using Sitecore 8.2 along with SXA. We have 404 and 500 custom error pages configured in Sitecore. 404 custom error page is working but I am unable to get 500 custom friendly error page whenever ...
1
vote
3answers
495 views

Status Code 200 returned for 404 page SXA website

We have a SXA website and tried to add 404 page as described here Setup 404 page by creating the Pipeline and adding a rendering to set the StatusCode to 404. We also added Page Not found link in ...
0
votes
1answer
672 views

Friendly error page for Sitecore web application [duplicate]

We want to set up a friendly error page for a Sitecore application. We created a new htm page in root folder and used IIS custom errors (using web.config's custom errors element) to redirect errors to ...
0
votes
2answers
390 views

Custom Error page in Habitat [duplicate]

We have a habitat application with multi-site. If any error occurred, it has to redirect to error page item of specific site. We were planning to implement by https://community.sitecore.net/...
2
votes
1answer
121 views

Autogenerate Sitecore 500 static pages on publish:end and publish:remote:end

We use static html pages for the 500 errors to make sure that something renders assuming that the site is down. The issue with this is that these static pages would have to be manually edited and ...
5
votes
4answers
4k views

Sitecore.Diagnostics.Log.Error() method is not working Inside a Static Class

I typically do my error logging like this: Sitecore.Diagnostics.Log.Error("My Error Message Here", ex, this); But, that same syntax does not work for inside a Static class since this is not valid in ...