• Resolved saganaki

    (@saganaki)


    Hi there

    Report number: IHDBNDNS
    Report date: 03/12/2021 14:13:44

    Great plugin, but having issue where LiteSpeed is not serving WebP images currently.

    I’ve taken the following steps to set-up image optimisation:
    – Settings set to Create WebP, Image WebP Replace, also WebP For Extra srcset
    – All images confirmed as optimised by LS, also confirmed in Media Library (optimised and WebP optimised versions both present)
    – htaaccess settings confirmed as present

    The following tests show images aren’t being served
    – Pagespeed
    – Chrome developer tools network test

    Appreciate any thoughts, Cheers/S

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please follow this guide to get debug log

    you can post it somewhere like https://pastebin.ubuntu.com/ , then share the link here

    Best regards,

    Thread Starter saganaki

    (@saganaki)

    Hi qtwrk

    Thanks for responding, here’s a log:

    https://pastebin.ubuntu.com/p/fjmy2sXrMq/

    Plugin Support qtwrk

    (@qtwrk)

    03/16/21 09:18:04.290 [84.69.252.68:62277 1 wSQ] [Media] webp replacing: https://www.learningtoflourish.co.uk/wp-content/uploads/2020/09/NHsLothian.jpg => LiteSpeed\Media->replace_webp(https://www.learningtoflourish.co.uk/wp-content/uploads/2020/09/NHsLothian.jpg)@851 => LiteSpeed\Media->_replace_buffer_img_webp()@740 => LiteSpeed\Media->_finalize()@465 => LiteSpeed\Media::finalize(<!doctype html>
    <html lang=”en-GB” itemscope itemtype=”https://schema.org/WebPage”&gt;
    <head>
    <meta char)@449
    03/16/21 09:18:04.290 [84.69.252.68:62277 1 wSQ] [Util] file not exist: /home/learnin3/public_html/wp-content/uploads/2020/09/NHsLothian.jpg

    are these correct path in your system ?

    /home/learnin3/public_html/wp-content/uploads/2020/09/NHsLothian.jpg

    and

    /home/learnin3/public_html/wp-content/uploads/2020/09/NHsLothian.jpg.webp

    does 2nd image exist ?

    Thread Starter saganaki

    (@saganaki)

    Thanks!, you’ve spotted it, those are the wrong file paths. Is there a configuration file I need to correct somewhere?

    The path is missing one intermediate folder:

    Correct:
    /home/learnin3/public_html/learningtoflourish/wp-content/uploads/2020/09/NHsLothian.jpg

    Litespeed has saved the files in the correct location –
    /home/learnin3/public_html/learningtoflourish/wp-content/uploads/2020/09/ NHsLothian.jpg.webp exists, only the load file path it is re-writing is wrong.`

    (Diagnosis: Two years ago the install was located in /public_html but was shifted to /learningtoflourish because Wordfence was interfering with other subdomains hosted in /public_html)

    • This reply was modified 3 years, 8 months ago by saganaki.
    • This reply was modified 3 years, 8 months ago by saganaki.
    • This reply was modified 3 years, 8 months ago by saganaki.
    • This reply was modified 3 years, 8 months ago by saganaki.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try add

    define( 'LITESPEED_WP_REALPATH', '/learningtoflourish' );

    to your wp-config.php

    purge all , and see how it goes

    if still not working , please get the debug log again

    Best regards,

    Thread Starter saganaki

    (@saganaki)

    Fixed, thanks very much, really appreciate the help!

    Suggest adding this to the documentation and/or a feature that checks whether the rewrite path to the image and the caching path is the same.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘LiteSpeed not serving WebP images’ is closed to new replies.