‘Failed to update settings’
-
Hello, I am looking for some help to fix my issues with WooCommerce not saving Payment changes as this is effecting a live site. When trying to disable or make changes to payment options and ‘Save chages’ I receive the following popup message ‘Failed to update settings’.
I’m working on two payment options to disable them, Cash on delivery and Direct bank transfer.
Woocommerce version: 10.0.2
WordPress version: 6.8.2
Divi Theme: 4.27.4
PHP to 8.2.28I have done the following:
Cleared the cache (several times)
Repaired the database
Deactivated all plugins (except WP)
Changed theme to WO Twenty Twenty-Five
Deactivated and reactivated WCLink to status report: https://pastebin.com/53WbCfFR
The page I need help with: [log in to see the link]
-
Hi @cptrandall,
Thanks for the detailed info!
Since you’re seeing a “Failed to update settings” message when saving payment changes, here are a few things that will help us dig deeper:
- Can you check for any related fatal error logs under WooCommerce → Status → Logs (select the latest fatal-errors log from the dropdown)? If possible, please upload the contents to Pastebin or Gist and share the link here.
- Also, when you try to save and get the error message, do you see any errors in your browser’s developer console (right-click > Inspect > Console tab)? If so, please take a screenshot and share it.
Thank you.
Thank You Mahfuzur Rahman ! 🙂
I do NOT see any errors at all in the logs.
However in the Chrome Console I see :
Unchecked runtime.lastError: The message port closed before a response was received. Content unavailable. Resource was not cached
Thank you again!Hi @cptrandall,
Thanks for checking both the logs and the browser console — that’s really helpful. Since no fatal errors are showing in your WooCommerce logs and the console message isn’t directly related to WooCommerce, the issue may be caused by a blocked AJAX request or a misconfiguration on the server or site level.
A few more things you can try:
1. Check Site Health and Permalinks
Head over to Tools → Site Health and check if there are any critical issues flagged.
Then go to Settings → Permalinks, and simply click “Save Changes” to refresh permalink settings.
2. Review Security or Optimization Plugins
Even though you mentioned disabling all plugins before, please make sure there are no caching rules, firewalls (like Cloudflare), or security tools blocking requests to wp-json/wc-admin.
3. Enable WP_DEBUG_LOG
In your wp-config.php, add this to capture hidden errors:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );Then try saving the payment settings again and check if anything is logged in /wp-content/debug.log.
If the issue persists after all of this, let us know — we can explore further steps like checking REST API responses or raising this with the development team.
Let’s see how it goes!
Hi, I did what you suggested. HEre is the error log file: https://pastebin.com/WvnK8gLb
I am still getting the errors. Is there any chance that DNS entries could effect this? Last week we changed the domain email to office 365, and had to make some changes with GoDaddy / DNS to get the emails working from the website.
Thank you for helping 🙂Hi @cptrandall,
Thanks for the update—and happy to help!
Changing DNS settings for email (like switching to Office 365) shouldn’t affect your payment settings or WooCommerce functionality.
To help us understand what’s going on, could you please record a short video of you trying to save the payment settings? While doing that, keep your browser’s console tab open so we can see if any errors show up there. You can upload the video to a service like Loom, Dropbox, or Google Drive and share the link here.
Thank you.
Thank you. I recorded a video on woocommerce and the error log:
https://drive.google.com/drive/folders/1iCWNKsicFdbYAsj_OB9JC_ghwo8wDbgi?usp=sharing
Thanks, RandyI forgot to enable the Console tab! Yes there is an error:
Video: https://drive.google.com/file/d/1e6i8ehBgowRjXAydYPBxsQ1ucYaCI7Ls/view?usp=drive_link
Error: https://mybetterlife.us/wp-json/wc/v3/payment_gateways/cod?_locale=user 403 (Forbidden)
-
This reply was modified 4 months, 3 weeks ago by
cpt.randall.
Hey there,
I can see that the issue you’re experiencing is related to REST API permissions. The error you’re seeing (403 Forbidden and 401 Unauthorized) indicates that the current user doesn’t have the proper permissions to access the payment gateway settings via the REST API.
Can you please verify that:
- WooCommerce REST API is enabled
- No security plugins are blocking the request
?
About this link: https://mybetterlife.us/wp-json/wc/v3/payment_gateways/cod?_locale=user, can you please send me a screenshot of what you see there?
There are no security plugins installed.
What is the proper way to make sure that Woocommerce REST API is enabled?
also, when I run a WooCommerce Status Report is shows: “The Legacy REST API plugin is not installed on this site.”
screenshot of report: https://mybetterlife.us/wp-content/uploads/restipa-report-screenshot.jpgScreen shot of URL for previous request:
https://mybetterlife.us/wp-content/uploads/restipa-screenshot.jpgHi @cptrandall,
Thanks for the update!
The 403 (Forbidden) error you’re seeing typically means something on the server—like a security setting, firewall, or permission rule—is blocking the request when WooCommerce tries to save the payment settings.
Here’s what I recommend:
- Check with your hosting provider to see if any security tools (like ModSecurity) are blocking WooCommerce’s REST API requests.
- Temporarily disable any security/firewall plugins you might be using, such as Wordfence or iThemes Security, and try saving again.
- Make sure you’re logged in as an admin user with the correct permissions.
Let us know what you find!
I spoke with the hosting company (GoDaddy), and the customer had purchased a firewall add on to their hosting package. I created a ticket, and explained what is happening. I am sorry I took up so much of your time. I did not know about the firewall, and GoDaddy just seems to make everything complicated 🙁
I’ll let you know what happens, but I want to thank you again Mahfuzur.Randy
Hi @cptrandall,
You’re very welcome, and no worries at all! I’m glad you were able to uncover the firewall thing.
Thanks again for keeping us posted. If you feel like sharing a quick review of your support experience, it would mean a lot: https://wordpress.org/support/plugin/woocommerce/reviews/#new-post
Thank you.
@mahfuzurwp – Hi! I am having the same problem and my site is hosted on GoDaddy. I have a security plan but this is not new. Were you able to resolve this problem? What were the steps?
Thank you!
Sheila
Sheila, yes my customer had purchased a firewall from godaddy. What I did was call, and complain to godaddy support that their firewall settings are to tight. Try that. Then if it doesn’t work, get off godaddy. Randy
Hi @cptrandall,
Thanks so much for sharing how you uncovered and resolved the issue — it’s really helpful to know that the GoDaddy firewall settings were the culprit. I’m glad you were able to get it sorted out, and I appreciate you following up here to help others who might run into the same problem.
Hi @fairmountweb, I see that Randy kindly replied and confirmed that the issue was related to a firewall add-on from GoDaddy. If you’re still facing similar trouble after speaking with GoDaddy support, we’d be happy to look into it further for you.
Please feel free to open a new forum topic describing your setup, and include a link to this thread for reference: https://wordpress.org/support/topic/failed-to-update-settings/
We’ll take it from there and do our best to assist you!
You must be logged in to reply to this topic.