Title: 502 error after adding js excludes
Last modified: October 24, 2018

---

# 502 error after adding js excludes

 *  [tmalena130](https://wordpress.org/support/users/tmalena130/)
 * (@tmalena130)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/502-error-after-adding-js-excludes/)
 * I added excludes to the “exclude scripts from Autoptimize” section and caused
   a 502 error on my site. I removed the excludes that I added and saved, but am
   still getting the 502 error. I even deactivated the plugin and reinstalled it,
   but when I try to turn on the “optimize javascript code”, I get the 502 error
   on the site, even though the excludes defaulted back to the general settings 
   that come with the plugin.
 * Are the excludes I added still living on the site somewhere else that I need 
   to delete them in order for the plugin to work the way it did before I tried 
   added custom excludes?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F502-error-after-adding-js-excludes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/502-error-after-adding-js-excludes/#post-10817450)
 * > Are the excludes I added still living on the site somewhere else that I need
   > to delete them in order for the plugin to work the way it did before I tried
   > added custom excludes?
 * Only in case of a caching issue (page or database). Maybe clear all caches to
   check if that fixes anything. If the problem persists (ask your hoster to) have
   a look at your PHP errorlog for relevant errors?
 * frank

Viewing 1 replies (of 1 total)

The topic ‘502 error after adding js excludes’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [excludes](https://wordpress.org/support/topic-tag/excludes/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/502-error-after-adding-js-excludes/#post-10817450)
 * Status: not resolved