-
Notifications
You must be signed in to change notification settings - Fork 385
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
Errors in Chrome Console (Tag Disallowed) #336
Comments
Something is injecting javascript into the page which is not allowed:
Looks like New Relic? You should disabled it for AMP pages. |
I do not understand where this New Relic javascript is coming from, as I do not have New Relic installed and have not heard of it before. Therefore, I'm unsure how I can delete this. I contacted New Relic customer support, and they could not help me either. |
|
@larsschenk I know this is an old thread but I just want to say thank you to |
Thanks @westonruter, just because I didn't use the https://github.com/ampproject/amp-wp but I purchased for Theme Newspaper from TagDiv and they provide AMP and current PHP installation had that NewRelic things so it made a headache so far. BTW, I would like to contribute to https://github.com/ampproject/amp-wp but I can't find the guides to join on Wiki page, can you please show me how (I used to serve NewsCorp AUS where I work on code from XWP). |
@npbtrac You can find information for contributing here: https://github.com/ampproject/amp-wp/blob/develop/contributing.md |
with this code if (stripos ($ _ SERVER ['REQUEST_URI'], '/ amp /')) { we can block the extension of new relic at the AMP level, which is where the error in Search Console gives us, the question would be where exactly we should place said code? Thank you |
I've installed the AMP plugin, but I have errors in Chrome Console. I have two errors saying "The tag 'script' is disallowed except in specific forms." How do I fix these?
The article I'm testing is here: https://pratters.com/android-n-features-id-like-to-see/amp/
The text was updated successfully, but these errors were encountered: