Questions tagged [error-handling]

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

Filter by
Sorted by
Tagged with
7 votes
2 answers
1k views

How do you write a Custom 404 page that is compatible with SXA?

I'm running Sitecore 8.2 update 4 and SXA 1.3 Update 1. I'm trying to get some custom 404 pages working so that my marketing team can enjoy creating their own 404 pages for each of the sites running ...
Keith VanderVeen's user avatar
6 votes
4 answers
7k 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 ...
ADH's user avatar
  • 1,765
5 votes
3 answers
3k 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 ...
Rachit's user avatar
  • 51
4 votes
1 answer
6k 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 ...
sindu's user avatar
  • 629
2 votes
1 answer
681 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-...
sitecorepm's user avatar
2 votes
1 answer
4k 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/...
Viswanadh Gupta's user avatar
2 votes
1 answer
228 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 ...
ASura's user avatar
  • 2,373
2 votes
3 answers
507 views

Issue with custom errors configuration in my Sitecore 10.1 instance

I am facing an issue whereby custom errors are not redirecting to error page configured. I have custom errors remote only set in the web.config as below: <customErrors mode="RemoteOnly" ...
Sean T's user avatar
  • 240
2 votes
1 answer
416 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 ...
Pepp's user avatar
  • 43
1 vote
4 answers
2k 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 ...
user1032's user avatar
  • 137
1 vote
1 answer
434 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 ...
Sean T's user avatar
  • 240
1 vote
1 answer
2k 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 ...
TestUser's user avatar
  • 375
1 vote
1 answer
410 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 ...
Villanite's user avatar
1 vote
1 answer
830 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 ...
Erwin Paul's user avatar
1 vote
2 answers
213 views

Can not delete copied items in Sitecore 7. Getting Error Job started: RemoveLinks|System.ArgumentNullException: Value cannot be null

Hello – As I’m working through Sitecore trying to add some pages and delete some, I’m running into this “Breaking Links” error that doesn’t allow me to delete pages I don’t need. For example, I now ...
kevin camacho's user avatar
1 vote
0 answers
53 views

Sitecore 10.2 - Capture application level errors

If I was to capture application level errors on our instance for integration with some form of error reporting software (i.e, Rollbar) how would I go about this without a Global.asax Application_Error(...
Sean T's user avatar
  • 240
1 vote
0 answers
641 views

Sitecore Error : System.Net.WebException - The operation has timed out

After doing a deployment to the live server, I am getting this error in the logs multiple times due to which the website is not showing. This is the only error that is generated: 12136 23:10:30 ...
Kautilya Kumar's user avatar
1 vote
1 answer
178 views

SXA 1.2 Error Pages configuration

i'm currently using SXA 1.2. I have to create 404 and 500 page. do we have out of the box Feature to configure 404 and 500 Page. In the recent SXA release i can see we can able to configure(see the ...
Balaji Balasubramanian's user avatar
1 vote
0 answers
568 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 ...
TestUser's user avatar
  • 375
0 votes
1 answer
1k views

404 error handle in Sitecore SXA

I am using Sitecore SXA and handling page not found through by default functionality in SXA by going on below path: /sitecore/content/{tenant name}/{sitename}/Settings > Error handling tab > and ...
Ashish's user avatar
  • 912
0 votes
1 answer
512 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 ...
Colema18's user avatar
  • 321
0 votes
1 answer
2k 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 ...
Mahesh Varma's user avatar
0 votes
0 answers
25 views

How to catch error and redirect: A potentially dangerous Request.Path value was detected from the client (:)

When attempting to access URLs such as http://web.local/webpagehttp://web.local/webpage, we encounter issues and this error appears in the log: A potentially dangerous Request. Path value was detected ...
Nick's user avatar
  • 21
0 votes
0 answers
97 views

Error Content Editor

Hi guys. I have a weird situation. Yesterday, Sitecore cms works fine. Today, the content tree from the content editor doesn't work. I have this error that says that is missing a ')'. I added it to a ...
Z3RaK's user avatar
  • 45
0 votes
1 answer
100 views

Capture client-side errors on Sitecore Forms in Sitecore 9.3

We need to capture errors on Sitecore form after Submit button click. Below code return 0 value in console log on first attempt and that might be because errors appear only after submit click. In ...
Sukhjeevan's user avatar
0 votes
0 answers
123 views

Redirect to custom 500 error page

We are using Sitecore 9.3 We have setup custom 500 error page on the portal and it works fine for application errors. But it does not redirect to the custom 500 error page for the below link - https://...
NewbieHere's user avatar
0 votes
0 answers
130 views

Getting 404 error after login intermittently

We are using Sitecore 9.3 in our 2 portals. We are getting an error intermittently. We are using Azure AD B2C for login. After logging in to the site, when the Microsoft page redirects back to the ...
NewbieHere's user avatar
0 votes
1 answer
113 views

Error while generating static page in SXA

I am trying to generate a static error page for the website. I am getting this error while creating. I have published the entire site. I am using following blog/article for the same :- https://doc....
Nisha's user avatar
  • 411
0 votes
0 answers
130 views

Handling error pages SXA with IIS

I am looking to configure error pages on SXA. I read the following topic and configured it accordingly: https://techknowlodgey.wordpress.com/2020/05/09/error-handling-with-sxa/ I have generated a ...
Arun Kumar's user avatar
0 votes
0 answers
533 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 ...
Rohan Bhateja's user avatar
0 votes
2 answers
667 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/...
PVM's user avatar
  • 963
-1 votes
2 answers
188 views

error CS0119: 'Sitecore.Mvc.HtmlHelperExtensions.Sitecore(System.Web.Mvc.HtmlHelper)' is a 'method', which is not valid in the given context

[![I currently receiving these warnings. Do they have anything to do with it. Furthermore, the warnings say it can’t find Navigation.js and Sitecore.Foundation.Theming.min.js even though they are ...
JQ Ellis's user avatar