Doesn’t seem to work on Multisites
-
Hello,
At first thanks for the great plugin!
We’re trying to use it on a multisite installation but have problems with the option “Automatically convert new images when uploading to Media Library”.On the root page it works but on other blogs it doesn’t.
After looking through the code the culprit seems to be the path generation of the output file located in “src/Conversion/OutputPath.php:get_directory_path()”
There an invalid path is composed which leads to the resulting optimized images stored in paths like “wp-content/uploads/wp-content/uploads-webpc/srv/www/my-website.com/htdocs/public/wp-content/uploads/sites/8/2023/01/image.jpg.webp”
However using the batch conversion functionality works.
Is this a bug or are we missing something?
Best
- The topic ‘Doesn’t seem to work on Multisites’ is closed to new replies.