• Resolved mrtechnique

    (@mrtechnique)


    Several of the images on my website weren’t showing up as of recently, so I checked the direct urls of the images, and I was getting forbidden error pages. I had my hosting support team look into it, and they found this error in the log:

    https://www.site.com [Tue Nov 16 17:21:36 2021] [error] [pid 60218] mod_access_compat.c(353): [client 88.203.192.35:0] AH01797: client denied by server configuration: /home/site/www/www/wp-content/plugins/webp-express/wod2/webp-on-demand.php

    I deactivate your plugin, and all of my site’s images were showing again. I reactivated your plugin, and the images seem to be fine. Can you tell me what was the issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rosell.dk

    (@roselldk)

    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

    Plugin Author rosell.dk

    (@roselldk)

    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)

    Thread Starter mrtechnique

    (@mrtechnique)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Forbidden Error’ is closed to new replies.