Title: Invalid script: jquery.min.js
Last modified: February 11, 2021

---

# Invalid script: jquery.min.js

 *  Resolved [hamil](https://wordpress.org/support/users/hamil1/)
 * (@hamil1)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/)
 * After updating to WordPress 5.6 I get the message “Invalid script: jquery.min.
   js” Source Wordfence Security, All in One SEO. The same message is also for the
   Jetpack by WordPress and Yoast SEO plugins, if installed.
    This message was not
   on WordPress 5.5. I started the All in One SEO thread [https://wordpress.org/support/topic/amp-invalid-script-jquery-min-js/](https://wordpress.org/support/topic/amp-invalid-script-jquery-min-js/).
   However, I was advised to contact the AMP plugin support forum.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-script-jquery-min-js%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14035334)
 * Thanks for reaching out. With the same plugins active on a WordPress 5.6.1 I 
   don’t encounter any such validation errors other than Wordfence related errors,
   which is expected with Wordfence not fully AMP compatible with default configurations.
 * Do you encounter the same validation errors highlighting other plugins once you
   have the Wordfence plugin temporarily deactivated, or after resetting the Wordfence
   settings? (Wordfnce > All Options > Restore Defaults)? Another option is to check
   after using the [plugin suppression feature](https://i.imgur.com/LJArjyI.png),
   to deactivate Wordfence on AMP URLs only.
 * Let me know anyway once you check the above. From my side I haven’t encountered
   any validation errors with the additional plugins you mentioned with default 
   configurations.
 *  Thread Starter [hamil](https://wordpress.org/support/users/hamil1/)
 * (@hamil1)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14035713)
 * [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) Thank you.
   The reason is really the Wordfence plugin. Restoring to default mode did not 
   help. Deactivation yes. After activation, the error is back. I will contact the
   Wordfence Support Forum.
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14035851)
 * Good to know, thanks for sharing your findings. I’ll keep an eye on your Wordfence
   topic.
 * If you have a moment free we’d love to hear [how you’re finding the AMP plugin](https://wordpress.org/support/plugin/amp/reviews/#new-post)
   so far.
 *  Thread Starter [hamil](https://wordpress.org/support/users/hamil1/)
 * (@hamil1)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14035929)
 * Link to a question in the Wordfence Security Plugin Support Forum [https://wordpress.org/support/topic/amp-error-message-jquery-min-js/](https://wordpress.org/support/topic/amp-error-message-jquery-min-js/)
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14036904)
 * Subscribed! Thanks for sharing. With all the features that Wordfence provides
   it’s unlikely that it can become fully compatible although I wonder can some 
   features be disabled from running on AMP URLs. Eitherway I’ll keep an eye on 
   it. Thanks again
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14037078)
 * I actually created a mini plugin to make Wordfence AMP-compatible: [https://gist.github.com/westonruter/3bad77db53496c7103dd64ca1a0e1cf1](https://gist.github.com/westonruter/3bad77db53496c7103dd64ca1a0e1cf1)
 *  Thread Starter [hamil](https://wordpress.org/support/users/hamil1/)
 * (@hamil1)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14037232)
 * [@westonruter](https://wordpress.org/support/users/westonruter/) Thank you for
   your plugin. I use it. It worked perfectly on WordPress 5.5. However, after updating
   to 5.6, an error message appeared.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14037285)
 * I just [updated](https://gist.github.com/westonruter/3bad77db53496c7103dd64ca1a0e1cf1/revisions)
   the [plugin](https://gist.github.com/westonruter/3bad77db53496c7103dd64ca1a0e1cf1)
   to account for the jQuery changes in WordPress 5.6.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14037291)
 * (I don’t use Wordfence so I haven’t tested this, but the change should prevent
   that jQuery script from being marked as a validation error.)
 *  Thread Starter [hamil](https://wordpress.org/support/users/hamil1/)
 * (@hamil1)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14037962)
 * [@westonruter](https://wordpress.org/support/users/westonruter/) I updated the
   plugin. The error message disappeared. Thanks.

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

The topic ‘Invalid script: jquery.min.js’ 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/)

 * 10 replies
 * 3 participants
 * Last reply from: [hamil](https://wordpress.org/support/users/hamil1/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/invalid-script-jquery-min-js/#post-14037962)
 * Status: resolved