• 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:

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    PS WP 6.7.1 for me.

    Thread Starter dugost

    (@dugost)

    @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

    (@dugost)

    @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.