[WP Smush Pro] Plugin Conflict Smush Pro and WP Offload Media

I've just updated WP Offload Media (https://deliciousbrains.com/wp-offload-media/) to v2 and I now can't upload images to my site. Either the media library doesn't load or I get http errors when uploading. If I disable Smush Pro then it works fine again. Similarly if I disable WP Offload Media and have Smush Pro enabled it works fine. So it seems to be a specific conflict between those two plugins.

I've contacted the plugin developers of WP Offload Media too but wanted to let you know to see if there's anything that can be done.

Thanks,

  • Ash
    • WordPress Hacker

    Hello Jon

    I can see there is an error generated. Would you please enable debug mode and check if there is any error? To enable debug mode please go to wp-config.php and change

    define( 'WP_DEBUG', false );

    to

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    Now, enable both plugins again. And upload an image. That will create a file called debug.log inside wp-content folder. Open that file, check the very bottom and you will see the latest errors. Please send me those.

    Have a nice day!

    Cheers,
    Ash

  • Jon
    • The Incredible Code Injector

    Thanks, here's the error I get...

    [26-Sep-2018 08:29:36 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Amazon_S3_And_CloudFront::is_attachment_served_by_s3() in /mnt/target05/343927/2018386/www.christchurchthornton.org/web/content/wp-content/plugins/wp-smush-pro/lib/integrations/class-wp-smush-s3.php:265
    Stack trace:
    #0 /mnt/target05/343927/2018386/www.christchurchthornton.org/web/content/wp-content/plugins/wp-smush-pro/lib/class-wp-smush-helper.php(128): WpSmushS3->is_image_on_s3(42)
    #1 /mnt/target05/343927/2018386/www.christchurchthornton.org/web/content/wp-content/plugins/wp-smush-pro/lib/class-wp-smush-resize.php(119): WpSmushHelper->file_exists(42, '/mnt/target05/3...')
    #2 /mnt/target05/343927/2018386/www.christchurchthornton.org/web/content/wp-content/plugins/wp-smush-pro/lib/class-wp-smush-resize.php(195): WpSmushResize->should_resize(42, Array)
    #3 /mnt/target05/343927/2018386/www.christchurchthornton.org/web/content/wp-content/plugins/wp-smush-pro/lib/class-wp-smush.php(707): WpSmushResize->auto_resize(42, Array)
    #4 /mnt/target05/343927/2018386/www.christchurcht in /mnt/target05/343927/2018386/www.christchurchthornton.org/web/content/wp-content/plugins/wp-smush-pro/lib/integrations/class-wp-smush-s3.php on line 265

  • Jon
    • The Incredible Code Injector

    I had this from the WP Offload plugin guys too..

    "The Smush Pro plugin is unfortunately reaching inside WP Offload Media to use a function that no longer exists. That function was never published as part of any public API or documented for external use, it's considered private even if implemented as public, so it should not have been used by Smush Pro."

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.