Copied to clipboard

Flag this post as spam?

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


  • Sabin Regmi 13 posts 93 karma points
    Nov 08, 2016 @ 10:51
    Sabin Regmi
    0

    SEO checker shows validation error even there is h1 tag

    Hi,

    I have used Seo checker package for Seo. I have used h1 tag properly as

    title

    for title of each page, but seo checker validation always show "H1 tag is missing in this template" error. enter image description here

    Any suggestion, how can i resolve this?

    Here is Umbraco trace log:

    ERROR SEOChecker.Core.Validation.SEOValidator - SEOChecker: Error during validating tag for document: 1055 using validator 'BodyTextFocusKeywordNotFound' System.NullReferenceException: Object reference not set to an instance of an object. at SEOChecker.Validators.ContentValidators.Keywords.BodyTextKeywordValidator.RemoveH1(HtmlNode bodyNode) at SEOChecker.Validators.ContentValidators.Keywords.BodyTextKeywordValidator.Parse(ValidationResult result, IUmbracoDocument document, HtmlDocument htmlDocument, IContextInfo contextInfo) at SEOChecker.Core.Validation.SEOValidator.Validate(ValidationResult validationResult, IUmbracoDocument document, HtmlDocument htmlDocument, IContextInfo context)

    Regards

    Sabin

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Nov 08, 2016 @ 17:13
    Alex Skrypnyk
    0

    Hi Sabin,

    Can you share razor code of your page?

  • Sabin Regmi 13 posts 93 karma points
    Nov 09, 2016 @ 04:00
    Sabin Regmi
    0

    Hi Alex,

    Thanks for Reply.

    Part of razor code where i have used h1 is as:

        <h1>
        @(homePage.HasValue("registerTitle") ? homePage.GetPropertyValue("registerTitle").ToString() : homePage.Name)
        </h1>
    

    Regards

    Sabin.

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Nov 09, 2016 @ 11:30
    Alex Skrypnyk
    0

    Hi Sabin,

    I just looked at Seo checker, tried to find the problem and I see that it was realy bug.

    And it was fixed in 1.9.4.1 version - https://our.umbraco.org/projects/website-utilities/seo-checker/

    What version are you using?

    Maybe you can upgrade it?

    Thanks,

    Alex

  • Sabin Regmi 13 posts 93 karma points
    Nov 10, 2016 @ 07:56
    Sabin Regmi
    0

    Hi Alex,

    Thank you for your valuable reply. I think its because, I have been used admin login at first, for my test site and probably in that situation, may be SEO checker unable to check other pages and display validation error.

    Problem was solved once i removed the login part from my site.

    Thanks

    Sabin

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Nov 10, 2016 @ 16:20
    Alex Skrypnyk
    1

    Glad to hear that you solved the issue!!!

    Have a nice evening.

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft