Same problem here.
Suddenly today, without explanation, many WooCommerce stores that we have worked on over the years stopped working correctly. We have WooCommerce stores in different locations in different data centers and they belong to different servers / clients, etc.
Today the ability to create or delete WooCommerce products stopped working. Sometimes it gives a 404 error and other times a 403 error depending on the project.
We have found a single pattern and is that WooCommerce installations that are causing problems have mysql version 5.7.
How do we solve this disaster? If it was something related to the mysql version, as we suspect, it would make no sense for something to stop working without prior notice.
I hope someone can find an urgent solution. Thanks.
Edit: I found one woocommerce installation running with mysql 8.0 and same problem: 404 after create or delete a new product
Edit2: I fixed the problem. In my case was a mod_security false positive.
I checked apache error_log and found this:
[Thu May 16 21:05:43.104206 2024] [security2:error] [pid 19101:tid 47550931134208] [remote x.x.x.x:65418] [client x.x.x.x] ModSecurity: Access denied with code 403 (phase 2). Match of “rx ^$” against “ARGS:product_shipping_class” required. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/006_i360_custom.conf”] [line “639”] [id “77350026”] [msg “IM360 WAF: Track suspiciious Spring Framework requests||T:APACHE||MVN:ARGS:product_shipping_class||MV:-1||”] [severity “CRITICAL”] [tag “service_im360”] [hostname “domain.com”] [uri “domain.com/wp-admin/post.php”] [unique_id “ZkZZBqvk961AERPW7wGwLAAAFwY”], referer: https://domain.com/wp-admin/post.php?post=15623&action=edit
I simply deactivated mod_sec ruleset involved in false positive and it worked.
I will test in my other sites.
-
This reply was modified 9 months, 2 weeks ago by
capsulacorp.
-
This reply was modified 9 months, 2 weeks ago by
capsulacorp.