Приветствуем вас! Вы видите ошибку cURL 28: Превышено время ожидания соединения на вашем сайте WordPress? Ошибка cURL 28 — распространенная проблема WordPress REST API, которая может повлиять на производительность вашего веб-сайта и привести к его непредсказуемому поведению.
В этой статье мы покажем вам, как легко исправить проблему cURL error 28 на вашем веб-сайте WordPress.
Что такое cURL в WordPress?
CURL — это программная утилита, используемая WordPress и многими другими веб-приложениями для отправки и получения запросов данных с использованием URL-адресов.
WordPress использует cURL для обработки нескольких запросов API. Он доступен как расширение языка программирования PHP, и ваша хостинговая компания WordPress позаботится об этом.
Библиотека cURL играет решающую роль в том, как WordPress работает за кулисами. Если он не настроен должным образом, ваш веб-сайт не будет работать должным образом.
Что вызывает ошибку cURL 28 в WordPress?
Неспособность своевременно ответить на запросы данных сервера вызывает ошибку 28 cURL в WordPress.
WordPress использует REST API (метод программирования) для отправки и получения запросов данных. Если время ожидания этих запросов истекло, вы увидите это как критическую проблему в отчете о работоспособности сайта с заголовком «Ошибка REST API».
Расширение ошибки покажет вам дополнительную информацию, включая сообщение об ошибке:
Error: cURL error 28: Operation timed out after x milliseconds with x bytes received (http_request_failed)
Вы также можете увидеть другую связанную проблему с заголовком «Ваш сайт не может выполнить запрос обратной связи». В нем будет аналогичное сообщение об ошибке со следующим описанием.
«Запрос обратной связи к вашему сайту не удался, это означает, что функции, использующие их, в настоящее время не работают должным образом».
Что может вызвать тайм-аут cURL?
Ряд сценариев может вызвать тайм-аут cURL в WordPress:
- Например, плагин брандмауэра WordPress может блокировать запрос REST API, считая его подозрительным действием.
- Если ваш DNS-сервер работает некорректно, это также может вызвать сбой HTTP-запросов и вызвать ошибку тайм-аута cURL в WordPress.
- Плохо настроенный хостинг-сервер может просто иметь очень низкий порог тайм-аута, что может помешать правильной работе определенных процессов WordPress.
Давайте посмотрим, как устранить и исправить данную проблему.
1. Временно отключите брандмауэр WordPress
Если вы используете брандмауэр WordPress или плагин безопасности, временно отключите его.

После этого вам нужно посетить страницу отчета о работоспособности сайта WordPress, чтобы узнать, решена ли ваша проблема.
Если да, то вам нужно проверить журналы брандмауэра WordPress, чтобы узнать, какие запросы API были заблокированы. Это либо определит источник проблемы, либо вы можете настроить параметры брандмауэра, чтобы не блокировать законные запросы API.
2. Отключите все плагины WordPress
Плагины WordPress создают собственные запросы API для отправки и получения данных. Если эти вызовы слишком часты или для выполнения требуется слишком много времени, это может вызвать ошибку cURL в отчете о работоспособности вашего сайта.
Самый простой способ выяснить это — отключить все плагины WordPress. Просто перейдите на страницу «Плагины»-«Установленные» и выберите все плагины.

После этого щелкните раскрывающееся меню «Массовые действия», чтобы выбрать «Деактивировать», а затем нажмите кнопку «Применить».
Теперь вы можете посетить отчет о работоспособности сайта, чтобы узнать, исчезла ли проблема. Если это устранило проблему, вы можете активировать свои плагины один за другим, пока проблема не появится снова.
Это поможет вам найти плагин, который может вызывать проблему.
3. Убедитесь, что ваш хостинг-сервер использует новейшее программное обеспечение
Следующий шаг — убедиться, что ваш хостинг-сервер WordPress использует последние версии PHP, библиотеки cURL и OpenSSL.
Вы можете проверить это, просмотрев вкладку системной информации на странице «Инструменты»-«Здоровье сайта».

Просто перейдите на вкладку «Информация» и разверните раздел «Сервер». Отсюда вы можете получить информацию о программном обеспечении, установленном на вашем хостинг-сервере WordPress.

В идеале ваш сервер должен использовать PHP 7.4.13 или выше, curl 7.74.0 или выше и OpenSSL 1.1.1 или выше.
Если это не так, вам необходимо связаться с вашей хостинговой компанией и попросить их обновить программное обеспечение для вашей учетной записи хостинга.
4. Устранение проблем с небезопасным контентом SSL
Если ваш сайт использует HTTPS / SSL, но он не настроен должным образом, это также может привести к тому, что ваш веб-сервер заблокирует небезопасные запросы cURL.
Точно так же, если ваш веб-сайт не использует HTTPS / SSL, но он сделал вызов API с использованием URL-адреса HTTP, то эти запросы тоже не будут выполнены, и вместо этого вы можете увидеть следующую ошибку cURL:
Ошибка: ошибка cURL 7: не удалось подключиться к порту localhost 443: в соединении отказано (http_request_failed)
Чтобы исправить это, вы можете попросить своего хостинг-провайдера переустановить сертификат SSL для вашего сайта.
5. Обратитесь за помощью к поставщику услуг хостинга
Если описанные выше действия не помогли устранить ошибку cURL 28 то, проблема, скорее всего, связана с средой хостинга.
Есть много факторов, которые могут контролироваться и исправляться только вашей хостинговой компанией. Например, если их DNS-серверы не могут своевременно разрешать запросы, это приведет к тайм-ауту запросов cURL.
Другой сценарий может заключаться в более медленном подключении или сетевых проблемах с вашим хост-сервером.
Просто отправьте им запрос в службу поддержки с подробными сведениями об ошибке, и их технический персонал сможет устранить неполадки и применить исправление для ее решения. Ну что, у нас на этом все. Всем пока!
С уважением Вячеслав и Валерия!
Понравился материал? Поделитесь с друзьями!
Интересное на блоге
В этой короткой статье мы расскажем, как устранить ошибку «cURL error 28: Connection timed out in XXXX milliseconds» при обновлении плагинов или тем WordPress. Это довольно распространённая ошибка, и связана она с сервером. В большинстве случаев она не вызывается ни какой-либо темой, ни плагином, и не самим WordPress.
Как исправить ошибку?
Первое, что нужно сделать, это обновить WordPress до актуальной версии.
Если это не помогло решить проблему, свяжитесь с поддержкой вашего хостинг-провайдера и уточните следующие моменты:
- Убедитесь, что на сервере работает последняя версия PHP и библиотеки cURL.
- Попробуйте увеличить параметр лимита памяти сервера (memory_limit).
- Эта ошибка cURL может быть связана с проблемами, связанными с DNS. Если вы используете собственный сервер, попробуйте переключить конфигурацию на OpenDNS.
- Уточните у провайдера, нет ли ограничений на выполнение wp-cron и не отключен ли loopback.
- Уточните у провайдера, возможно, брэндмауэр или модули защиты (например, mod_security ) блокируют исходящие запросы cURL.
Viewing 13 replies — 1 through 13 (of 13 total)
Hi there,
Thanks for trying Podcast player.
Can you share your Podcast feed url? I will check and reply.
Thanks,
Hi there,
The feed is loading perfectly on my system. It happens sometimes when your feed xml file cannot load in 10 seconds (due to poor network connection or some other reasons). Please check the connection and/or retry after some time.
Please inform if it still doesn’t load in 10 seconds.
Thanks,
Oh,,,
I have a whole white page, with nothing there.
look here: https://prnt.sc/s78f9u
here is the shortcode i am using for this one, and this is the same for other podcasts feeds:
[podcastplayer feed_url='https://feed.reversim.com/' accent_color='#ff0000' hide_social='true' hide_download='true']
Hi,
There is something strange with this podcast feed. On local wordpress installation it won’t give any error, however, on live website it does give white screen. Also, if you add number='8' to your shortcode, it work perfectly.
But no where, I get connection timed out error with this feed.
Thanks,
I added number=’8′ and this not help.
Strange 🙁
Please provide me revised shortcode you are using. I will check and inform.
Thanks,
[podcastplayer feed_url='https://feed.reversim.com/' number='8' accent_color='#ff0000' hide_social='true' hide_download='true']
Hi there,
I think there is some problem with description text of the podcast. I tried to validate the feed at https://castfeedvalidator.com/?url=https://feed.reversim.com/ (click on “See Preview” link on the page) and it shows that feed description contains some invalid UTF-8 characters in the description (in episode 382, 380, 376 etc.).
Perhaps try to reduce the number from 8 to 5. It might work. If not, please inform and I will test it further.
Thanks,
-
This reply was modified 2 years, 9 months ago by
vedathemes.
No, it’s not help. I tried even number='1'
This podcast about tech / development / code and etc.
Maybe they added some javascript or php or another language code signs like ” ; : ` and more, and this is compromise with the code of the podcast player?
Hi have just created a test site on https://jurassic.ninja/ to test it on a neutral environment. It seems to be working perfectly there. Are you using Wordfence or something? As you rightly pointed out, may be this podcast’s episode content contains something strange.
You can also try creating a test website and test. My test results are here https://solid-cats.jurassic.ninja/sample-page/.
Thanks,
Yes, I am using Wordfence
Hi there,
As we discussed above, there seems to be some problem in the episode content. The feed works perfectly with podcast player (as shown in the link), however, it seems it has some issues with Wordfence or some other security plugin. You could try to disable Wordfence and try using the feed but I will advise against it, as it might create some security issues on your website.
I am closing this ticket for now, as it seems the problem is not with podcast player. However, if you find anything related to the above feed which needs some correction in Podcast player, please feel free to inform on this ticket.
Thanks,
Viewing 13 replies — 1 through 13 (of 13 total)
Viewing 13 replies — 1 through 13 (of 13 total)
Hi there,
Thanks for trying Podcast player.
Can you share your Podcast feed url? I will check and reply.
Thanks,
Hi there,
The feed is loading perfectly on my system. It happens sometimes when your feed xml file cannot load in 10 seconds (due to poor network connection or some other reasons). Please check the connection and/or retry after some time.
Please inform if it still doesn’t load in 10 seconds.
Thanks,
Oh,,,
I have a whole white page, with nothing there.
look here: https://prnt.sc/s78f9u
here is the shortcode i am using for this one, and this is the same for other podcasts feeds:
[podcastplayer feed_url='https://feed.reversim.com/' accent_color='#ff0000' hide_social='true' hide_download='true']
Hi,
There is something strange with this podcast feed. On local wordpress installation it won’t give any error, however, on live website it does give white screen. Also, if you add number='8' to your shortcode, it work perfectly.
But no where, I get connection timed out error with this feed.
Thanks,
I added number=’8′ and this not help.
Strange 🙁
Please provide me revised shortcode you are using. I will check and inform.
Thanks,
[podcastplayer feed_url='https://feed.reversim.com/' number='8' accent_color='#ff0000' hide_social='true' hide_download='true']
Hi there,
I think there is some problem with description text of the podcast. I tried to validate the feed at https://castfeedvalidator.com/?url=https://feed.reversim.com/ (click on “See Preview” link on the page) and it shows that feed description contains some invalid UTF-8 characters in the description (in episode 382, 380, 376 etc.).
Perhaps try to reduce the number from 8 to 5. It might work. If not, please inform and I will test it further.
Thanks,
-
This reply was modified 2 years, 9 months ago by
vedathemes.
No, it’s not help. I tried even number='1'
This podcast about tech / development / code and etc.
Maybe they added some javascript or php or another language code signs like ” ; : ` and more, and this is compromise with the code of the podcast player?
Hi have just created a test site on https://jurassic.ninja/ to test it on a neutral environment. It seems to be working perfectly there. Are you using Wordfence or something? As you rightly pointed out, may be this podcast’s episode content contains something strange.
You can also try creating a test website and test. My test results are here https://solid-cats.jurassic.ninja/sample-page/.
Thanks,
Yes, I am using Wordfence
Hi there,
As we discussed above, there seems to be some problem in the episode content. The feed works perfectly with podcast player (as shown in the link), however, it seems it has some issues with Wordfence or some other security plugin. You could try to disable Wordfence and try using the feed but I will advise against it, as it might create some security issues on your website.
I am closing this ticket for now, as it seems the problem is not with podcast player. However, if you find anything related to the above feed which needs some correction in Podcast player, please feel free to inform on this ticket.
Thanks,
Viewing 13 replies — 1 through 13 (of 13 total)
“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 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)”
cURL error 28: Connection timed out, resulting in sluggish Page Speed Insights, is usually found to occur when you are transferring your site from one cPanel Account to another or to a new server.
However, no matter how you got that error, it’s important to FIX it and close all doors for it to enter again.
Are you experiencing a delay in site loading? Well, first you need to check the site for Curl Error 28. Solve curl Error 28, Request Timeout Error – The Error that took 10 days to Solve after experimenting 100s of different methods to resolve my site back. Want to know how did I solve it?
While on most of the tech sites and forums you will find that this is a server error, it might be possible that your hosting provider cannot help you with this issue and you end up hearing that something is wrong with your site at your end.
If you are suddenly experiencing website page speed issues and from 10 seconds load time is increased to 40-50 seconds, this must be due to cURL error 28.
Here are a few steps to check error cURL 28, request timeout from your website backend: –
- Go to your WordPress Website back-end with the link – Domain Name/wp-admin.
- Click on Settings & then Tools, there you will find, Site health tab
- This Site Health tab tells you the current Website issues going in your site whether they are related to Plugins, theme updates, old PHP versions, latest WordPress updates, or any other website loading issue.
There are several reasons predicted to cause cURL error 28 on your websites such as Server error, some DNS issues, WordPress Connectivity issue with the domain, old PHP versions, or limited memory allocated to the site.
Considering, you have beginner developer knowledge, here’s a list of possible errors that can help you fix this error on your own: –
- Check your website PHP version, upgrade if low.
- Check your WordPress & it’s plugins update – Keep everything updated. Check your domain, IP, and DNS connections. Site – “What’s my DNS” is helpful – https://www.whatsmydns.net/.
- Go to PHP INI manager and open error display setting on the Particular PHP version you site is running, to help you know where the exact issue is pulling up .
- Try “Troubleshooting Plugin” of WordPress and deactivate all plugins through it. Then reactivate your plugins one by one to check which is causing the issue. (I would recommend to completely delete that plugin and then install it, a fresh).
- Check the error log in cPanel to check which code line is causing the error in your website.
- Error logs also come up in File manager (outside public_html).
- If you are technically sound (highly recommended), then check your Server Security Configuration in mod_security, in WHM Panel. This is helpful if all your websites are showing the same error. However, if only 1 or 2 sites are showing this error, then the issue lies somewhere else.
- Increase PHP limits (check PHP INI for that) or Add a file “php.ini” in your Website’s root directory with the following code.
- Contact your administrator or Hosting Provider.
- If none of the above works out, remember the one option left is, you need to completely set up your website again.
(Just take your existing site backup and Read the next blog to know how to do retrieve your existing site in just 1 hour)