• Resolved mathieu

    (@mathieu)


    It is a bug that has been going on for a while… It looks for the compressed image at :

    /home/xxx/public_html/wp-content/blogs.dir/123456/files/files/2020/11/capturechandail.webp

    This should be

    /home/xxx/public_html/wp-content/blogs.dir/123456/files/2020/11/capturechandail.webp

    I used to correct it with that code :

    add_filter('shortpixel_webp_image_base', 'correctBaseShortPixelWebP', 1, 1); 
    
    function correctBaseShortPixelWebP($base) { 
    
    return str_replace("/files/files/", "/files/", $base); 
    
    }

    But the filter is not active anymore and I don’t know how to fix this.

    Any clue?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter mathieu

    (@mathieu)

    Yes, you nailed it ! So glad, that I can finally remove the hack from my codebase.

    Thanks a lot Pedro

    Plugin Author Pedro

    (@petredobrescu)

    Wow, this is great news, thanks for the confirmation, Mathieu!

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Avif & Webp not loading on multisite…’ is closed to new replies.