AMP errors because of old JS in use
-
It seems like AMP plugin needs updation, as because of the old JS, AMP pages have started throwing errors, they are not getting validated anymore. KIndly look into this urgently.
The page I need help with: [log in to see the link]
-
Thank you for reaching us. Custom js is now allowed in AMPforWP. it might be due to other plugins causing the issue, Also are you using any adsense on this? Can you please check once by deactivating the active plguins one by one and let us know back which one is causing the issue?
So these are the errors:
- The attribute ‘custom-element’ may not appear in tag ‘amphtml module engine script’.
- Custom JavaScript is not allowed.
Error first goes away when I turn off Server Side Rendering
2nd error is because of the AMP plugin is adding https://cdn.ampproject.org/v0/amp-img-latest.js script to the AMP pages which is outdated now as I pointed out before.
Kindly look into this super urgently. Other people has also started facing this same issue.
Also no other plugin or theme is clashing with the AMP pages, already tested that.Also, adsense is not an issue, this errors came all of a sudden. I believe AMP updated framework which plugin is yet to catch up.
- This reply was modified 1 year, 2 months ago by Akki.
Is there any way to quicky remove that 404 JS url until you push an update?
Thank you so much for the detailed information. We will cross-check the scenario and assist you to fix the issue. Kindly give us some time.
Hi, We have checked the site and the error is not showing now. Can you please cross check once and let us know back the response?
Hi, for now, we have changed the plugin to the official one, so errors are not there. But the errors it had, I already listed it above.
Sorry for the inconvenience. We are here to assist you. It might be due to caching. Can you please check once by clearing the caches and let us know back the response? So that we will assist you accordingly to resolve your issue.
Hi, no there is no cache issue, I disabled every kind of cache before posting here. Please assist in resolving this issue, really want to shift back to your plugin.
Hi, We are here for you to assist with this. We have inspected the issue on both the AMP test and AMP validator and there are no errors on that. You can see this in the following references.
And on the AMP extension also there are no errors. You can see this in the following screenshot: https://prnt.sc/_gNAXaO1IncE
We tested on different browsers and it seems it is showing on some browsers. In our tests some browsers not showing any errors. Its strange.
And we have inspected the site in that, And it seems the issue is related to this script: https://prnt.sc/Yx5w99Hm9Mv9
Can you please let us know, How did you added that script? Through any plugin? Kindly help us to find out the rootcause of the issue. We are assist you to fix the issue at earliest in the best possible way.
Presently your plugin is not active on the site, so checking the AMP validator is useless. If there is anyway to provide you with debug data after activating your plugin, I can do that, but I cannot keep your plugin active on the site as it made all AMP pages red with errors.
Please let me know if there is any way to provide you with any debug data.
Hi, Can you please let us know are you using siteground? Kindly do let us know. We are debugging the issue and surely we will assist you to fix the issue earliest.
Hi, Actually we are debugging the issue and we will get back to you once we found the root cause. Please kindly give us sometime.
- The topic ‘AMP errors because of old JS in use’ is closed to new replies.