Title: WebP Express thumbnails error
Last modified: January 23, 2021

---

# WebP Express thumbnails error

 *  [vp229](https://wordpress.org/support/users/vp229/)
 * (@vp229)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/webp-express-thumbnails-error/)
 * Hi there,
 * It does not look like WebP express likes woocommerce much.
 * Its a brilliant software and im more than happy to buy a drink or two for the
   development team.
 * Once I run the application it does optimise all images for webp. However on woocommerce
   it doesnt seem to like product variations much. Prior to using the plugin images
   would change in the main product image box when selecting a different variation.
   After using WebP express when changing product variations the images no long 
   change in the image box, they only change in the thumbnail section, baring one
   exception.
 * If any one can advise a solution I would be so grateful.
 * I have seen a similar topic has been marked as resolved, but I cant see the actual
   solution to the bug:
    [https://wordpress.org/support/topic/webp-express-thumbnails-missing/](https://wordpress.org/support/topic/webp-express-thumbnails-missing/)
 * Thank you

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

 *  [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/webp-express-thumbnails-error/#post-14011646)
 * A quick’n’dirty fix I’m using is to comment those two lines:
    - [https://plugins.trac.wordpress.org/browser/webp-express/trunk/vendor/rosell-dk/dom-util-for-webp/src/PictureTags.php#L172](https://plugins.trac.wordpress.org/browser/webp-express/trunk/vendor/rosell-dk/dom-util-for-webp/src/PictureTags.php#L172)
    - [https://plugins.trac.wordpress.org/browser/webp-express/trunk/vendor/rosell-dk/dom-util-for-webp/src/PictureTags.php#L189](https://plugins.trac.wordpress.org/browser/webp-express/trunk/vendor/rosell-dk/dom-util-for-webp/src/PictureTags.php#L189)
 * Thanks to that, the source tag is not written and it doesn’t “cover” anymore 
   the underlying img tag that is shown beneath.
 * Because the problem is that the mechanism that replaces the product image and
   thumbnail according to the selected variation doesn’t kown/treat the source tag,
   just the img tag after it… So you still see the image in source (the featured
   image), even though you change of variation (what you can see as the thumbnail
   is changed).
 * The problem (that it can be for you) is that you impact all your images as source
   is missing from all picture tag… So you just point to jpg or png pictures, loosing
   time not refering the original webp, but still, webp is served finally, through
   htaccess redirections.
 * Hope it helps.
 * _If I have time, I’ll hunt the “changing img” mechanism and will modify it to
   also take into account the source tag. If I have time…_
 *  [Phil](https://wordpress.org/support/users/magicfilou/)
 * (@magicfilou)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/webp-express-thumbnails-error/#post-14087867)
 * [@madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * Thank you I will try this plugin tomorrow … but your fix work on nGinx ?
 * Tks

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

The topic ‘WebP Express thumbnails error’ is closed to new replies.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

## Tags

 * [webp](https://wordpress.org/support/topic-tag/webp/)

 * 2 replies
 * 3 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/magicfilou/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/webp-express-thumbnails-error/#post-14087867)
 * Status: not resolved