Hi All,
Can anyone please guide on this? It seems to be a recurring problem with EVERY upgrade!
Hi @koolpal!
The folder is blocked per the .htaccess rule, which should block access to all folders and files in /woocommerce_uploads/
. The logs show that requests to the uploads folder were blocked as expected.
The AH01797 error: client denied by server configuration
in the log you shared suggest a hosting issue. I suggest contacting your web host to confirm that, as this appears to be a server configuration or permissions issue.
@wpniall Thank you for replying.
1. Why is this folder being accessed during an update to Woocommerce plugin? As I see this error ONLY when I update Woocommerce plugin (as and when updates are released)
2.
The logs show that requests to the uploads folder were blocked as expected.
Since you mention that requests were blocked as expected then I do not understand the need to contact my hosting provider.
Please let me know if there is any understanding issue from my end. If not, please help me with answers to the above questions.
Thanks
You’re welcome @koolpal
I think you understood everything correctly. I’m happy to answer your questions to provide further clarification:
1. Why is this folder being accessed during an update to Woocommerce plugin? As I see this error ONLY when I update Woocommerce plugin (as and when updates are released)
The folder gets accessed during updates to verify and update the .htaccess
file if needed. That’s why the error only appears when you update WooCommerce.
Since you mention that requests were blocked as expected then I do not understand the need to contact my hosting provider.
Yes, you’re correct here. If your site works correctly and you don’t have any issues with [Downloadable Products](https://docs.woocommerce.com/document/digital-downloadable-product-handling/), then there’s no need to contact your web host for further clarification. For instance, if you only see the error when updating WooCommerce and your site and downloads work correctly, then I’d ignore the error.
If you do face any issues, then I’d recommend contacting your host’s support team. They should be able to help you fix the permissions issue so that there are no errors when updating WooCommerce.
Please let me know if you need further clarification.
@wpniall
Thanks again for replying but I am not getting any conclusive answer as yet.
The folder gets accessed during updates to verify and update the .htaccess file if needed. That’s why the error only appears when you update WooCommerce.
What should be the correct code in .htaccess file to AVOID seeing this error?
Else are you saying that everyone SHOULD BE seeing this [access_compat:error] whenever they update Woocommerce?
Thanks
Hi @koolpal. This issue is not likely to be related to your .htaccess file.
My first recommendation is to do some conflict testing on your site to see if you can figure out what is causing the problem. We have a guide to help with that here – https://docs.woocommerce.com/document/how-to-test-for-conflicts/.
If that doesn’t help, please ask your hosting company if there are errors logged related to MySQL running out of resources. Hopefully that provides some information to come up with a solution.
@drwpcom Thank you for your reply.
While waiting for some actionable answers here, I created some test sites on my local machine with just WordPress + Storefront Theme + Woocommerce without any other plugins.
I installed an older version of Woocommerce and then ran an update and encountered the SAME message as reported by me.
I think we can rule out conflicts safely.
What else do you suggest now?