If you get this error: “Updating failed. The response is not a valid JSON response.”
Try to update your permalink structure. In the WordPress dashboard, go to Settings and then Permalinks. Then you can click on the Save Changes button to re-save or update the current permalink structure.