Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Jacobsen 608 posts 2406 karma points
    Sep 18, 2019 @ 08:28
    Bo Jacobsen
    0

    Error converting DB values to editor values

    Hi.

    Running Umbraco Cloud 8.1.4 and SeoChecker 2.8.2

    We are getting alot of errors on Umbraco Cloud that state SeoChecker cant convert DB values to editor values.

    Message:
    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)
    
  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Sep 19, 2019 @ 06:35
    Richard Soeteman
    0

    HI Bo,

    Do you get these in the editor as well or are you running some sort of background process?

    Best,

    Richard

  • Bo Jacobsen 608 posts 2406 karma points
    Sep 23, 2019 @ 07:12
    Bo Jacobsen
    0

    Hi Richard.

    Thanks for replying.

    On this site we do not run any background process. And we do not get any visual errors when trying to edit in backoffice. But it shows up in the log files.

    Could it have anything to do with it running in trial mode?

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Sep 23, 2019 @ 15:26
    Richard Soeteman
    0

    Dont' think that should matter but if you mail [email protected] I will send you a trial license.

    Best,

    Richard

  • Bo Jacobsen 608 posts 2406 karma points
    Oct 02, 2019 @ 11:38
    Bo Jacobsen
    1

    We had a trial license on and changed it to a real one, but we still have the same issue.

    We are trying to find out when the problem occours, but we cant seem to trigger it, it just shows up in the log.

  • ErikC 2 posts 72 karma points
    Dec 07, 2019 @ 15:16
    ErikC
    0

    I also get this error in the logs and I have been able to reproduce it. When i open a page that is in the recycle bin SEO-checker logs 6 errors to the log for me.

    I hope that will be a hint of how to reproduce it and fix it.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Dec 09, 2019 @ 08:32
    Richard Soeteman
    0

    Great find,

    I can reproduce it indeed. If the fix is simple it will be in the 2.9 release otherwise a release after that one. Don't open Items in the Trash can ;-)

    Thanks for getting back,

    Richard

  • Bo Jacobsen 608 posts 2406 karma points
    Jan 23, 2020 @ 08:33
    Bo Jacobsen
    0

    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.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 23, 2020 @ 08:35
    Richard Soeteman
    0

    Hi Bo,

    It was related to items that were in the recycle bin. But that is fixed. What is the error?

    Best,

    Richard

  • Bo Jacobsen 608 posts 2406 karma points
    Jan 23, 2020 @ 09:05
    Bo Jacobsen
    0

    When i view a document in Umbraco that uses SeoChecker, then i get this Error 3 times in a row: When i save the document i get the same error again 2 times in a row.

    System.ArgumentNullException: Value cannot be null.
    Parameternavn: Cannot find a content type  with alias 
       ved SEOChecker.Core.Repository.Definition.DefinitionFactory.Single(String alias)
       ved SEOChecker.Core.Config.Configuration.GetDocumentTypeByAlias(String alias, String doctypeAlias)
       ved SEOChecker.Core.Config.Configuration.GetDocumentTypeByAlias(String alias)
       ved SEOChecker.Core.Umbraco.DocumentWrappers.UmbracoDocument.get_SEOConfiguration()
       ved SEOChecker.Core.Extensions.UmbracoDocumentExtensions.GetDefaultTitlePropertyValue(IUmbracoDocument doc, String culture, String segment)
       ved SEOChecker.DataTypes.Model.SEOCheckerModel..ctor(SEOCheckerValues value, IUmbracoDocument document, SEOCheckerDataTypeConfig datatypeConfig, String culture, String segment)
       ved SEOChecker.DataTypes.PropertyEditors.PropertyEditorWrappers.SEOCheckerPropertyWrapper.ToEditor(Property property, IDataTypeService dataTypeService, String culture, String segment)
    

    enter image description here

  • Bo Jacobsen 608 posts 2406 karma points
    Jan 23, 2020 @ 09:10
    Bo Jacobsen
    0

    As a bonus info. The document i tried this on was not published, only saved.

    When i try to do a schedule publish i get this debug info, that leads to a 404 error.

    SEOChecker: SEOChecker: SEOChecker httpmodule called for uri http://localhost:7579/umbraco/backoffice/UmbracoApi/Content/PostSave
    

    Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:7579/umbraco/backoffice/UmbracoApi/Content/PostSave

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 23, 2020 @ 09:13
    Richard Soeteman
    0

    Ok the last is not a SEO Checker error and great find Now I can reproduce as well. Will fix ASAP. Was better to have a new topic by the way since this was related to a total different issue.

    Best,

    Richard

  • Bo Jacobsen 608 posts 2406 karma points
    Jan 23, 2020 @ 09:25
    Bo Jacobsen
    0

    I should maybe have created a new topic. But i did not want to have 2 unfinished topics with the same name.

    But great that you can reproduce, so you can try fix it.

    Yes the last is only a debug info. But i was wondering why SeoChecker is calling http://localhost:7579/umbraco/backoffice/UmbracoApi/Content/PostSave when i try to do a schedule publish?

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 23, 2020 @ 09:27
    Richard Soeteman
    0

    Ok but the other issue was solved in 2.9.

  • Bo Jacobsen 608 posts 2406 karma points
    Jan 23, 2020 @ 09:51
    Bo Jacobsen
    0

    Hi Richard.

    When you have a fix for it, please post it, then i mark it as the correct answer :)

    I will create a new bug report for the debug info from the SEOChecker.Core.Components.UrlRedirectComponent.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 24, 2020 @ 11:06
    Richard Soeteman
    100

    Hi Bo,

    Think a side effect of another fix fixed this issue as well, could not reproduce it anomore with fix below. but can with 2.9.0

    https://www.dropbox.com/s/jszoolorc4rywyk/seo-checker29_1.zip?dl=0

  • Thomas 319 posts 606 karma points c-trib
    Mar 10, 2020 @ 13:04
    Thomas
    0

    Hey Richard,

    I'm still getting a lot of error in the log

    "SEOChecker: SEOChecker: Error converting DB values to editor values"

    running 8.5.4 and Seochecker 2.9.0

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 10, 2020 @ 13:07
    Richard Soeteman
    0

    Hi Thomas,

    Use this hotfix please.

    https://www.dropbox.com/s/g1jrjdsu47adttj/seo-checker29_1.zip?dl=0

    Hope this helps,

    Richard

  • Thomas 319 posts 606 karma points c-trib
    Mar 10, 2020 @ 15:37
    Thomas
    0

    Thanks I have just tried that. :)

    I have a issue with the social media previewer. On one of my doctypes the fallback image works, but not on the other doctypes ?... There the image placeholder are just blank, unless I select a image in the social media field.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 10, 2020 @ 15:39
    Richard Soeteman
    0

    Different Image type maybe? The picker checks the datatype to determine if something is a picker.

  • Thomas 319 posts 606 karma points c-trib
    Mar 11, 2020 @ 09:44
    Thomas
    0

    hmm have tried with the same image on diffrent doctype. It only works on one of them..

    Also, I have added the hotfix. still getting the log error:

    "SEOChecker: SEOChecker: Error converting DB values to editor values"

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 11, 2020 @ 09:47
    Richard Soeteman
    0

    Only on the item that is not having the image picker I assume? Any other errors related to this in the log?

  • Thomas 319 posts 606 karma points c-trib
    Mar 11, 2020 @ 09:56
    Thomas
    0

    Both doctypes have the same composition.

    With the same Image picker / alias.

    In Seochecker both doctype in social have the same picker..

  • Thomas 319 posts 606 karma points c-trib
    Mar 11, 2020 @ 09:58
    Thomas
    0

    "SEOChecker: SEOChecker: Error converting DB values to editor values"

    System.NullReferenceException: The object reference is not set to an instance of an object. by SEOChecker.Library.MetaData..ctor (Int32 id, String culture, String segment) by SEOChecker.DataTypes.Model.SEOCheckerSocialModel..ctor (SEOCheckerSocialValues ​​value, IUmbracoDocument document, SEOCheckerSocialDataTypeConfig Statring.DonTypeConfig datatypeConfig .PropertyEditors.PropertyEditorWrappers.SEOCheckerSocialPropertyEditorWrapper.ToEditor (Property property, IDataTypeService dataTypeService, String culture, String segment)

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 11, 2020 @ 10:03
    Richard Soeteman
    0

    Ah ok, That si almost the same error but on a different property editor. Makes sense now. This one was on the list to fix but need some time to check it. Seems that something is accessing the property editor without httpcontext. Will come back to this but is a nasty one to fix,

  • Thomas 319 posts 606 karma points c-trib
    Mar 11, 2020 @ 10:07
    Thomas
    0

    Cool :) Thanks

  • andi 1 post 71 karma points
    Mar 11, 2020 @ 03:08
    andi
    0

    having the same issue here

  • Giant Penguin 23 posts 112 karma points
    Mar 27, 2020 @ 06:34
    Giant Penguin
    0

    The mentioned hotfix https://www.dropbox.com/s/g1jrjdsu47adttj/seo-checker29_1.zip?dl=0 seems does fixes the Error converting DB values to editor values issue, but it does produce more Error in UrlRewriteComponent for url rewriting Exception error. More, because this issue has already existed for a long time. I believe this is by calls to the scheduled api /umbraco/seochecker/seocheckerscheduleapi/run, unfortunately no way to disable it.

    SEOChecker: SEOChecker: Error in UrlRewriteComponent for url rewriting Exception System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List1.Enumerator.MoveNextRare() at System.Collections.Generic.List1.Enumerator.MoveNext() at SEOChecker.Core.Providers.UrlProviders.UrlRewriteProviders.RewriteUrl(String url, UrlRewriteConfig config) at SEOChecker.Core.Components.UrlRewriteComponent.App_BeginRequest(Object sender, EventArgs e)

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 17, 2020 @ 12:15
    Stefan Kip
    0

    I just marked 3000 SEO Checker errors as read on Umbraco Cloud :-( Updated to 2.9.1 but still getting alot of these errors:

    Message:
    SEOChecker: SEOChecker: Error converting DB values to editor values
    
    
    Exception:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at SEOChecker.Library.MetaData..ctor(Int32 id, String culture, String segment)
       at SEOChecker.DataTypes.Model.SEOCheckerSocialModel..ctor(SEOCheckerSocialValues value, IUmbracoDocument document, SEOCheckerSocialDataTypeConfig datatypeConfig, String culture, String segment)
       at SEOChecker.DataTypes.PropertyEditors.PropertyEditorWrappers.SEOCheckerSocialPropertyEditorWrapper.ToEditor(Property property, IDataTypeService dataTypeService, String culture, String segment)
    

    A fix (released on NuGet) would be nice and about time, sorry to put it like this.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Aug 03, 2020 @ 07:11
    Richard Soeteman
    0

    I Think there is an issues with Umbraco Cloud and the HttppContext to, mayeb they do something on a background thread that causes this on Cloud.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 03, 2020 @ 07:27
    Stefan Kip
    0

    Looking at the lines where the exception is thrown:

    IPublishedContent publishedContent = ContextHelper.UmbracoHelper.Content(id);
    this._document = ((publishedContent.Id == 0) ? new UmbracoDocument(id, new ContextInfo(HttpContext.Current), culture, segment) : new UmbracoDocument(publishedContent, new ContextInfo(HttpContext.Current), culture, segment));
    

    It wouldn't hurt adding simple null checks for ContextHelper.UmbracoHelper and publishedContent, right? I guess one of those is null.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Sep 01, 2020 @ 09:12
    Stefan Kip
    0

    So this isn't getting addressed at all? Is SEO Checker still maintained Richard? I'd like to know before we start buying licences as you'll understand.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Sep 01, 2020 @ 09:16
    Richard Soeteman
    0

    Hi Stefan,

    Yup It's maintained in fact it is in current Sprint. Can only do one thing at the time Stefan. The fact Umbraco V8 released to soon last year and Corona didn't help either...

    Best,

    Richard

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Sep 01, 2020 @ 09:17
    Stefan Kip
    0

    I know but it would be nice to keep us posted somehow. We can't guess what's happening, right?

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Sep 01, 2020 @ 09:20
    Richard Soeteman
    0

    Yup that's true and agree it took too long.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Sep 07, 2020 @ 07:34
    Richard Soeteman
    1

    Hi All,

    I have send a test version to Stefan last week and the errors were gone. You can also use this hotfix version for now. In 2.10 this fix will be included as well.

    Hope this helps for now,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft