Skip to main content

Questions tagged [error-handling]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
77 views

Error Boundary not working in Sitecore JSS with Next.js Project

I am using Sitecore 10.3.1 with JSS-Next.js app version 21.5.3 and Node version 21.7.3. My requirement is to handle client and server errors at the component level. I am currently using the "?&...
0 votes
1 answer
137 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....
3 votes
1 answer
444 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 ...
0 votes
1 answer
122 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 ...
1 vote
1 answer
182 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 ...
1 vote
2 answers
306 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 ...
0 votes
0 answers
115 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 ...
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 ...
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 ...
0 votes
0 answers
66 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 ...
0 votes
0 answers
141 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://...
1 vote
0 answers
61 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(...
2 votes
3 answers
613 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" ...
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/...
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 ...
0 votes
1 answer
537 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 ...
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 ...
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 ...
-1 votes
2 answers
194 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 ...
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 ...
1 vote
0 answers
685 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 ...
1 vote
1 answer
865 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 ...
2 votes
1 answer
727 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
0 answers
555 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
1 answer
425 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 ...
1 vote
1 answer
443 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
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 ...
1 vote
0 answers
577 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 ...
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 ...
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 ...
0 votes
2 answers
669 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
1 answer
229 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 ...