Title: Autoptimize 502 error
Last modified: January 4, 2018

---

# Autoptimize 502 error

 *  Resolved [luito](https://wordpress.org/support/users/luito/)
 * (@luito)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/)
 * Many days ago i have de same problem on all my sites.
    The plugin crashes when
   i go to the **“main tab”** and in the **“Optimize More tab”** I dont have php
   errors in my logs. both URLs: /wp-admin/options-general.php?page=autoptimize /
   wp-admin/options-general.php?page=ao_partners Can you help me?. Thank you.
    -  This topic was modified 8 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Fixed broken formatting
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautoptimize-502-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/autoptimize-502-error/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/autoptimize-502-error/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/autoptimize-502-error/page/2/?output_format=md)

 *  Thread Starter [luito](https://wordpress.org/support/users/luito/)
 * (@luito)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9831634)
 * i found this error on wordpress logs
    **Undefined index: autoptimize_extra_checkbox_field_0
   in /wpfiles/current/incatrail/wp-content/plugins/autoptimize/classlesses/autoptimizeExtra.
   php on line 290**
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9831638)
 * OK, some questions [@luito](https://wordpress.org/support/users/luito/);
    * what
   version of Autoptimize are you on? * did this work before? * if it worked before,
   when did it break? * does your host(er) by any chance stop reqeusts to the outside
   world (AO fetches an RSS-file to populate the “optimize more”-tab?
 * (the undefined index one is harmless and has been fixed on the development build
   already, will be part of AO 2.3.2. if you want you can [download the update from github here](https://github.com/futtta/autoptimize/archive/master.zip))
 * frank
 *  Thread Starter [luito](https://wordpress.org/support/users/luito/)
 * (@luito)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9831801)
 * Hello Frank.
    Thanks for your answer. I use the last version of the plugin. My
   problem come in the last wordpress version. and i saw this when upgrade the last
   version of Autoptimize. I dont know why is working “extra tab” of the plugin 
   and others doesnt
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9832971)
 * [@luito](https://wordpress.org/support/users/luito/) some more questions (as 
   I honostly have no idea what is causing this);
    * can [enable WP_DEBUG as per these guidelines](https://codex.wordpress.org/WP_DEBUG)
   to see if you get more info on the problem? * can you deactivate AO, delete it
   and then reinstall? * if that does not work, can you [download the previous version of AO](https://downloads.wordpress.org/plugin/autoptimize.2.2.2.zip)
   and see if that “fixes” it for you?
 * frank
 *  [nechry](https://wordpress.org/support/users/nechry/)
 * (@nechry)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833630)
 * I got same issue since last update. I currently disable the Autoptimize plugin
   and no more 502 error. With the previous version I never got this issue.
 *  Thread Starter [luito](https://wordpress.org/support/users/luito/)
 * (@luito)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833685)
 * Hello Frank.
    I found the problem, is a conflic between W3 Total Cache plugin
   and Autoptimize. Still I cant fix.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833689)
 * ah … are all W3TC minification options deactivated?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833714)
 * just installed W3TC and ticked almost all options, but still can’t reproduce 
   I’m afraid.
 *  [nechry](https://wordpress.org/support/users/nechry/)
 * (@nechry)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833752)
 * from my side I don’t have the W3 Total Cache plugin, but other cache plugin: 
   WP Super Cache
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833761)
 * me too [@nechry](https://wordpress.org/support/users/nechry/), no issues there
   either. I’m afraid I’m completely in the dark here, can you provide me with feedback
   on [my questions here](https://wordpress.org/support/topic/autoptimize-502-error/#post-9832971)?
 *  [nechry](https://wordpress.org/support/users/nechry/)
 * (@nechry)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833867)
 * @ optimizingmatters as you proposed, I deactivate AO (this step already done),
   delete it and then reinstall.
 * from now I did not got the error 502, so wait and see. Last time in 5 minutes
   I got the error and a restart nginx is not enough to resolve I always have to
   reboot the host.
 *  Thread Starter [luito](https://wordpress.org/support/users/luito/)
 * (@luito)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833887)
 * Minify module is desactivated.
    I found the problem maybe is a error in object
   cache from W3 total cache. Something in the update from WordPress, Autoptimize
   or W3 total cache. I working to find the problem.
 *  [nechry](https://wordpress.org/support/users/nechry/)
 * (@nechry)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833914)
 * Since I previously have the issue, I get this entry in my log file:
    2018/01/
   04 06:48:33 [error] 10856#10856: *784773 upstream timed out (110: Connection 
   timed out) while reading response header from upstream, client: 51.15.xx.xx, 
   server: mysite.com, request: “GET /?ao_speedup_cachebuster=34252 HTTP/1.1”, upstream:“
   fastcgi://unix:/run/php/php7.0-fpm.sock”, host: “mysite.com”, referrer: “[https://mysite.com/?ao_speedup_cachebuster=34252&#8221](https://mysite.com/?ao_speedup_cachebuster=34252&#8221);
 * refer to log /var/log/nginx/mysite.com.error.log.1
 * ever and ever
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/#post-9833941)
 * ah, but that is an error I know of (and which is fixed on the development version)
   [@nechry](https://wordpress.org/support/users/nechry/). I bet you’re using an
   external object cache (redis or memcached)? try [this zip file (github) which has a fix for that](https://github.com/futtta/autoptimize/archive/master.zip)
   and let me know if that fixes things.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/page/2/#post-9833966)
 * the developement version is now also available [from the wordpress.org repo](https://downloads.wordpress.org/plugin/autoptimize.zip).

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/autoptimize-502-error/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/autoptimize-502-error/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/autoptimize-502-error/page/2/?output_format=md)

The topic ‘Autoptimize 502 error’ 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/)

 * 32 replies
 * 3 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-502-error/page/3/#post-9852108)
 * Status: resolved