Spinning wheel after appointment submissions


I've recently run into a problem with users not getting a notification that their appointment went through (ie. a popup/redirect to a thank you page). Instead, the spinning wheel just keeps spinning and eventually leads to an internal server error.

I turned on debugging for WP and saw two errors pop up (picture attached).