Rich Snippets error: missing required field "name (fn)" when "fn" is defined
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.
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, 2022Comments
-
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. Alsovcard
:<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 over 9 yearsWhat 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 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 over 9 years@closetnoc - The error persists if I use just
fn
in the class. -
closetnoc over 9 yearsOkay. 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 over 9 yearsAre you using Wordpress?
-
closetnoc over 9 yearsHave you tried class="fn url n" where fn is the first option in the list?
-
closetnoc over 9 yearsI 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 over 9 years@closetnoc - I've tried with your suggestions, but nothing changes. Thank you anyway.
-
-
Manolo over 9 yearsYes! 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 over 9 yearsGreat! Glad it all worked out.