Please Help me Out (Unable to communicate back with site to check for fatal errors)

Posted January 31, 2021 1.3k views
  1. ERROR:- Unable to communicate back with the site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

  2. ERROR:- The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

The REST API request failed due to an error.
Error: cURL error 7: Failed to connect to port 443: Connection refused (httprequestfailed)

  1. Error:- Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.

The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error: cURL error 7: Failed to connect to port 443: Connection refused (httprequestfailed)

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Hi @abhishekbhandari,

It seems that your website doesn’t have an SSL certificate and as such, you can’t connect to port 443(https). Another issue might be the fact that your port 443 is not allowed on the droplet you have.

First, I recommend using certbot to try and install a Free SSL Certificate for your website. Depending on the WebService you are using you can either use this article :

Nginx with Certbot


Apache With Certbot

Once you have Certbot installed and your SSL issued. Try and allow your port 443 on the droplet so that connections to it are allowed. If you are using IPtables, you can type in the following command to allow it:

iptables -A INPUT -p tcp --dport 443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT 
iptables -A OUTPUT -p tcp --sport 443 -m conntrack --ctstate ESTABLISHED -j ACCEPT.


by Hazel Virdó
by Kathleen Juell
In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 18.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to learn how to use the certificate with your setup.

Hi @abhishekbhandari,

So it seems like your website is running correctly. Then how are you experiencing these REST API errors? From the CURL command I can see port to 443 seems to be opened.

I was encountering the same issue and figured it out. If you check in your /etc/hosts file you should see a like Just comment out that line and it should start working. I hope this helps.