• Resolved davidwebca

    (@davidwebca)


    Hi,

    I enabled quic.cloud image optimizations which ran great, but webp replacements are enabled, the files are created and I see them on the host, but won’t activate. When I looked up in the logs, I noticed it doesn’t check in the right folder for the webp image.

    10/25/22 14:53:05.014 [165.227.116.222:18222 1 DFi] [Media] webp replacing: https://behome-interiors.com/app/uploads/2022/06/Format_Image_Header_Projet_Pierre-2-1670x602.jpg
    10/25/22 14:53:05.015 [165.227.116.222:18222 1 DFi] [Util] file not exist: /home/behomet/www/app/uploads/2022/06/Format_Image_Header_Projet_Pierre-2-1670x602.jpg

    The path should be /home/behomet/www/web/app/uploads/2022/06/Format_Image_Header_Projet_Pierre-2-1670×602.jpg

    This is a bedrock install so the WP_CONTENT_DIR is setup properly, but it seems that it is bypassed in the plugin.

    Thanks.

    • This topic was modified 3 years, 1 month ago by davidwebca.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter davidwebca

    (@davidwebca)

    I dug into the code and found this constant documented

    /**
     * Trying to fix pure /.htaccess rewrite to /wordpress case
     *
     * Add <code>define( 'LITESPEED_WP_REALPATH', '/wordpress' );</code> in wp-config.php in this case
     *
     * @internal #611001 - Combine & Minify not working?
     * @since  1.6.3
     */

    So in my config/application.php file, I added

    
    Config::define( 'LITESPEED_WP_REALPATH', '/web' );
    

    and it seemed to resolve this issue. I’m marking this as resolved and leaving it here in case someone else stumbles onto this issue, but I’d still like an official opinion from Litespeed’s people to make sure I didn’t break anything else by doing that.

    Thank you for posting your solution.

    I’ve been digging and found that the replace_webp() keeps complaining the original image path does not exist.

    Really hope there will be an official solution for this to work with Bedrock folder structure.

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

The topic ‘Wrong webp path lookup with Bedrock’ is closed to new replies.