rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
221 stars 63 forks source link

Bulk and Upload conversion not working / document root problem #584

Open monoflopp opened 1 year ago

monoflopp commented 1 year ago

Hi, Bulk and Upload conversion are not working at my Wordpress installation. Error is "Path is outside resolved document root (/var/www/virtual/name/html" and I was wondering if there is a way to set the path manually instead of using $_SERVER['DOCUMENT_ROOT']?

At my server $_SERVER['DOCUMENT_ROOT'] leads to /var/www/virtual/name/html and I can't change or influence the document root. But my actual Wordpress installation is at "/var/www/virtual/name/domain.tld" I hope someone can help or has a solution for me. Thanks

Laygendev commented 1 year ago

Hello, thanks for this plugin.

I got the same problem here.

My $_SERVER['DOCUMENT_ROOT'] leads to /Volumes/workspace/project/_source/web/wp and $input var is equal to Volumes/workspace/project/_source/web/app/uploads/./sites/7/2023/04/logo-96x80.jpg.

For information, it's a bedrock install.

So i get the same error "Path is outside resolved document root (...)"

Thanks again @rosell-dk.