Google Webmaster Tools reporting AMP errors
-
I’m on AMP 0.2.
GWT is reporting “0 Indexed AMP pages, 570 AMP pages with errors” so I’d like to get this fixed.
There are 6 types of AMP errors being reported under Search Appearance > Accelerated Mobile Pages, but 2 in particular are appearing across hundreds of my articles:
1) Error in schema.org NewsArticle
Apparently, as a blog, my site should instead use the http://schema.org/BlogPosting type. How do I enable this?
2) Incorrectly nested tag
How should I debug this?
Thanks
-
> Apparently, as a blog, my site should instead use the http://schema.org/BlogPosting type. How do I enable this?
We already use
BlogPosting
(https://github.com/Automattic/amp-wp/blob/master/includes/class-amp-post-template.php#L111) so the error might be something else.Can you share URLs for the erroring pages?
Hi
I’m on AMP 0.2
My Search console is reporting :
Fix errors on your Accelerated Mobile Pages (AMP) in order to have them prominently served to mobile users.-> TOPIC 1 : Error in schema.org NewsArticle
30 pages
https://developers.google.com/structured-data/testing-tool/?url=http%3A%2F%2Fwww.iphonekiller.fr%2F2012%2F08%2Fm-paiement-mcdonald-teste-paypal-dans-30-restaurants-en-france%2Famp%2FError = logo: missing and required
-> TOPIC 2 : Required attribute missing
19 pagesError = Required attributes missing: height
-> TOPIC 3 Invalid attribute value
1 pages
Error = Invalid attribute values: rel=attachment wp-att-16698Apparently, as a blog, my site should instead use the http://schema.org/BlogPosting type. How do I enable this?
2) Incorrectly nested tag
How should I debug this?
Thank you in advance for your help
Jean-Pascal
Hi
My previous post was incorrect.
Please read the right one see below
Thanks
—
I’m on AMP 0.2
My Search console is reporting :
Fix errors on your Accelerated Mobile Pages (AMP) in order to have them prominently served to mobile users.-> 1st TOPIC : Error in schema.org NewsArticle
30 pages
https://developers.google.com/structured-data/testing-tool/?url=http%3A%2F%2Fwww.iphonekiller.fr%2F2012%2F08%2Fm-paiement-mcdonald-teste-paypal-dans-30-restaurants-en-france%2Famp%2F
Error = logo: missing and required
I do not understand this problem about schema.org & newsartcileThanks in adavance & have a good week end
I was going to ask the same question about the logo as that is the only error I’m getting for NewsArticle error message too.
Thanks.
You can add a Site Icon to fix the logo validation issues.
> We already use BlogPosting (https://github.com/Automattic/amp-wp/blob/master/includes/class-amp-post-template.php#L111) so the error might be something else.
> Can you share URLs for the erroring pages?
Here are a few of the 500+:
https://jobmob.co.il/blog/resume-buzzwords-get-you-rejected/amp/
https://jobmob.co.il/blog/funny-craigslist-job-titles-listings/amp/
https://jobmob.co.il/blog/resume-objective-statements/amp/<Apparently, as a blog, my site should instead use the http://schema.org/BlogPosting type. How do I enable this?>
code from the plugin
$metadata = array( '@context' => 'http://schema.org', '@type' => 'BlogPosting', 'mainEntityOfPage' => $this->get( 'canonical_url' ), 'publisher' => array( '@type' => 'Organization', 'name' => $this->get( 'blog_name' ), ),
I think the problem is with the ‘@context’ => ‘http://schema.org’, and maybe it is supposed to use the url ‘http://schema.org/BlogPosting’ instead of ‘http://schema.org’
I don’t think so. The JSON-LD example at the bottom of http://schema.org/BlogPosting shows:
{ "@context":"http://schema.org", "@type":"LiveBlogPosting",
Where LiveBlogPosting is a specific type of BlogPosting.
Hi Mohammad,
I added the Site Icon to fix the LOGO validation issues.
And your tips does work >
https://developers.google.com/structured-data/testing-tool/?url=http%3A%2F%2Fwww.iphonekiller.fr%2F2012%2F08%2Fm-paiement-mcdonald-teste-paypal-dans-30-restaurants-en-france%2Famp%2F
Thank you for this tip.Concerning the other problem [image : false] I integrated an image in th epost but do you have an advice ?
https://developers.google.com/structured-data/testing-tool/?url=http://www.iphonekiller.fr/2016/01/bien-comprendre-comment-fonctionne-le-bartouba/amp/IPK
The spec (https://developers.google.com/structured-data/rich-snippets/articles#article_markup_properties) suggests using an image that’s 696px wide so maybe try a bigger image.
I’m also having the logo error in the developers tool. However, the logo is visible at the required 32×32 added through functions.php. Not sure what else could it be. Any ideas?
http://www.viajablog.com/lanzarote-que-ver/amp/Thanks!
Enric@quique – are you on Multisite?
Quique: I see the following stylesheet being added to the page which is not allowed:
<link rel=”stylesheet” type=”text/css” href=”//www.viajablog.com/wp-content/cache/wpfc-minified/98358344ba40083fd8783cc7aa9c420f/1456385758index.css” media=”all”/>
Also, the AMP boilerplate CSS is being modified which is also throwing as error.
Thanks!
I’m not a multisite. I created style.php and single.php files in my child theme to make changes to the plugin using the functions.php. Is this not allowed? Otherwise in every plugin update everything will get overriden.
The cache topic is related to the WP Fastest Cache. I will temporarily deactivate it for the moment until I find a better solution for the desktop version.
For the AMP boilerplate CSS I did a test changing back to plugin default and I see the same code in the source. Where could I change this? Now not sure if I changed these somewhere but doesn’t ring a bell…<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style>
Just piggybacking on this thread: am I reading right that post won’t pass Schema.org testing if it doesn’t have a featured image?
- The topic ‘Google Webmaster Tools reporting AMP errors’ is closed to new replies.