WordPress update.php error
-
Hi
I am writing because a lot of people have been experiencing issues with wp-admin having long load times and giving an error on update.php on various lines.
(WordPress could not establish a secure connection to www.ads-software.com. Please contact your server administrator.) in D:\ABC\XYZ\wp-includes\update.php on line 295
There seems to be little information and almost no solutions to be found for this exact problem, so I am going to post my solution here.
I found out that these update.php errors were caused by curl failing with an ssl connection timeout. The problem was that curl was resolving DNS records at a really slow speed and the connection just timed out. When using Linux server, then CURL uses the /etc/resolv.conf file to look up a DNS server to use. I opened the file and replaced the DNS server IP address with 8.8.8.8, which is Googles own DNS server and the problem resolved.
WP-admin load times went from 6 seconds to an astounding 200ms which is more appropriate for the server configuration I am using.
I hope this post helps some of you tackle the immense load time while developing on WordPress.
Karl
- The topic ‘WordPress update.php error’ is closed to new replies.