Title: Uncaught Error Breaks REST API
Last modified: November 19, 2020

---

# Uncaught Error Breaks REST API

 *  Resolved [westhillsweb](https://wordpress.org/support/users/westhillsweb/)
 * (@westhillsweb)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-breaks-rest-api/)
 * We host at SiteGround.
 * I was having trouble with SGoptimizer saving its settings.
    The error message
   was “Could not connect to WordPress REST API” Screenshot: [https://prnt.sc/vlx3z2](https://prnt.sc/vlx3z2)
 * I could not figure out the problem. I thought it was with PHP 7.4, or Wordfence,
   but it was not. I eventually asked SiteGround for support, and they told me the
   following:
 * > Thank you for contacting our Help Desk!
   >  I investigated the matter and was 
   > able to find the following error generated due to the free-shipping-notification-
   > woocommerce-pro plugin: Fatal error: Uncaught Error: Call to a member function
   > get_displayed_subtotal() on null in /home/puretekstore/public_html/wp-content/
   > plugins/free-shipping-notification-woocommerce-pro/public/class-pisol-fsnw-
   > min.php on line 12 I have now deactivated the plugin to verify that the reported
   > issue is resolved, please test to verify this on your end as well.
 * As you can see, they had to deactivate your Free Shipping pro plugin, but our
   client likes what it does. Can you help to debug it? Or can you fix it?
 * -Mark
    -  This topic was modified 5 years, 6 months ago by [westhillsweb](https://wordpress.org/support/users/westhillsweb/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-error-breaks-rest-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [PI Web Solution](https://wordpress.org/support/users/rajeshsingh520/)
 * (@rajeshsingh520)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-breaks-rest-api/#post-13687399)
 * Hi,
 * We have fixed this download and install the latest version from your account

Viewing 1 replies (of 1 total)

The topic ‘Uncaught Error Breaks REST API’ is closed to new replies.

 * ![](https://ps.w.org/free-shipping-notification-woocommerce/assets/icon.svg?rev
   =3314228)
 * [Free Shipping Bar for WooCommerce – Progress Indicator, Popup & Alerts](https://wordpress.org/plugins/free-shipping-notification-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/free-shipping-notification-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/free-shipping-notification-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/free-shipping-notification-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/free-shipping-notification-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/free-shipping-notification-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [PI Web Solution](https://wordpress.org/support/users/rajeshsingh520/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-breaks-rest-api/#post-13687399)
 * Status: resolved