The error message tells us that the request was denied due to access restrictions.
Your host probably have set up WordPress in a way that restricts PHP files to be run directly inside your WordPress. Or perhaps you have a firewall plugin. As a workaround, a .htaccess file could be placed inside the folder, which overrides access rules. However, while this works on some setups, it doesn’t work on other setups. So WebP Express actually have two folders “wod” and “wod2”. When you save the .htaccess rules, it tests which of the folders that works so the images are redirected to the one that works. WebP Express does not however not monitor the server configuration and does not notice if a reconfiguration resulted in “wod” or “wod2” not working. Re-saving the .htaccess rules however fixes it.
On the settings page, there is a “System info” button (in the right side). If you click it, there are some lines that on my machine reads this:
- Can run php test file in plugins/webp-express/wod/ ?: yes
- Can run php test file in plugins/webp-express/wod2/ ?: yes
- Directives for granting access like its done in wod/.htaccess allowed?: yes
I’m guessing that if you click it on your setup, the second line will say “no”. Am I right?
I have put an issue in the queue to make a scheduled health check with automatically fix – here
This issue is btw linked to the “Redirect to converter” functionality. That feature is in that way a bit fragile. To play it safe, you can disable the feature and just have it redirect to existing webp images (and run a bulk convert regulary)
Both of the answers to these questions are no:
- Can run php test file in plugins/webp-express/wod/ ?:
- Can run php test file in plugins/webp-express/wod2/ ?:
I unchecked the “Redirect to converter” option, and I’m running a bulk converter now. It’s taking quite a while to finish though. It’s been over 10 minutes. I’m going to walk away and check later.
The images seem to be showing up though.
-
This reply was modified 4 years, 2 months ago by
mrtechnique.