Title: Rest Error When Saving
Last modified: January 5, 2024

---

# Rest Error When Saving

 *  Resolved [twisted89](https://wordpress.org/support/users/twisted89/)
 * (@twisted89)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/rest-error-when-saving/)
 * When adding new fields and clicking save it displays the error “Failed to connect
   to WordPress REST API.” but upon refreshing the page the changes have been saved
   successfully.
 * I’ve double checked and there is nothing wrong with the rest api. Also, changing
   any settings and clicking save seems to work fine.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/rest-error-when-saving/#post-17325342)
 * Hi twisted89
 * Many thanks for contacting us. I suspect that problem may have a source in the
   server settings.
 * Could you check the server parameters? Parameters that are too low are likely
   the cause of the problem you are reporting. Check the following parameters in
   particular, WordPress memory limit. Ideally, it should be set to 2GB.
 * Could you also check the PHP max input vars? Ideally, it should be set to 50000.
 * I would appreciate it if you could provide the current settings for the two parameters
   mentioned.
 * 
   If the problem persists, could you describe in more detail the environment in
   which it occurs? I.e. how many new fields have you added? Are additional options
   set in the fields, if so how many? Similarly, if you have set up conditional 
   logic, it would also be great if you could send screenshots of mentioned settings.
 * I would be grateful for feedback.
 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/rest-error-when-saving/#post-17344602)
 * Hi [twisted89](https://wordpress.org/support/users/twisted89/)
 * As we haven’t got any replies, I’m marking this topic as resolved for now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rest Error When Saving’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/rest-error-when-saving/#post-17344602)
 * Status: resolved