Recently, I installed the AMP plugin from Automattic in order to validate with Google’s Accelerated Mobile Pages to take advantage of the speed that it offers, but I ran into some major issues. I installed the plugin without any issues, but one Google Search Console indexed my pages a few days later, I saw that every AMP link had a validation error.
I read through the documentation and it seemed that this validation error was a common problem, but the solution was evasive. Since AMP has only been out since last month, there was not much documentation aside from support forums written by folks speaking in some foreign code. Yes, I run a website for my photography, but I am a photographer, not a coding expert. That said, when faced with a validation error and looking at it in Developer Tools I can somewhat understand what is going on, but first I have to have copious amounts of caffeine.
Buried deep down in one of the support threads, I found where someone with the CloudFlare plugin was experiencing a validation error on all of their AMP generated links until they disabled the HTTPS Protocol Rewriting (shown below):
Along the way, I found another plugin that adds the AMP plugin as an extension to the Yoast SEO plugin. Basically, the Glue for Yoast SEO & AMP plugin assures that AMP will be using the correct the metadata from Yoast SEO and pulls that into AMP.
So instead of staying up all night reading support threads and brewing endless cups of coffee, if you are running CloudFlare & Yoast SEO and have plans to install AMP, I would suggest that you try what worked for me. If that resolves your issue, please share this link so others can find the solution to this misery.