wc ajax requests return 403
-
Dear All,
Suddenly, my WooCommerce website not working properly. In console I can see 403 for wc-ajax request.
wc-ajax=get_refreshed_fragments 403 (Forbidden)
wc-ajax=update_order_review 403 (Forbidden)Tried to fix it. But cannot solve it. Please let me know your thoughts
-
Settings > Permalinks > Save. See if it clears it up.
If not, do a test with other extensions off, resave permalinks.
Failing that, post status report so we can see what else is running.
I have the same issue. I tried you solution and when I hit save on the admin page it redirects me to https://gsb.bga-estore.com/wp-admin/options-permalink.php. But the page that displays is Error 404 – Page not found! and not in the admin but on the store site -even though it reads /wp-admin.
I meant that the redirect goes to the Storefront even though the url has the /wp-admin/ in it.
Thank you for your quick response. I have done these steps. But nothing happened. Recently I didn’t do any updates or upgrades on my website. Here is the WooCommerce System Status.
### WordPress Environment ###
Home URL: https://www.mysite.com
Site URL: https://www.mysite.com
WC Version: 2.4.12
Log Directory Writable: ? /home/mysite/public_html/wp-content/uploads/wc-logs/
WP Version: 4.4.5
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
Language: en_US### Server Environment ###
Server Info: Apache
PHP Version: 5.5.38
PHP Post Max Size: 8 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
SUHOSIN Installed: –
MySQL Version: 5.6.35
Max Upload Size: 2 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 2.4.12
:
woocommerce_api_keys: ?
woocommerce_attribute_taxonomies: ?
woocommerce_termmeta: ?
woocommerce_downloadable_product_permissions: ?
woocommerce_order_items: ?
woocommerce_order_itemmeta: ?
woocommerce_tax_rates: ?
woocommerce_tax_rate_locations: ?### Active Plugins (12) ###
MIGS Payment Gateway WooCommerce: by OsPayment – 2.0
Disable Comments: by Samir Shah – 1.3.2
Disable All WordPress Updates: by Oliver Schl?be – 1.4.7
Featured Page Widget: by grandslambert – 2.2
MailChimp for WordPress: by ibericode – 3.0.4
Photo Gallery: by WebDorado – 1.2.81
Product CSV Import Export (BASIC): by HikeForce – 1.2.3
Orders Report: by [email protected] – 1.0
Schedule: by Karthick – 1.0
Shipping-Charges: by itsthe1 – 1.0
WooCommerce: by WooThemes – 2.4.12
WP Migrate DB: by Delicious Brains – 0.7.2### Settings ###
Force SSL: –
Currency: USD (USD )
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2### API ###
API Enabled: ?
API Version: 3.0.0### WC Pages ###
Shop Base: #3 – /?page_id=3
Cart: #5 – /?page_id=5
Checkout: #8 – /?page_id=8
My Account: #4 – /?page_id=4### Taxonomies ###
Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)### Theme ###
Name: Maya Shop
Version: 1.0
Author URL: https://www.yourinspirationweb.com/en/
Child Theme: ? – If you’re modifying WooCommerce or a parent theme you didn’t build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ?### Templates ###
Overrides: maya/woocommerce/archive-product.php
maya/woocommerce/cart/cart-empty.php
maya/woocommerce/cart/cart-shipping.php
maya/woocommerce/cart/cart.php version 2.3.0 is out of date. The core version is 2.3.8
maya/woocommerce/content-product.php version 1.6.4 is out of date. The core version is 2.4.0
maya/woocommerce/content-product_cat.php version 1.6.4 is out of date. The core version is 2.4.0
maya/woocommerce/content-single-product.php
maya/woocommerce/global/breadcrumb.php
maya/woocommerce/global/form-login.php
maya/woocommerce/global/quantity-input.php
maya/woocommerce/global/sidebar.php
maya/woocommerce/global/wrapper-end.php
maya/woocommerce/global/wrapper-start.php
maya/woocommerce/loop/add-to-cart.php
maya/woocommerce/loop/loop-start.php
maya/woocommerce/loop/pagination.php
maya/woocommerce/loop/price.php
maya/woocommerce/loop/sale-flash.php
maya/woocommerce/myaccount/form-login.php
maya/woocommerce/myaccount/my-orders.php version 2.2.0 is out of date. The core version is 2.3.10
maya/woocommerce/order/order-details.php version 2.3.0 is out of date. The core version is 2.4.0
maya/woocommerce/single-product/add-to-cart/external.php
maya/woocommerce/single-product/add-to-cart/grouped.php
maya/woocommerce/single-product/add-to-cart/simple.php
maya/woocommerce/single-product/meta.php
maya/woocommerce/single-product/price.php version 1.6.4 is out of date. The core version is 2.4.9
maya/woocommerce/single-product/product-image.php
maya/woocommerce/single-product/product-thumbnails.php
maya/woocommerce/single-product/related.php
maya/woocommerce/single-product/review.php
maya/woocommerce/single-product/sale-flash.php
maya/woocommerce/single-product/share.php
maya/woocommerce/single-product/short-description.php
maya/woocommerce/single-product/tabs/description.php
maya/woocommerce/single-product/tabs/tabs.php version 2.0.0 is out of date. The core version is 2.4.0
maya/woocommerce/single-product/up-sells.php
maya/woocommerce/single-product-reviews.php
maya/woocommerce/single-product.php
maya/woocommerce/taxonomy-product_cat.php
maya/woocommerce/taxonomy-product_tag.php: Learn how to update outdated templates
Have you always used default permalinks, or did you swap to that? Have you tried other settings there?
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-403-forbidden-error-in-wordpress/
Checked htaccess?
Asked hosting for advice?
Yes, I have default permalinks and default htaccess file. I tried the same article.
*Updated*
I tried to change permalinks to post-name. I’m getting 403 permission denied. Checked folder permission in CPANEL. 755 for directories and 644 for files.What could be the issue?
-
This reply was modified 7 years, 11 months ago by
Yeshan Perera. Reason: Re-Check
I’m having the same issue!
Got a reply from server.
It looks like the recently updated Comodo WAF rules blocks certain pattern in incoming HTTP request which caused the problem.
Please check with your hosting service.
Thank you all
-
This reply was modified 7 years, 11 months ago by
Yeshan Perera. Reason: Thanking ;)
Thank you for posting that it was possibly a server-side issue! I contacted my host and they confirmed they recently made some ModSecurity rule changes. They whitelisted the rule change for me and all is fixed now.
I was going crazy thinking it was a plugin/wordpress issue!
Issue seems to have resolved itself over the weekend. Seems likely it was on the hosting side.
-
This reply was modified 7 years, 11 months ago by
- The topic ‘wc ajax requests return 403’ is closed to new replies.