Title: Plugin breaks when any optimization is turned on (HTML, CSS, or Javascript)
Last modified: June 14, 2017

---

# Plugin breaks when any optimization is turned on (HTML, CSS, or Javascript)

 *  [klivie](https://wordpress.org/support/users/klivie/)
 * (@klivie)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/plugin-breaks-when-any-optimization-is-turned-on-html-css-or-javascript/)
 * I get given this error message in my logs:
 * PHP Fatal error: Call to a member function get() on null in PROJECTROOT\wp-includes\
   cache.php on line 123
 * this means i can’t use any of the optimization options, this includes all of 
   HTML, JS, and CSS
 * Is this an incompatibility with my WordPress version or something? Works absolutely
   fine on other projects I’ve worked on

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/plugin-breaks-when-any-optimization-is-turned-on-html-css-or-javascript/#post-9227466)
 * As far as I can see the error is unrelated to Autoptimize [@klivie](https://wordpress.org/support/users/klivie/);
 * cfr. [https://github.com/WordPress/WordPress/blob/master/wp-includes/cache.php#L120-L124](https://github.com/WordPress/WordPress/blob/master/wp-includes/cache.php#L120-L124)
   the function called is `wp_cache_get` and the error indicates `$wp_object_cache`
   not being available (it’s `null`).
 * Now [Autoptimize does not call or use](https://github.com/futtta/autoptimize/search?utf8=%E2%9C%93&q=wp_cache_get&type=)`
   wp_cache_get`, so I suppose this might be a conflict due to AO + some other plugin?
 * You might have to disable/ re-enable your other plugins one by one to see why
   this occurs.
 * frank

Viewing 1 replies (of 1 total)

The topic ‘Plugin breaks when any optimization is turned on (HTML, CSS, or Javascript)’
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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/plugin-breaks-when-any-optimization-is-turned-on-html-css-or-javascript/#post-9227466)
 * Status: not resolved