The below error happens when publish your website.
"Cannot connect to domainname.com using curl_init.
Please make sure domainname.com is corrected with the server and outgoing TCP port 80 is opened. Please click here to resolve."
You can fix it by solution in this guide.
If doing the solutions in the guide above doesn't help, please contact your host provider to run the following command in their server.