@pako69 I have the same problem as @li-an but wasn’t able to solve disabling All in one SEO. Mine is given by the plugin WPPSO that is adding prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#" to the top level html.
But still don’t know how to solve. I’m opening a thread in the WPSSO support forum.
@overkill22
Did you updated to 0.4.1?
I do not know WPPSO, is it a plugin ? Did you tried to deactivated it ?
Can you provide a AMP to see it?
Thanks
@pako69 WPPSO is a plugin, I tried deactivating it and it solves the problem.
One error is: MANDATORY_AMP_TAG_MISSING_OR_INCORRECT
and the other: The attribute ‘prefix’ may not appear in tag ‘html ⚡ for top-level html’.
<!doctype html>
<html amp lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<head>
This is the link to a page with both error (I have 38 total)
And in this page I have an error caused by a video, but not sure how to fix it:
Invalid URL protocol ‘http:’ for attribute ‘src’ in tag ‘amp-video > source’.
<amp-video class="wp-video-shortcode amp-wp-enforced-sizes" width="640" height="360" controls="" sizes="(min-width: 640px) 640px, 100vw"><source type="video/webm" src="http://edgesuite.craftsy.com/4266/00/00-low.webm?_=1"/></amp-video>
@overkill22
The error “The mandatory tag ‘html ⚡ for top-level html’ is missing or incorrect.” you get here: https://clicksforcakes.com/8-buttercream-flowers-cakes-that-are-almost-too-beautiful-to-eat/amp is related to the first error you get in the same page: “The attribute ‘prefix’ may not appear in tag ‘html ⚡ for top-level html‘.”
> Fix the first error and I think the the second error should be also fixed…
About the Webm video error, I test it with the same video and I also get the same error.
> In a single post I just enter this:
http://edgesuite.craftsy.com/4266/00/00-low.webm
> But the output of the Amp plugin is:
http://edgesuite.craftsy.com/4266/00/00-low.webm?_=1
I don’t what is this extra stuff: “?_=1” but maybe it”s the reason why you get a validation error.
—
More about AMP Video: https://www.ampproject.org/docs/reference/components/amp-video
-
This reply was modified 9 years, 7 months ago by
pako69.
-
This reply was modified 9 years, 7 months ago by
pako69.
@pako69
I guess the first error is fixable only with the plugin WPSSO, correct?
The second I have no idea what is the ?_=1 at the end of the link… how can I get rid of that? and who’s applying it?
@overkill22
I guess the first error is fixable only with the plugin WPSSO, correct?
Yes, I think so… try to disable WPSSO and I think that all the errors related to the HTML tag will be fixed…
About the video issue I can’t answer you, I’m not the author of the AMP plugin, I just help when I can help… I suggest you to open another support ticket here…
-
This reply was modified 9 years, 7 months ago by
pako69.