Title: Optimize button in Bulk Optimization not working
Last modified: October 3, 2024

---

# Optimize button in Bulk Optimization not working

 *  [dugost](https://wordpress.org/support/users/dugost/)
 * (@dugost)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/optimize-button-in-bulk-optimization-not-working/)
 * Hi. I installed Robin image optimizer v1.7.0 the other day in WordPress v6.6.2
   but haven’t been able to use Optimize in the Bulk Optimization section. When 
   the button is clicked, the Console lists the following error:
 *     ```wp-block-code
       Uncaught TypeError: Class constructor xn cannot be invoked without 'new'    at Object.showModal (bulk-optimization.js?ver=1.7.0:267:13)    at HTMLButtonElement.<anonymous> (bulk-optimization.js?ver=1.7.0:104:22)    at HTMLButtonElement.dispatch (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.2:2:40035)    at HTMLButtonElement.<anonymous> (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.2:2:38006)
       ```
   
 * Any idea how to fix this? I’ve attached screenshots of Bulk Optimization and 
   Settings in case they’re helpful. Thanks.
 * > [View post on imgur.com](https://imgur.com/a/EMMevKz)
 * > [View post on imgur.com](https://imgur.com/ogAAqTJ)

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

 *  [Kona Macphee](https://wordpress.org/support/users/kona/)
 * (@kona)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/optimize-button-in-bulk-optimization-not-working/#post-18176560)
 * I have the same error. Weirdly, it isn’t showing up on my dev site, just on my
   production site, despite the fact that the two sites were recently synced.
 * To the OP, are you using Cloudflare on your site? That’s the main difference 
   between dev and live for me.
 *  [Kona Macphee](https://wordpress.org/support/users/kona/)
 * (@kona)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/optimize-button-in-bulk-optimization-not-working/#post-18176610)
 * PS WP 6.7.1 for me.
 *  Thread Starter [dugost](https://wordpress.org/support/users/dugost/)
 * (@dugost)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/optimize-button-in-bulk-optimization-not-working/#post-18188091)
 * [@kona](https://wordpress.org/support/users/kona/) I just tested out the Cloudflare
   angle. I have 1 dev site still unconnected to Cloudflare and the Optimize option
   ran without any problem. I then tried a production site connected to Cloudflare
   and got the same issue with an unresponsive button.
 * So could be related to CF or possibly a plugin conflict. I don’t have time at
   the moment to test this out but I’m hoping to clone the production site to confirm
   a conflict.
 *  Thread Starter [dugost](https://wordpress.org/support/users/dugost/)
 * (@dugost)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/optimize-button-in-bulk-optimization-not-working/#post-18302210)
 * [@kona](https://wordpress.org/support/users/kona/) After running a plugin conflict
   test, I’ve determined that there’s a conflict with Super Page Cache. Bulk Optimization
   will run when it’s deactivated. So you were spot on with the Cloudflare angle.
 * I had hoped adding `/wp-admin/options-general.php/?page=rio_general-wbcr_image_optimizer`
   to SPC’s “Prevent the following URIs to be cached” list and purging the cache
   would help but no such luck.
 * Perhaps a different setting can be changed in SPC in order to keep it active 
   and avoid the error RIO. For now, I’ll have deactivate SPC, run the optimization
   and then reactivate it.
 * Can the developer please look into this? Only with SPC active am I still getting
   the `Uncaught TypeError: Class constructor xn cannot be invoked without 'new'`
   error in Console.

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

The topic ‘Optimize button in Bulk Optimization not working’ is closed to new replies.

 * ![](https://ps.w.org/robin-image-optimizer/assets/icon-256x256.gif?rev=3523840)
 * [Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF](https://wordpress.org/plugins/robin-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/robin-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/robin-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/robin-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/robin-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/robin-image-optimizer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dugost](https://wordpress.org/support/users/dugost/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/optimize-button-in-bulk-optimization-not-working/#post-18302210)
 * Status: not resolved