question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AMP Structured Data errors for `publisher.logo` and `article.image`

See original GitHub issue

As with #7557, #7425 and #7396 we’re facing more and more issues regarding structured data in AMP. Google wants to have a proper publisher.logo (warning) in 60x600px dimensions and an article.image (error). Always!

But it’s not only for AMP! We get the exact same errors and warnings for normal blog posts, so we need a short term solution for LTS, which could be like this:

  • replace the default Ghost blog logo with one, that fits the dimensions
  • put a text underneath the blog logo update in general settings, that it has to fit the image dimensions
  • use the blog cover as a default article.image whenever no post image is supplied. If there’s no blog cover, use a default picture (this needs to be defined, maybe something neutral, that refers to writing?)

For a long term solution, we need image-optimisation. With that we’re able to resize the publisher.logo and offer the possibility to upload a default post image, just like we do with the blog cover or logo in general settings.

Happy for other opinions here!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
ErisDScommented, Jan 10, 2019

I recommend that we introduce the concept of “system” image sizes, which have one or two sizes used for schema.org, and where people have linked to external images (no longer possible), we should assume they are the right size.

This would allow us to remove all of the code that handles looking up image dimensions, seeing as we are now in control of what dimensions are served, and simplify the logic extensively.

2reactions
inputshcommented, Nov 1, 2019

Pardon me asking, but why was this closed? I’m running the latest version (v3.0.2) and I still see the following markup:

    "publisher": {
        "@type": "Organization",
        "name": "Example",
        "logo": "/path/to/logo.png"
    },

…instead of:

    "publisher": {
        "@type": "Organization",
        "name": "Example",
        "logo": {
          "@type": "ImageObject",
          "url": "/path/to/logo.png",
    },

Interestingly, I can successfully run Structured Data Testing Tool on my homepage with no issues nor warnings, but when I do the same on an article (so, a publisher within "@type": "article"), I get an error around publisher logo: A value for the url field is required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix for Image and Publisher Errors in Structured Data ...
Google AMP use case restricts the Publisher to Organization only. The conflict is that Person does not have a logo, only image property....
Read more >
Missing Publisher URL and Publisher Name error ... - AMPforWP
The reason behind the error ” Missing Publisher URL and Publisher Name ” is because you have not setup Default Structured Data Logo...
Read more >
Google Modifies Logo Requirements for AMP Structured Data
Google updated the requirements for the logo structured data for AMP articles. The update is a clarification of how publishers can display ...
Read more >
Problem with Structured Data – Publisher Logo in AMP
Any idea? @der-bank-blog It looks like the theme you are using seems to feature it's own AMP reader mode templates.
Read more >
Google gives me an error on my structured data markup even ...
Yes, this looks like it relates to the publisher logo of an article. And is part of the AMP based requirements. These requirements...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found