Title: Error JavaScript code is not allowed after upgrade
Last modified: March 14, 2019

---

# Error JavaScript code is not allowed after upgrade

 *  [xaviermi](https://wordpress.org/support/users/xaviermi/)
 * (@xaviermi)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-javascript-code-is-not-allowed-after-upgrade/)
 * Error “JavaScript code is not allowed” after update to Version 0.9.97.43.
    In
   Google Search Console over 400 errors reported, on three different websites after
   update (no other changes have been made to the AMP posts).

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

 *  Thread Starter [xaviermi](https://wordpress.org/support/users/xaviermi/)
 * (@xaviermi)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-javascript-code-is-not-allowed-after-upgrade/#post-11310640)
 * In 3 websites of 4 that I manage, AMP pages are no longer indexed in Google Search
   Console for “javascript code not allowed”. The problem occurs in three websites
   where the “Advanced AMP ADS” plugin is active, while in the fourth website this
   plugin is not active and there are no errors (javascript code referred to Google
   ad units).
 * Resolve as soon as possible or I’ll have to replace the plugin (besides having
   spent money on a non-functioning plugin).
 *  Thread Starter [xaviermi](https://wordpress.org/support/users/xaviermi/)
 * (@xaviermi)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-javascript-code-is-not-allowed-after-upgrade/#post-11310797)
 * By deactivating your premium plugin “Advanced AMP ADS”, Google Search Console
   allows to correct reported errors. So the problem is your plugin!
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-javascript-code-is-not-allowed-after-upgrade/#post-11310804)
 * > By deactivating your premium plugin “Advanced AMP ADS”, Google Search Console
   > allows to correct reported errors. So the problem is your plugin!
 * As you have their premium plugin, please contact the author on their own site.
   They are not permitted to support any customers in these forums.
 * For pro or commercial product support please contact the author directly on their
   site. This includes any pre-sales topics as well.
 * As the author is aware, commercial products are [not supported in these forums](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
   I am sure they will have no problem supporting you there.

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

The topic ‘Error JavaScript code is not allowed after upgrade’ is closed to new 
replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [amp errors](https://wordpress.org/support/topic-tag/amp-errors/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/error-javascript-code-is-not-allowed-after-upgrade/#post-11310804)
 * Status: not resolved