• Resolved Vegsur

    (@miimie)


    Hello, im getting error from pagespeed that says “Serve images in next-gen formats”. Weird thing is that i have optimized all images on my site. On Media Library it says all my images have Webp. version and they are on. I have enabled webc replacement and all that on Litespeed settings, still blog post entries have png, jpg images.

    How can i fix this or where i can start investigating this issue?
    https://gyazo.com/4a0135a595670f77114cd66f86e007a5

Viewing 15 replies - 1 through 15 (of 28 total)
  • Thread Starter Vegsur

    (@miimie)

    Hello. Yes All other images are server with webp, but not the “blog entries” on my homepage. In Media library it says those images have webp versions too but cant see them served on the site.

    I had the similar problem and when I turned on debugger on LSCP, cleared cache as mentioned in link above – the issue was gone 🙂
    Maybe also try to turn-off and then turn-on WebP in plugin settings

    Thread Starter Vegsur

    (@miimie)

    One example is this image which google shows it should be server with webp. https://gyazo.com/a4a0392166f58bb0212f39afa9581d6a in media library it says its optimized. So i have some images webp but not blog entry images. Tried all those steps on the page you linked

    You need to see debugger log (advanced) – find the request to this post with this image and see is there an error.
    Logs are very clear:

    09/13/21 13:33:20.936 [XX.XX.139.226:54562 1 piJ] [Media] webp replacing: https://XX.com/wp-content/uploads/brizy/308/assets/images/iW=131&iH=131&oX=0&oY=0&cW=131&cH=131/optimized/Image2.png
    09/13/21 13:33:20.936 [XX.XX.139.226:54562 1 piJ] [Util] file not exist: /home/XX/webapps/wp-test-01/wp-content/uploads/brizy/308/assets/images/iW=131&
    09/13/21 13:33:20.936 [XX.XX.139.226:54562 1 piJ] [Media] -no file, bypassed
    Thread Starter Vegsur

    (@miimie)

    Turned debugger on with advanced settings, cleared cache, load the page and still nothing. Also turned off and on webp settings

    What is in the debugger log (wp-content/debug.log)?

    Thread Starter Vegsur

    (@miimie)

    It says 09/13/21 20:39:38.960 [************* 1 2zc] [Media] -no WebP file, bypassed on that specific post

    • This reply was modified 3 years, 4 months ago by Vegsur.
    Thread Starter Vegsur

    (@miimie)

    All the blog entry images are there with that text 09/13/21 20:39:38.960 [*********** 1 2zc] [Media] -no WebP file, bypassed

    • This reply was modified 3 years, 4 months ago by Vegsur.

    Can you provide at list 3 lines for this image as I show above (change IP and other sensitive info) to see the full trace of what plugin is looking for and doing after?
    Did you add .webp extension for this image in separate browser tab to see that it is really exist?

    Thread Starter Vegsur

    (@miimie)

    Yeah i added .webp to the url and it found the image.

    09/13/21 20:39:38.960 [xx.xxx.200.67:60311 1 2zc] [Media] -no WebP file, bypassed
    09/13/21 20:39:38.960 [xx.xxx.200.67:60311 1 2zc] [Media] webp replacing: https://XX.fi/wp-content/uploads/2021/09/sahkopotkulaudan-viritys-250×200.jpg
    09/13/21 20:39:38.960 [xx.xxx.200.67:60311 1 2zc] [Util] file not exist: /home2/xxxxxx/public_html/wp-content/uploads/2021/09/sahkopotkulaudan-viritys-250×200.jpg.webp

    Well, as you can see – the log is clear: no file exists – /home2/xxxxxx/public_html/wp-content/uploads/2021/09/sahkopotkulaudan-viritys-250×200.jpg.webp – can you manually check it with file manager or ftp?

    • This reply was modified 3 years, 4 months ago by pomkanik.

    If I have found your site right – I see that you are using nginx server but for correct WebP replacement Apache or OpenLiteSpeed/LiteSpeed Enterprise Server required (changes in .htaccess)
    See https://wordpress.org/support/topic/webp-not-delivered/

    • This reply was modified 3 years, 4 months ago by pomkanik. Reason: typos
    Thread Starter Vegsur

    (@miimie)

    For some reason i can find like million copies of png versions but not jpg https://gyazo.com/31f4001af3f1bf2c6be7ad3af970a432 Not sure what i have messed up

    Thread Starter Vegsur

    (@miimie)

    And why all the other images are server with webp but not the blog entries

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Webp images not working’ is closed to new replies.