I've had similar errors before in earlier versions of SeoChecker and Umbraco, but now it seems like it has comming back in Umbraco Cloud 8.1.5 and SeoChecker 2.8.2
Do i maybe miss something in the web.config?
Message:
SEOChecker: SEOChecker: Error running scheduled task
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Web.Hosting.IIS7WorkerRequest.GetQueryStringPtr(Int32& length)
at System.Web.Hosting.IIS7WorkerRequest.GetQueryStringRawBytes()
at System.Web.HttpRequest.get_QueryStringBytes()
at System.Web.HttpRequest.get_QueryStringText()
at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)
at System.Web.HttpRequest.get_Url()
at SEOChecker.Core.Umbraco.Context.ContextInfo.Initialize(HttpContext context, Boolean editMode)
at SEOChecker.Core.Umbraco.Context.ContextInfo..ctor(HttpContext context)
at SEOChecker.Core.Components.ValidationqueueComponent.TimerCallback(Object sender)
We are getting a similar error filling up the log. We are using Umbraco 8.1.4 and SeoChecker 2.8.2, not on Umbraco Cloud, but hosted on Azure.
SEOChecker: SEOChecker: Error running scheduled task
Exception:
System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.IIS7WorkerRequest.GetUserAgentInternal()
at SEOChecker.Core.Umbraco.Context.ContextInfo.Initialize(HttpContext context, Boolean editMode)
at SEOChecker.Core.Components.ValidationqueueComponent.TimerCallback(Object sender)
SEOChecker: SEOChecker: Error converting DB values to editor values
Exception
System.NullReferenceException: Object reference not set to an instance of an object.
at SEOChecker.Core.Umbraco.DocumentWrappers.UmbracoDocument..ctor(IContent doc, IContextInfo info, String culture, String segment)
at SEOChecker.Core.Repository.Umbraco.UmbracoDocumentRepository.Single(Int32 id, IContextInfo context, String culture, String segment)
at SEOChecker.DataTypes.PropertyEditors.PropertyEditorWrappers.SEOCheckerPropertyWrapper.ToEditor(Property property, IDataTypeService dataTypeService, String culture, String segment)
Hi Richard! Any news on this? This is what my Umbraco logs currently look like:
This error seems to interfere with SEOChecker's basic functionality. There are currently no 301 redirects being generated when renaming content and 'Track url history' enabled.
I'd be happy to help in any way I can. Let's schedule a Skype session some time next week so we can do some debugging. I'll send you an email to set something up.
I just had a very productive Skype session with Richard. Richard managed to implement a hotfix for the 'Value does not fall within expected range' issue. I have deployed the hotfix to my production server and so far so good.
This patch will probably be included in release 2.9.0, but in the mean time you can use this hotfix. Just to be clear: I have applied the fix to version 2.8.2. The updated dll's should not affect any existing functionalities.
I tried to use the new dlls, it seems to remove the old errors, but now i get new errors.
Message:
Unhandled controller exception occurred for request '"https://www.xxx.dk/umbraco/backoffice/UmbracoApi/Content/GetById?id=2080"'
Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: Cannot find a content type with alias
at SEOChecker.Core.Repository.Definition.DefinitionFactory.Single(String alias)
at SEOChecker.Core.Config.Configuration.GetDocumentTypeByAlias(String alias, String doctypeAlias)
at SEOChecker.Core.Config.Configuration.GetDocumentTypeByAlias(String alias)
at SEOChecker.DataTypes.PropertyEditors.PropertyEditorWrappers.RobotsTxtPropertyWrapper.ToEditor(Property property, IDataTypeService dataTypeService, String culture, String segment)
at Umbraco.Web.Models.Mapping.ContentPropertyBasicMapper`1.Map(Property property, TDestination dest, MapperContext context)
at Umbraco.Web.Models.Mapping.ContentPropertyDisplayMapper.Map(Property originalProp, ContentPropertyDisplay dest, MapperContext context)
at Umbraco.Web.Models.Mapping.ContentPropertyMapDefinition.Map(Property source, ContentPropertyDisplay target, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.<>c__DisplayClass8_0`2.<Define>b__1(Object source, Object target, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.Map[TSource,TTarget](TSource source, MapperContext context)
at Umbraco.Core.Mapping.MapperContext.Map[TSource,TTarget](TSource source)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Umbraco.Core.Mapping.MapperContext.MapEnumerable[TSourceElement,TTargetElement](IEnumerable`1 source)
at Umbraco.Web.Models.Mapping.TabsAndPropertiesMapper.MapProperties(IContentBase content, List`1 properties, MapperContext context)
at Umbraco.Web.Models.Mapping.TabsAndPropertiesMapper`1.Map(TSource source, MapperContext context)
at Umbraco.Web.Models.Mapping.ContentMapDefinition.Map(IContent source, ContentVariantDisplay target, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.<>c__DisplayClass8_0`2.<Define>b__1(Object source, Object target, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context)
at Umbraco.Web.Models.Mapping.ContentVariantMapper.Map(IContent source, MapperContext context)
at Umbraco.Web.Models.Mapping.ContentMapDefinition.Map(IContent source, ContentItemDisplay target, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.<>c__DisplayClass8_0`2.<Define>b__1(Object source, Object target, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context)
at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context)
at Umbraco.Web.Editors.ContentController.MapToDisplay(IContent content)
at Umbraco.Web.Editors.ContentController.GetById(Int32 id)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()
Sorry ofcourse you can disable automatic validation.
Set "Validate a page when published" on Validation settings and make sure Automatic validation mode is set to "Never validate automatically" on the Datatype configuration.
SEOChecker: Error running scheduled task
Hi.
I've had similar errors before in earlier versions of SeoChecker and Umbraco, but now it seems like it has comming back in Umbraco Cloud 8.1.5 and SeoChecker 2.8.2
Do i maybe miss something in the web.config?
We are getting a similar error filling up the log. We are using Umbraco 8.1.4 and SeoChecker 2.8.2, not on Umbraco Cloud, but hosted on Azure.
Any idea what is causing these issues?
I'm getting the same errors on a new self-hosted Umbraco 8.2.0 website using SEOChecker 2.8.2. Did you find out what was causing the issue?
I haven't yet found a resolution. Perhaps @Richard can help us?
Today, the SEOchecker throws a new error:
SEOChecker: SEOChecker: Error converting DB values to editor values
Exception
System.NullReferenceException: Object reference not set to an instance of an object. at SEOChecker.Core.Umbraco.DocumentWrappers.UmbracoDocument..ctor(IContent doc, IContextInfo info, String culture, String segment) at SEOChecker.Core.Repository.Umbraco.UmbracoDocumentRepository.Single(Int32 id, IContextInfo context, String culture, String segment) at SEOChecker.DataTypes.PropertyEditors.PropertyEditorWrappers.SEOCheckerPropertyWrapper.ToEditor(Property property, IDataTypeService dataTypeService, String culture, String segment)
Hi Giant.
I also have question about that here https://our.umbraco.com/packages/website-utilities/seo-checker/bugs/99114-error-converting-db-values-to-editor-values but i can't seem to find out what triggers it.
Think this error is because of a missing HTTPContext, will check but hard to debug. Will come back to this.
Best,
Richard
Hi Richard! Any news on this? This is what my Umbraco logs currently look like:
This error seems to interfere with SEOChecker's basic functionality. There are currently no 301 redirects being generated when renaming content and 'Track url history' enabled.
Hi Arjan,
Unfortunatly not. Would love to debug this with some logging next week if possible?
Best,
Richard
I'd be happy to help in any way I can. Let's schedule a Skype session some time next week so we can do some debugging. I'll send you an email to set something up.
I just had a very productive Skype session with Richard. Richard managed to implement a hotfix for the 'Value does not fall within expected range' issue. I have deployed the hotfix to my production server and so far so good.
You can download the patched dll's here: https://www.dropbox.com/s/rqjb7tmpnsft71r/seodll.rar?dl=0
This patch will probably be included in release 2.9.0, but in the mean time you can use this hotfix. Just to be clear: I have applied the fix to version 2.8.2. The updated dll's should not affect any existing functionalities.
Hi Arjan.
I tried to use the new dlls, it seems to remove the old errors, but now i get new errors.
And this happen when i try to access newly created documents or try to create new documents.
Hi Richard.
Did you ever found a solution to this?
I installed version 2.9.0 on a Umbraco 8.5.1 cloud website.
An again i get alot of these errors.
I create a new topic. Since the error i get now is not exactly the same. And the last error was fixed in SeoChecker version 2.9.0
We also have this bug in our (live) website (8.5.3)
Client asks us to fix the error for a little while now, but unfortunately we can't give any reasonable answer...
Hi Sorry,
Think this was related to the ignored path error which is fixed in hotfix release below
https://www.dropbox.com/s/g1jrjdsu47adttj/seo-checker29_1.zip?dl=0
Hope this helps,
Richard
Still the same exception:
System.ArgumentException: Value does not fall within the expected range.
Any more info that got logged? The HttpContext should not be an issue anymore so could be a different area.
After adding Facebook App Id, I now get the following execption in log:
Hi Remko,
Think I fixed this one as well. Was indeed a null refernce exception
Hotfix version https://www.dropbox.com/s/ioplivqtoyng4bp/seo-checker29_1.zip?dl=0 Hope it works on your end too.
Richard, is this on nuget yet? We're experiencing the same problems on 2.8.2 on production and wanted to roll this out...
Can we just update the DLL's from this hotfix?
Think it's just Dll's indeed
Hi Richard.
I got the exactly same error again on Umbraco Cloud 8.6.4, when using SeoChecker 2.9.1.
Is there a way to turn of the Scheduled task?
Hi Bo,
At the moment not. Will and Fix this issue and add an option to disable automatic validation in 2.10.
Perfect Richard.
When do you think the 2.10 release will be?
Sorry ofcourse you can disable automatic validation.
Set "Validate a page when published" on Validation settings and make sure Automatic validation mode is set to "Never validate automatically" on the Datatype configuration.
Hope this helps disable automatic validation
Should be next month, if (8.7 doesn't have too many breaking changes). Might have Hotfixes for these issues done earlier.
Great.
I hope you let us know when a hotfix is ready :)
is working on a reply...