Title: Uncaught WebPConvert
Last modified: April 29, 2026

---

# Uncaught WebPConvert

 *  Resolved [Leo Santis](https://wordpress.org/support/users/leosantis/)
 * (@leosantis)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/uncaught-webpconvert/)
 * I have two identical platforms, one is my production one and another I use as
   a test environment.
   Both on same server, same PHP configuration, modules, and
   so on.Difference between then is only production uses [https://domain.com](https://domain.com)
   and test uses [https://test.domain.com](https://test.domain.com)On production
   board everything runs ok but in test board I keep receiving fatal-error once 
   in a day like bellow.And as you can see on screen page, WP-Optimize recognize
   imagick and gd are both installed just like production board.
 * > [View post on imgur.com](https://imgur.com/a/f1U97yE)
 *     ```wp-block-code
       2026-04-29T00:00:09+00:00 Critical Uncaught WebPConvert\Exceptions\InvalidInput\InvalidImageTypeException: Unsupported mime type: image/webp in /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php:41 Additional context{ "error": { "type": 1, "file": "/home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php", "line": 41 }, "remote-logging": true, "backtrace": [ "", "#0 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php(48): WebPConvert\Helpers\InputValidator::checkMimeType('/home/user...')", "#1 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php(58): WebPConvert\Helpers\InputValidator::checkSource('/home/ user...')", "#2 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php(114): WebPConvert\Helpers\InputValidator::checkSourceAndDestination('/home/ user...', '/home/user...')", "#3 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php(210): WebPConvert\Convert\Converters\AbstractConverter->__construct('/home/ user ', '/home/user...', Array, NULL)", "#4 [internal function]: WebPConvert\Convert\Converters\AbstractConverter::createInstance('/home/ user...', '/home/user...', Array, NULL)", "#5 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/ConverterFactory.php(80): call_user_func(Array, '/home/user...', '/home/user...', Array, NULL)", "#6 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/ConverterFactory.php(110): WebPConvert\Convert\ConverterFactory::makeConverterFromClassname('WebPConvert\\Con...', '/home/user...', '/home/user...', Array, NULL)", "#7 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/webp/class-wpo-webp-utils.php(47): WebPConvert\Convert\ConverterFactory::makeConverter('imagick', '/home/user...', '/home/ user...')", "#8 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/webp/class-wpo-webp-convert.php(50): WPO_WebP_Utils::perform_webp_conversion('imagick', '/home/ user...', '/home/user...')", "#9 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/webp/class-wpo-webp-convert.php(25): WPO_WebP_Convert->check_converters_and_do_conversion('/home/user...', '/home/user...')", "#10 /home/ user/test.domain.com /wp-content/plugins/wp-optimize/webp/class-wpo-webp-utils.php(33): WPO_WebP_Convert->convert('/home/user...')", "#11 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/webp/class-wpo-webp-convert-image-task.php(33): WPO_WebP_Utils::do_webp_conversion('/home/user...')", "#12 /home/user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task.php(296): WPO_Webp_Convert_Image_Task->run()", "#13 /home/user/test.domain.com /wp-content/plugins/wp-optimize/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task-manager.php(53): Updraft_Task_1_2->attempt(0)", "#14 /home/ user/ test.domain.com /wp-content/plugins/wp-optimize/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task-manager.php(127): Updraft_Task_Manager_1_4->process_task(Object(WPO_Webp_Convert_Image_Task))", "#15 /home/ user/ test.domain.com /wp-content/plugins/wp-optimize/webp/class-wpo-webp-task-manager.php(64): Updraft_Task_Manager_1_4->process_queue('webp-convert-co...')", "#16 /home/ user/ test.domain.com /wp-includes/class-wp-hook.php(341): WPO_Webp_Task_Manager->webp_convert_compressed_images()", "#17 /home/ user/ test.domain.com /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array)", "#18 /home/ user/ test.domain.com /wp-includes/plugin.php(570): WP_Hook->do_action(Array)", "#19 /home/ user/ test.domain.com /wp-cron.php(191): do_action_ref_array('wpo_webp_conver...', Array)", "#20 {main}", "thrown" ] }
       ```
   

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

 *  Plugin Support [jbgupdraft](https://wordpress.org/support/users/jbgupdraft/)
 * (@jbgupdraft)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18894521)
 * Hi,
 * Thanks for contacting us and providing the error message! It looks like when 
   the scheduled task to automatically convert compressed images to WebP it’s trying
   to convert an image that is already in WebP format. I’ve tried to replicate this
   on my sites but haven’t been able to so I’ll reach out to development to see 
   if they have an explanation for why this is happening.
 * One quick test, if you upload a new image to the media library on your site and
   manually compress it and then manually convert to WebP does the WebP version 
   get created properly? I just want to make sure that the normal conversion is 
   still working despite that error.
 * Thanks!
 *  Thread Starter [Leo Santis](https://wordpress.org/support/users/leosantis/)
 * (@leosantis)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18894552)
 * Hi,
 * I’ve just manually uploaded new image that was not used before using Media Library
   and did as you suggested. Did the same process on both platforms, just to make
   sure both works same way.
 * It works fine on both and no errors in Woo log.
 * Thank you
 *  Plugin Support [jbgupdraft](https://wordpress.org/support/users/jbgupdraft/)
 * (@jbgupdraft)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18894562)
 * Hi,
 * Thanks so much for testing that out. I’m glad to see that WebP conversion is 
   still working! I’ll check the details of the error message you’re seeing with
   development and update you when I hear back from them.
 * Thanks!
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18900756)
 * It’s been a while since we heard from you so I am closing the thread.
 * Please feel free to reach out if you have any further concerns.
 *  Thread Starter [Leo Santis](https://wordpress.org/support/users/leosantis/)
 * (@leosantis)
 * [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18900779)
 * Dear [@vupdraft](https://wordpress.org/support/users/vupdraft/) As a matter of
   fact I was waiting for an update from [@jbgupdraft](https://wordpress.org/support/users/jbgupdraft/)
   as he said.
 * Issues remains that same as reported initially.
 *  Plugin Support [jbgupdraft](https://wordpress.org/support/users/jbgupdraft/)
 * (@jbgupdraft)
 * [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18900816)
 * Hi [@leosantis](https://wordpress.org/support/users/leosantis/),
 * I’ve been speaking with development and it looks like our next release will include
   some improvements to the scheduled task that runs to convert optimized images
   with some better image type checks. Hopefully this will clear up the error you’re
   running into but we’ll know for sure when the release comes out and it can be
   tested on your site.
 * Just to check, is the error still only happening on the staging site and not 
   the production one?
 * Thanks!
 *  Thread Starter [Leo Santis](https://wordpress.org/support/users/leosantis/)
 * (@leosantis)
 * [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18900818)
 * Hi [@jbgupdraft](https://wordpress.org/support/users/jbgupdraft/) thanks for 
   your update.
 * You’re correct, it only happens on staging site and not production. Production
   site runs at [https://domain.com](https://domain.com) and staging at [https://test.domain.com](https://test.domain.com).
   Same server, same PHP config, etc.
 *  Plugin Support [jbgupdraft](https://wordpress.org/support/users/jbgupdraft/)
 * (@jbgupdraft)
 * [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18901681)
 * Hi [@leosantis](https://wordpress.org/support/users/leosantis/),
 * Thanks for confirming that. I’m hopeful that the next release which includes 
   improvements to that scheduled task will get rid of this error that you’re getting
   on the staging site. Unfortunately I don’t have an ETA for when the release is
   coming but as soon as it’s available and you can update let me know if you’re
   still experiencing the error.
 * Thanks!
 *  Thread Starter [Leo Santis](https://wordpress.org/support/users/leosantis/)
 * (@leosantis)
 * [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18901731)
 * As this is happening only on staging site, there’s no rush.
 * As soon next release is available, I’ll test it and keep you informed.
 * All the best

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-webpconvert%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [Leo Santis](https://wordpress.org/support/users/leosantis/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/uncaught-webpconvert/#post-18901731)
 * Status: resolved