Title: Why every page has invalid script error?
Last modified: January 11, 2021

---

# Why every page has invalid script error?

 *  Resolved [Manish S](https://wordpress.org/support/users/shahmanish877/)
 * (@shahmanish877)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/why-every-page-has-invalid-script-error/)
 * I have a site where AMP show issues in almost every pages and the page won’t 
   load in normal way.. All those issues shows invalid script whose source are from
   the plugins. When those invalid script are “Kept”, the page view normally. Is
   there any way to solve it?
    Screenshot 1. [https://nimb.ws/713Yns](https://nimb.ws/713Yns)
   2. [https://nimb.ws/O8HgyW](https://nimb.ws/O8HgyW)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwhy-every-page-has-invalid-script-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/why-every-page-has-invalid-script-error/#post-13890912)
 * Hello [@shahmanish877](https://wordpress.org/support/users/shahmanish877/)
 * The Theme or plugin you may be using is adding javascript on the AMP page, the
   AMP does not allow javascript so the AMP plugin removes them for you.
 * if you allow the scripts by keeping (“Kept”) them, it may create an invalid page
   which will not be indexed means not show up in the result and will not be cached
   in the AMP cache.
 * > Is there any way to solve it?
 * You may ask the plugin author to make it compatible, most cases need small fixes.
 * Look for an alternative plugin that is AMP compatible, you may check our site
   for compatible [themes](https://amp-wp.org/ecosystem/themes/) and [plugins](https://amp-wp.org/ecosystem/plugins/).
 * if you just started with your site please check our [getting started](https://amp-wp.org/documentation/getting-started/)
   guide.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/why-every-page-has-invalid-script-error/#post-13969498)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to open
   a [new support topic](https://wordpress.org/support/plugin/amp/#new-post) if 
   you require any further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why every page has invalid script error?’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [Validation error](https://wordpress.org/support/topic-tag/validation-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/why-every-page-has-invalid-script-error/#post-13969498)
 * Status: resolved