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
220 stars 63 forks source link

xampp @ windows support #156

Open dev-101 opened 5 years ago

dev-101 commented 5 years ago

Hi, thanks for the plugin! I am still unable to make it work, though.

I use XAMPP on Windows (Apache 2.4.x server, D: partition, not system) and first thing I've noticed is that path for test image is wrong. So far I have figured this part:

webp-on-demand.php

$destination = $imageRoot . '/abs' . $source . '.webp';

replace with:

$destination = $source . '.webp';

and test image with debug worked!

.htaccess is created in wp-content, but the error message "WebP Express cannot save a test conversion, because it does not have write access to your upload folder, nor your wp-content folder. Please provide!" just won't go away. I am pretty sure write permissions are not the real issue here, because WP itself can write, update etc. without problems. It is probably something 'stupid' like path or possibly something apache related (nothing in the apache logs that I could connect with the plugin, also php debug log is empty).

2019 theme (default).

You can try portable XAMPP if you have Windows machine to test it.

Thanks!

lwxbr commented 5 years ago

213