Quantcast
Channel: mailchimp – WordPress.org Forums
Viewing all articles
Browse latest Browse all 2811

cURL error 28 on localhost updates

$
0
0

Hey,

since I recently updated my PHP version to 7.2 on my local machine all vhosts’s cURL updates fail, but I am stuck with what else to try debug.

PHP is installed via brew on my Mac. I initially suspected a cURL version problem, because many similar help topics refer to this. However, I think my cURL should be okay.

In the Health Check plugin I get:

Site Status

WordPress Version 	
Plugin Versions 	

    Your site has 18 active plugins, and they are all up to date.
    Your site has 32 inactive plugins, it is recommended to remove any unused plugins to enhance your site security.

Theme Versions 	

    Your site has 10 installed themes, and they are all up to date.
    Your site has 8 inactive themes, other than twentynineteen, the default WordPress theme, and , your active theme. It is recommended to remove any unused themes to enhance your sites security.

PHP Version 	7.2.15
Database Server version 	5.6.20
PHP Extensions 	

    The optional module, imagick, is not installer, or has been disabled.

MySQL utf8mb4 support 	Your MySQL version supports utf8mb4
HTTPS status 	You are accessing this website using HTTPS.
Secure communication 	Your WordPress install can communicate securely with other services.
Scheduled events 	A scheduled event (action_scheduler_run_queue) has failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.
Plugin and Theme Updates 	

    Plugin updates should be working as expected.
    Theme updates should be working as expected.

HTTP Requests 	HTTP requests should be working as expected.
REST API availability 	The REST API request failed due to an error.
Error encountered: (0) cURL error 28: Resolving timed out after 10074 milliseconds
Communication with WordPress.org 	Unable to reach WordPress.org at 198.143.164.252: cURL error 28: Resolving timed out after 10074 milliseconds
Background updates 	

    A plugin has prevented updates by disabling wp_version_check().
    No version control systems were detected.
    Your installation of WordPress doesn't require FTP credentials to perform updates.

Loopback request 	The loopback request to your site failed, this may prevent WP_Cron from working, along with theme and plugin editors.
Error encountered: (0) cURL error 28: Resolving timed out after 10069 milliseconds

And in the PHP information tab, cURL section:

cURL support 	enabled
cURL Information 	7.64.0
Age 	4
Features
AsynchDNS 	Yes
CharConv 	No
Debug 	No
GSS-Negotiate 	No
IDN 	No
IPv6 	Yes
krb4 	No
Largefile 	Yes
libz 	Yes
NTLM 	Yes
NTLMWB 	Yes
SPNEGO 	Yes
SSL 	Yes
SSPI 	No
TLS-SRP 	Yes
HTTP2 	Yes
GSSAPI 	Yes
KERBEROS5 	Yes
UNIX_SOCKETS 	Yes
PSL 	No
Protocols 	dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host 	x86_64-apple-darwin18.2.0
SSL Version 	OpenSSL/1.0.2q
ZLib Version 	1.2.11
libSSH Version 	libssh2/1.8.0 

I have this problem both on local sites that I have a local self-signed certificate as well as non-https local sites.

I’ve tried manually setting up a cURL request to see the response, for example in my theme functions.php, and for this code:

$ch = curl_init("https://api.wordpress.org/core/version-check/1.7/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
var_dump("error", curl_error($ch));
curl_close($ch);

I get this response: string(5) "error" string(0) ""

At this point I don’t know any more what else to try to debug this any further. Suggestions?


Viewing all articles
Browse latest Browse all 2811

Trending Articles