Title: When active, plugin blocks certain pages
Last modified: January 2, 2020

---

# When active, plugin blocks certain pages

 *  [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/)
 * Hi,
 * I’ve attempted to toggle off every setting that I can think of in your plugin,
   but I still get blank pages for some pages. Some are product pages (woocommerce),
   but not all product pages, and some are regular pages, but again not all of them.
 * What does load is faster! In general seems to have desired effect, but just kills
   off about half of our site’s pages.
 * Using Themify.me ‘s Ultra theme.
 * Is there a known simple solution?
 * Thank you!

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12285619)
 * > I’ve attempted to toggle off every setting that I can think of in your plugin
 * which ones are still on?
 * > but I still get blank pages for some pages.
 * can you check your PHP-errorlog for (relevant) php errors?
 *  Thread Starter [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287090)
 * It seems that image Lazy Loading is causing the pages to fail. The site behaves
   normally when this setting is deactivated. That said, I would really like to 
   be able to use this feature – any adjustments to make with that issue?
 * There are no PHP errors that I can see. Perhaps I am looking in the wrong place
   within cPanel, though. Let me know if I should look further here.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287100)
 * OK, try this filter, which disables one specific new feature (lazyloading of 
   background-images), that way you probably can keep most of lazyloading active;
 *     ```
       add_filter( 'autoptimize_filter_imgopt_lazyload_backgroundimages', '__return_false' );
       ```
   
 * frank
 *  Thread Starter [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287284)
 * Where would I add this text, Frank? (I can get around pretty well, but am not
   completely native in this area) Thank you!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287410)
 * easiest/ safest way is to use [the code snippets plugin](https://wordpress.org/plugins/code-snippets/)
   🙂
 *  Thread Starter [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287946)
 * OK, and I simply drop in the code you provided without any additional function
   tag?
 * …and if you don’t mind one more question – after I drop it in there, am I able
   to delete the extra plugin?
 * Thank you!
 *  Thread Starter [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287980)
 * Nevermind…tried it and it seems happy. I am noticing that one can’t just delete,
   as you have to keep the snippet active within the plugin. Thanks for the simple
   solution and support!
 *  Thread Starter [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12287991)
 * …actually, no and after switching it off, the problem is more persistent
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12288455)
 * > actually, no and after switching it off, the problem is more persistent
 * darn, that’s a setback. afraid that php errorlog becomes a prerequisite now to
   be able to understand what is happening, can you look for that?
 *  Thread Starter [michaelmortarotti](https://wordpress.org/support/users/michaelmortarotti/)
 * (@michaelmortarotti)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12290277)
 * I am not certain of how to find this, but when I go into cPanel for my shared
   hosting, I see in the root directory of this domain a file called “error_log”.
   Is this the right one? If so, what is the best way to share this with you or 
   is there something I should look for?
 * Thank you
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12290313)
 * > I see in the root directory of this domain a file called “error_log”. Is this
   > the right one?
 * possibly & probably.
 * > If so, what is the best way to share this with you or is there something I 
   > should look for?
 * you can download the file and mail it to futtta-at-gmail-dot-com and I’ll have
   a look to see if there’s relevant info in there (fingers crossed).

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

The topic ‘When active, plugin blocks certain pages’ 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/)

 * 11 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/when-active-plugin-blocks-certain-pages/#post-12290313)
 * Status: not resolved