How To Fix the “cURL Error 28: Connection Timed Out”

How To Fix the “cURL Error 28: Connection Timed Out”


How To Fix the “cURL Error 28: Connection Timed Out”

Whether you want a simple fix, such as deactivating your plugins, or a more advanced procedure, like updating your SSL, this guide has you covered 🛠
👉 Subscribe: https://www.youtube.com/c/Kinsta?sub_…

Although WordPress is a reliable Content Management System (CMS), it’s not infallible, especially when you’re making high-level customizations to the software. Therefore, you might sometimes run into WordPress errors. One of these is “cURL error 28: connection timed out.”

The good news is there are a few ways to fix the cURL error 28 in WordPress. These methods range from simple fixes, such as deactivating your plugins, to more advanced procedures, like updating your SSL settings.

In this video, we’ll explore the cURL error 28 and its causes. Then, we’ll explain how to solve this issue in WordPress using six different methods.

ℹ️ About Kinsta
Kinsta provides Application, Database, and Managed WordPress Hosting. Powered by Google Cloud Platform’s premium tier network and compute-optimized C2 virtual machines, Kinsta delivers enterprise-level security, a free CDN global edge network with 200+ PoPs, and 24/7/365 support.

🚀 Don’t let unnecessarily complicated and underperforming hosts delay your projects. Explore our plans and resource-based pricing to find the perfect fit to run your applications, databases, or WordPress sites ► https://kinsta.com/plans/

💡Learn more about Kinsta’s hosting solutions:

👉Application Hosting: https://kinsta.com/application-hosting/

👉Database Hosting: https://kinsta.com/database-hosting/

👉Managed WordPress Hosting: https://kinsta.com/wordpress-hosting/


👤Follow us:
https://kinsta.com/blog/
https://kinsta.com/newsletter/
https://twitter.com/kinsta
https://instagram.com/kinstahosting
https://facebook.com/kinstahosting



🕘Timestamps

0:00 Intro
0:52 Temporarily Disable Your WordPress Firewall
1:39 Deactivate Your WordPress Plugins
2:46 Explore Your SSL Settings
3:48 Verify Your DNS Settings
4:59 Check Your Server Limits and cURL Version
5:43 Contact Your Hosting Provider for Assistance



📚 Resources

🛠 How To Fix the “cURL Error 28: Connection Timed Out”
https://kinsta.com/knowledgebase/curl

#wordpress #wordpresstutorial


Content

0 -> Hey there, I'm Mike, and today I'm going to show you
2.22 -> how to fix the cURL error 28.
5.141 -> (upbeat music)
10.86 -> Although WordPress is a reliable content management system,
14.25 -> it's not infallible,
15.66 -> especially when you're making high-level customizations
18.66 -> to the software.
19.92 -> Therefore, you might sometimes run into WordPress errors.
22.98 -> One of these is the cURL error 28, connection timed out.
27.15 -> In this video, I declare
28.41 -> to you the good news about solving this issue
30.63 -> in WordPress using six different methods.
33.42 -> But before we get started,
34.68 -> I wanna let you know that there'll be links
36.06 -> to more resources in the video's subscription and remember,
39 -> subscribe and ring that bell to get notifications
41.31 -> for future helpful content.
42.93 -> Now, let's get rid of this error.
48 -> Essentially, this WordPress security mechanism
50.4 -> filters suspicious traffic
51.99 -> and prevents it from reaching your website.
54.21 -> Sometimes it might also be incorrectly
56.04 -> blocking a legitimate REST API request
58.92 -> and causing a connection timed out error.
61.02 -> To verify if the firewall is causing the error,
63.51 -> you'll want to disable it temporarily.
65.43 -> This process will differ slightly depending
67.35 -> on your chosen software.
68.88 -> We'll show you how to do this
69.96 -> with the Wordfence plugin.
71.4 -> In your WordPress dashboard,
72.78 -> head to Wordfence and then Firewall.
75.21 -> Then scroll down to web application firewall status.
78.03 -> Select Disabled from the dropdown menu
80.46 -> and click on Save Changes.
82.26 -> Next, we recommend checking to see
84.27 -> if your website still shows the cURL error 28.
87.87 -> After that, re-enable your firewall after a few minutes
90.84 -> and see if it causes the error again.
93 -> If so, consider choosing a different firewall plugin
95.61 -> or contacting the plugin developers
97.74 -> for further assistance.
99 -> Any of the WordPress plugins on your website
101.01 -> could be causing the connection timeout error.
103.41 -> Since you won't know until you try them,
105.39 -> this approach is all about trial and error.
107.91 -> You'll need to deactivate all
109.26 -> of your plugins and reinstall them one by one.
111.99 -> If you have access to your WordPress dashboard,
114.15 -> this process is pretty straightforward.
116.1 -> Simply navigate to plugins and then install plugins
118.86 -> and check the top left box to select all of them.
122.01 -> Then click on deactivate
123.57 -> in the bulk actions dropdown menu and hit apply.
126.75 -> Alternatively, if the cURL error is blocking access
130.2 -> to your WordPress dashboard,
131.7 -> you'll need to manually disable your WordPress plugins.
134.46 -> To do this, connect to your site
136.2 -> with an SFTP client such as FileZilla.
138.99 -> Then locate your wp-content folder.
141.99 -> It should have a subfolder called plugins.
144.33 -> Rename this folder to plugins-old.
146.73 -> This will deactivate all of the plugins on your website.
149.49 -> Next, you can log into your WordPress dashboard
151.71 -> and reactivate each tool
153.45 -> until you find the one causing the issue.
155.46 -> Once you've found the problem plugin,
157.26 -> you might consider downgrading WordPress
159.27 -> until you can find a permanent solution.
161.28 -> Otherwise, you can uninstall the plugin
163.44 -> and look for alternative software for your site.
165.84 -> An SSL certificate is an essential security feature.
169.2 -> When working correctly, it provides an encrypted connection
171.93 -> between visitor browsers and your WordPress website.
174.99 -> However, an improperly installed
177.15 -> or configured SSL certificate can cause issues
180.15 -> on your website
181.14 -> and block what it considers insecure requests.
184.08 -> Therefore, it might trigger the cURL error
186.75 -> or other SSL connection errors,
188.7 -> such as cURL error number seven.
191.01 -> First, you can verify
192.48 -> if your SSL certificate is installed correctly
194.88 -> by running an SSL check with the Qualys SSL Labs test.
199.29 -> Just enter your host name into the box and click on Submit.
202.56 -> You'll then receive a report highlighting any issues.
205.41 -> As you can see, our Kinsta hosting plans come equipped
208.38 -> with a CloudFlare SSL certificate
210.66 -> and the report shows no issues.
212.82 -> However, if you identify a problem
214.89 -> with your SSL certificate, you can reinstall
217.56 -> and reconfigure it making sure you do so properly.
220.47 -> To be sure, you can follow these instructions
222.57 -> on how to correctly install an SSL certificate.
225.18 -> After that, you can check to see
226.68 -> if this has resolved that error.
228.27 -> A poorly configured DNS server can prevent WordPress
231.06 -> from processing HTTP requests.
233.4 -> This can throw the cURL error 28.
236.52 -> You'll need to contact your hosting provider
238.32 -> if the issue is with the DNS server itself.
241.14 -> Your web host may be experiencing issues
242.88 -> that prevent the server
243.72 -> from processing requests before they time out.
245.85 -> Since you can't control this process on your end,
248.25 -> we recommend raising a support ticket with your host.
251.04 -> This way, the support team
252.45 -> can help you troubleshoot the issue
254.1 -> and propagate the new DNS settings to put them into effect.
257.79 -> You can also verify DNS settings on your end.
260.4 -> This method will be appropriate
261.69 -> if you suspect that the issue is with your device.
264.09 -> For instance, your computer.
265.62 -> You can adjust your DNS settings
267.12 -> in Windows by pressing Windows + I.
269.52 -> Then head to Network & internet
271.08 -> and click on either Ethernet or Wi-Fi depending
273.48 -> on how your computer connects to the internet.
275.61 -> Next, select the properties option for your connection.
278.34 -> Now open the settings for the DNS server assignment.
281.16 -> Select manual from the dropdown menu and click on the slider
284.04 -> next to IPv4.
285.53 -> In the preferred DNS box,
287.16 -> you can enter any of the following DNS addresses.
290.37 -> Then add one of the others to the alternative DNS box.
293.7 -> Remember to hit Save when you're done
295.47 -> and you may need to restart your computer
297 -> before the changes take effect.
298.68 -> Outdated software or limited server resources
301.14 -> may cause cURL requests to time out.
304.05 -> For example, outdated PHP,
306.133 -> cURL library or OpenSSL could trigger the cURL error 28.
311.49 -> To check on this,
312.323 -> head to Tools, then Site Health, then Info,
315.12 -> and then Server in your WordPress dashboard.
317.82 -> It's also important to have some awareness
319.77 -> of your website's PHP memory limit and PHP time limit.
323.46 -> This is because WordPress can time out
325.26 -> when processing REST API requests
327.54 -> if these limits are too low.
329.28 -> As a result, this could cause a 508 resource limit
332.4 -> is reached or cURL error.
334.89 -> Again, your hosting provider generally sets
337.2 -> the maximum values for these limits.
339.18 -> Therefore, you'll need to contact them
341.04 -> if you'd like to increase the limits.
342.9 -> Finally, you may have tried all
344.46 -> of the troubleshooting methods in this video
346.29 -> but you still see cURL error 28 connection timed out.
350.67 -> While this can be frustrating,
351.9 -> you have one last option:
353.58 -> going directly to your web host for help.
356.04 -> If you've chosen a reliable hosting provider,
358.23 -> you should have access to different support channels,
360.27 -> such as live chat or a ticketing system.
362.22 -> For example, at Kinsta,
363.72 -> we provide live messaging and speedy responses.
366.69 -> When you contact your hosting provider,
368.52 -> make sure to give as much information
370.35 -> as you can about the error you're seeing.
372.81 -> Then your host will be better equipped
374.46 -> to troubleshoot the issue.
377.43 -> Kinsta's WordPress hosting can speed up your website
379.89 -> by up to 200%, and you'll get 24/7 support
382.98 -> from our expert WordPress engineers.
385.11 -> We offer two months free with any annual plan,
387.93 -> a 30-day money-back guarantee
389.7 -> and unlimited free basic migrations from any host.
393.24 -> Head over to kinsta.com/plans to get started.
396.96 -> Thank you so much for watching.
398.58 -> If you found this video helpful,
399.413 -> please don't forget to like, subscribe
402.54 -> and hit that notification bell
403.92 -> for more tutorials, explainers
405.87 -> and helpful content like this.
407.755 -> (upbeat music)

Source: https://www.youtube.com/watch?v=nK_yzyzi9nQ