-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amp-onerror AMP validation issues #7763
Comments
FYI @choumx |
We have also now seen this same problem on 150 sites. |
We are seeing this on WordPress.com sites too. In one case specifically, on attempting to validate a page with https://search.google.com/test/amp there is a validation error
|
@karinclimber @zdenys Thank you both for your reports. While we are actively looking into how to best handle this issue, you can download and install this mini-plugin as a temporary workaround. We appreciate your patience ask to please standby for further updates. |
It looks like that does fix it - I tested it on one site. But we will wait for you guys to get things sorted on your end before installing it and then later uninstalling it on 150 sites ;) Thanks for working on it! |
This workaround helped to see the errors valid in the tool but every time when google hits the page from the webmaster the page is first considered as “invalid” web story and we have to fetch manually and test live its a valid page. – Google first attempt is crawl the page is invalid so the pages don't consider as valid amp or amp story- check the screenshots here. Google first time hit – https://jmp.sh/U8ucb4t invalid web-story the work around is for plugin but not for google. All the stories that we are publishing are considered as invalid and going waste. – Joanna |
Quick fix change script to: Peter |
This is an issue with the AMP Validator, not with the Web Stories plugin per se. See ampproject/amphtml#22543 (comment). The AMP Validator should be fixed in the next day or so. In the mean time, patching the plugin per above or disabling |
@westonruter Thank you! |
As per ampproject/amphtml#22543 (comment), this has already been fixed on https://validator.amp.dev. It should be fixed in Search Console as well by the end of the week. So you can safely keep the mini-plugin active and then remove it again next week. |
Closing now as this has been fixed in Search Console. Feel free to delete the mini-plugin accordingly on your site. |
Bug Description
Context:
ampproject/amphtml#22543
ampproject/amphtml#34531
ampproject/amp-toolbox-php#211
AMP upstream has very recently added
amp-onerror
validation, which causes validation errors on sites with transformed AMP that don't use ESM. That's us.Example site: https://testsite.cmsdevrel.com/web-stories/thailand-copy/
There have been multiple user reports in the forums so far about the AMP validation errors this causes.
Possible Solutions
AmpBoilerplateErrorHandler
transformer as per `add amp-onerror validation for v0.js or v0.mjs ampproject/amphtml#34531 (comment) / Add support for amp-onerror on transformed pages (with ESM scripts) ampproject/amp-toolbox-php#211AmpBoilerplateErrorHandler
transformer altogetherExpected Behaviour
No AMP validation errors.
Steps to Reproduce
Example: https://testsite.cmsdevrel.com/web-stories/thailand-copy/
Screenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
Implementation Brief
The text was updated successfully, but these errors were encountered: