GOOGLE SEARCH CONSOLE - AMP Error Validation Email

Google Search Console: Fix AMP Error in WordPress

posted in: Designer 4

I received an email from Google Search Console

…about my AMP pages having errors.

Although there are other issues at hand, like conflicts between other AMP plugins and the Automattic (WP’s founding father’s corporation) AMP plugin.

I wanted to inject ads into my AMP pages, but it seems a plugin that does it reliably without breaking other features (like images or galleries) isn’t more than half-baked yet. (If you know of a good AMP ad injector for WP, please comment).

GOOGLE SEARCH CONSOLE - Accelerated Mobile Pages Critical Errors List
GOOGLE SEARCH CONSOLE – Accelerated Mobile Pages Critical Errors List

I found if I just disable the plugin that injects AMP ads, the styling and Google Search Console errors evaporated.

But then of course I don’t have my ads in AMP pages…

For now, I’ll just forego, because with errors, Google won’t list your pages in their ever-so-precious AMP search results. It’s strange that the world’s largest seller of internet ads (which makes up the vast majority of their revenue), makes it so difficult to insert their ads in their shiny new schema.

GOOGLE SEARCH CONSOLE - AMP Pages with Critical Error Issues (list)
GOOGLE SEARCH CONSOLE – AMP Pages with Critical Error Issues (list)
GOOGLE SEARCH CONSOLE - AMP markup missing or incorrect CDATA boilerplate
GOOGLE SEARCH CONSOLE – AMP markup missing or incorrect CDATA boilerplate
GOOGLE SEARCH CONSOLE - AMP Page with Not Valid Structured Data
GOOGLE SEARCH CONSOLE – AMP Page with Not Valid Structured Data

But if you can get your myriad AMP plugins to play nice enough together, yet still have AMP markup errors:

Here’s something I got what seemed to be a cache plugin minification error to stop adding a space (or whatever) to the AMP markup, even if it didn’t help the issue of breaking my galleries:

  • Go to your cache plugin,
  • Make it NOT cache or minify AMP pages by having it exclude any URL with “amp/” in it.
  • Then save your rule, reset all your caches, wait a few minutes, test your AMP pages again to see if it helped.
GOOGLE SEARCH CONSOLE - AMP Errors - From Cache Plugin's minification
GOOGLE SEARCH CONSOLE – AMP Errors – From Cache Plugin’s minification
GOOGLE SEARCH CONSOLE - AMP Page now with Valid Structured Data
GOOGLE SEARCH CONSOLE – AMP Page now with Valid Structured Data

If you’re paying attention

You’ll notice the first screenshots reference an issue with IMG tags, the second screenshot references issues with the STYLE tag. The point is, it seems when AMP markup was broken, removing AMP pages from the cache plugin’s effects seemed to fix the markup error. Hopefully it’s a fix for the reason you’re here.

4 Responses

  1. Bart Noëth
    | Reply

    I was looking for a fix to my issue, and found it in this article! My AMP pages on my site http://www.aviation24.be are now functional !! Thanks again!

  2. the5krunner
    | Reply

    rubbish problem that was created….am just about to try your solution. Looks promising ie remove caching

    • junduphat
      | Reply

      Hello?
      Did it work for you?

  3. junduphat
    | Reply

    Hello, Did it work for you?

Leave a Reply about how this blog changed your life.