Errors in Google search console: A simple way to solve them!

23
2.1K followers
Updated

Hello,

I am talking about the errors that look like this, see image below, the hAtom Markup: microformats.org errors.

I just add some explanation about what hAtom actually is, but only for the people who are interested...
If your only interested in the solution, which I can understand, scroll down till you see "The Solution". :-)

You can find those errors in the Google search console under Search Appearance - Structured Data.


What is hAtom?

hAtom is a draft Microformat for marking up (X)HTML, using classes and rel attributes, content on web pages that contain blog entries or similar chronological content. These can then be parsed as feeds in Atom, a web syndication standard.

Are those errors important: Your website does not have any problem because does errors are there, they have no influence on your website itself.
BUT: If Google is testing for hAtom microformat in web pages, then it would be wise to assume that it must play a part in how Google indexes blog articles using microformats.

If you want more info about hAtom:
http://microformats.org/wiki/hatom
http://microformats.org/wiki/hatom-examples
https://en.wikipedia.org/wiki/HAtom

Below you can see an image of a page that has 2 errors:

If you click on the page name and in the next screen on Test live data, you will see the screen below:

It appears "all to be good" and you see entry-title and entry-content are filled in.

But the problem is not fixed because Google wants 4 entries: Title, Content, Author, and Updated.

The Solution (stop scrolling!):

You go to the dashboard of the site you want to fix.

First copy the text below:

//add hatom data

function add_suf_hatom_data($content) {

$t = get_the_modified_time('F jS, Y');

$author = get_the_author();

$title = get_the_title();

if (is_home() || is_singular() || is_archive() ) {

$content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';

}

return $content;

}

add_filter('the_content', 'add_suf_hatom_data');


Click appearance and in the menu that appears click editor.

In this new window that is open, you select functions.php and in the middle of the page on the right-hand side.

When you clicked it the text appears in the content window, we now will add an extra function.
You go to the bottom of the page and at the end of the last sentence you put your cursor, then you hit the enter button twice.

Now you right-click on that line and click on paste (or ctrl + V), the text that you just copied above, should appear.

Next you click on "update file" and everything is OK.

You can log off your website.

Within a couple of days, all your errors will be gone in your Google search console.

People that were only interested in the solution can now stop reading... ;-)

The others they go back to the Google Search console and repeat the action we did before:
You click on the page name where you see there were 2 errors and in the next screen on Test live data.
Again Google is fetching the page and the result is:

You can see at the right side that we have the 4 entries that Google wants to have an error free Search Console.

And at the left side (selected text) you can see that a line with "hentry" is added, this is the line that adds all the info we declared in the Functions.php.

That's it for now, I hope you liked the tip...

Grtz,

Bert

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

29

Hello, I just did this and now I cant access my site. When I press log in it says that there is a server error 500. Help!

I think You made an error with the change to the functions.php.

Hey Bert, what a great blog and piece of training. Definitely one for the bookmarks, thanks for sharing.

You're Welcome! ;-)

Thank you for this one, ut of 136 items I had 136 items with errors.

Missing: author
Missing: entry-title
Missing: updated

I just copied and pasted your html-code where you told me to, and then I run the structured data testing tool (live testing) and it says "all good", Thanks again

You are very welcome! Glad it could help...

Grtz,
Bert

Hello Bert,

First of all thank you so much for creating this tutorial. I am also having that error in the Google search console and I have it since I made my account. I found your training like a week ago and I added the text that you wrote here in functions.php

For most of my pages I don't get error (Missing: author; Missing: updated) anymore, but I still see the error on my get started page, contact, affiliate disclaimer and privacy policy.

Should I give it more days? Is been like a week or more since I've done this changes. Thank you in advance for your help.

All the best,
Cristina

Sorry to get back to you so late, I missed your answer in my mailbox apparently... It took up to 5 weeks before everything was gone, so yes indeed, you have to wait some time...

Thanks for the positive comment about my blogs, it is appreciated!

Grtz,
Bert

Hey Bert,

No worries, as we get so many emails everyday you can easily miss something, I know, it happened to me too.

Yes you are right, I have to give it more time. Since I wrote to you, 16 days ago when I had 4 pages with the error (Missing: author; Missing: updated) until today I still have only one page that shows that error, so things are going well.

Thank you!

Have a great day,
Cristina

Super! :-)

And another bookmark-worthy review. I will have to start organizing all those wonderful tips in order to be able to implement them as needed. Thanks for creating more work for me, lol :)

Glad I could help! ;-)

Thanks for the great info Bert!

You are very Welcome...

This is great Bert I am also bookmarking it for future reference

With pleasure Katie!

Thanks Bert!

with pleasure... :-)

I already bookmark so that I cannot forget. Thanks.

Your Welcome of course! Hope it will be useful in the future...

You really put together an exceptional post! Kudos!

Thanks Rosie! I appreciate your comment...

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training