Rich Snippets error: missing required field "name (fn)" when "fn" is defined

5,329

Try the following:

<span class="vcard author">
<a rel="author" title="author profile" href="http://example.com/author/name/">
<span class="fn author">Author Name</span>
</a>
</span>

You need to add class="fn author" in the second span tag.

After you update the code go and test it out.

Your errors should go away gradually within a week or so.

Share:
5,329
Manolo
Author by

Manolo

Web developer. Back end - Front end PHP - Symfony Javascript - JQuery - HTML5/CSS3 - React MySQL - Neo4j Git - Subversion Apache - Nginx My freeware: MsalsasVotingBundle - Adds support for a voting system in Symfony Symfony Bundle Skeleton - Application for creating reusable Symfony bundles. Budget Request - Currency exchange REST API made with Symfony. Currency Exchange - Budget REST API made with Symfony. React SVG components - SVG components built with React Dynamic Audio Player - Audio player plugin for Wordpress Itransformer - Web application to transform images Need To Share - Wordpress plugin for sharing content Bunch Of Colors - Online web application for helping to select colors

Updated on September 18, 2022

Comments

  • Manolo
    Manolo over 1 year

    I'm getting these errors with Google Structured Data Testing Tool:

    Error: At least one field must be set for Hcard.

    Error: Missing required field "name (fn)".

    but the fn field is set. Also vcard:

    <span class="vcard author">
        <a class="url fn n" href="http://www.nosabesnada.com/author/smiranda/" title="Posts by Sandra" rel="author">Sandra</a>
    </span>
    

    I've followed some tutorials and tried some combination, but nothing seems to work.

    Any idea of what I am doing wrong?

    • closetnoc
      closetnoc over 9 years
      What documentation, tutorial, or example are you following? Class, as far as I understand, does not expect spaces in the name value. Please help us by providing the location of the source material you are using as a guide. Thanks!
    • Manolo
      Manolo over 9 years
      @closetnoc - As far as I know, some classes can be added to a tag separating with a space. This is one of the tutorials: urbanstoic.com/how-to-fix-google-hfeed-or-hcard-warnings
    • Manolo
      Manolo over 9 years
      @closetnoc - The error persists if I use just fn in the class.
    • closetnoc
      closetnoc over 9 years
      Okay. Thank You! I can learn something new and I and others will know where you are coming from. I have some business I have to attend to now, but I will look when I can. Hopefully, you will have an answer sooner than that.
    • closetnoc
      closetnoc over 9 years
      Are you using Wordpress?
    • closetnoc
      closetnoc over 9 years
      Have you tried class="fn url n" where fn is the first option in the list?
    • closetnoc
      closetnoc over 9 years
      I looked at seoskeptic.com/…. I also noticed that you are using class="vcard author". In the example on this linked page (about 2/3rds the way down), they are using class="vcard". I am not sure if these things make a difference. I really do not use micro data. I have dabbled in schema.org mark-up of course. Let us know. BTW- This site is often cited and I have found references on the site that have really helped in the past. Hopefully, there are some clues there for you.
    • Manolo
      Manolo over 9 years
      @closetnoc - I've tried with your suggestions, but nothing changes. Thank you anyway.
  • Manolo
    Manolo over 9 years
    Yes! The errors have disappeared. But also I've added a class "url author" to the link tag, and it is also displayed on Structured Data Testing Tool. Thanks ;)
  • dasickle
    dasickle over 9 years
    Great! Glad it all worked out.