• Resolved beatstorex

    (@beatstorex)


    Hi,

    In Structured Data Testing tool, I am getting the following error under “mainEntityOfPage”

    “is not a known valid target type for the identifier property.”

    And when I click on it, it takes me to the URL on the left side of the screen which shows me the URL typed in as “http:\/\/www.beatstorex.com\/”

    Now, when I edit that URL part and remove the “\” character and re-test my site it works fine and comes up with no errors.

    Its happening on all my pages and products. Is there a way to edit the plugin to fix this issue?

    The URL I am testing is https://www.beatstore.com

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter beatstorex

    (@beatstorex)

    You can also check for this link: https://www.beatstorex.com/kurupt-type-beat-2131/

    I get this error “is not a known valid target type for the identifier property.”

    Any help?

    I am getting the same error….

    I can confirm we are also getting this error.

    put a # after the URL value for @id

    ie. https://example.com/mypage/#

    Thread Starter beatstorex

    (@beatstorex)

    @accdocsol: there is no place to put a ‘#’ in the Schema plugin or the page or post or portfolio..

    If you mean to put it in the structured data testing tool, then I have found this that if you make even a slight change in the code in the left pane and undo it and then try to validate it by clicking on the Green Arrow in the middle of the screen you won’t get ANY ERRORS.

    It gives the error only when you run the tool using a URL…which is pretty weird!!

    Also try this, open the webpage that gives you the error, right click anywhere empty and choose “View Page Source” or press CTRL+U and then in the new window that opens press CTRL+A and once everything is selected press CTRL+C to copy everything.

    Now go to SDTT, and paste your code in the Code Snippet tab of the tool and run it….BOOM NO ERRORS!

    Well, at least for me…Try your pages and share the result..

    I understand.

    I also noticed that the SDTT gives me @id errors in my article, blogpost and BreadcrumbList elements, but these errors do not appear in my structured data in search console…

    so for now I just ignore it.

    Thread Starter beatstorex

    (@beatstorex)

    @accdocsol: I am getting these errors in my search console –
    Missing: author
    Missing: entry-title
    Missing: updated

    Any ideas how to fix these?

    they are hEntry errors

    I think you can remove the code so that your site does not output hEntry

    theres a code snippet for that…

    Plugin Author Hesham Zebida

    (@hishaman)

    Since I don’t see errors in Google’s Search Console, then this might be a bug in the Structured Data Testing Tool itself.

    I suggest you guys ignore it.

    @beatstorex: I added the following snippet and the hEntry errors disappeared. You may have to wait a while until search console records the changes.

    function ja_remove_hentry( $class ) {
    $class = array_diff( $class, array( ‘hentry’ ) );
    return $class;
    }
    add_filter( ‘post_class’, ‘ja_remove_hentry’ );

    Thread Starter beatstorex

    (@beatstorex)

    @accdocsol thanks for the code. I already added it 4 days back and now waiting for GSC to pick it up.

    I wanted to know will this code remove hentry from easy digital downloads or just from blogs pages etc.?

    @beatstorex: sorry I am not familiar with that.

    Thread Starter beatstorex

    (@beatstorex)

    @accdocsol ok. thanks for your help though ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘An error for mainEntityOfPage..’ is closed to new replies.