Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google search console complaining about Microdata #37

Open
koalabear974 opened this issue Aug 18, 2021 · 5 comments
Open

Google search console complaining about Microdata #37

koalabear974 opened this issue Aug 18, 2021 · 5 comments

Comments

@koalabear974
Copy link

koalabear974 commented Aug 18, 2021

Hi!
After installing Metaknight to my kirby website, google search console started to complain about a piece a metadata added by MetaKnight. Here's the error and the piece of code:
Unparsable structured data > Reference to nonexistent item 'null'
Code:
<style itemscope itemtype="https://schema.org/WebSite" itemref="schema_name schema_description schema_image"></style>

Right now I just removed it as I'm not sure how important it is. But If someone could explain why GSC is complaining about it, and maybe how to fix it?
Thanks in advance

@GabrielRw
Copy link

Had the exact same issue !

@BenediktEngel
Copy link

I also have the same issue. Does anybody got any news on that?

@jonathanmuth
Copy link
Contributor

I am aware of the bug and will try to fix it in the next release. I believe it will only occur when no Meta Image has been uploaded.

As a temporary workaround add a meta image via the site-wide SEO tab.

@BenediktEngel
Copy link

Yes i also think it's that, cause schema_name and schema_description are added anyway. Even if these are empty. Maybe just check if there is an image and only include schema_image if true.
One other thing i just saw: I think the If-else-statement in line 35-41 is useless, cause it generates the same output. But that just as a sidenote ;)

@afbora
Copy link

afbora commented Feb 7, 2022

I have same issue. @BenediktEngel is right. schema_image should be avaiblable if seo image field is not empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants