{"id":687,"date":"2023-09-16T23:25:31","date_gmt":"2023-09-16T17:55:31","guid":{"rendered":"https:\/\/www.hostbet.in\/blog\/?p=687"},"modified":"2025-01-24T14:41:57","modified_gmt":"2025-01-24T09:11:57","slug":"fix-the-wordpress-connection-timeout-error","status":"publish","type":"post","link":"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/","title":{"rendered":"How to fix the WordPress &#8220;Connection timeout&#8221; error 2025?"},"content":{"rendered":"\n<p>WordPress is widely used for creating websites; more than 810 million websites use WordPress. All these users might have faced the &#8220;connection timed out&#8221; error at some point or another, and this is seen more often in poor shared hosting.<\/p>\n\n\n\n<p>The error message appears when you have exhausted all the resources or memory available from your web hosting. In this article, we provide quick solutions such as increasing PHP memory, detecting and deactivating faulty plugins, switching to compatible themes, and extending execution time.<\/p>\n\n\n\n<p>But you will never face errors if you use Hostbet <a href=\"http:\/\/hostbet.in\/shared-hosting\" data-type=\"link\" data-id=\"hostbet.in\/shared-hosting\" target=\"_blank\" rel=\"noopener\">shared hosting<\/a>, because Hostbet offers affordable and reliable shared hosting in India without compromising on performance.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#Cause_of_the_WordPress_Connection_Timeout\" title=\"Cause of the WordPress Connection Timeout\">Cause of the WordPress Connection Timeout<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#How_to_fix_the_WordPress_%E2%80%9CConnection_timeout%E2%80%9D_error\" title=\"How to fix the WordPress &#8220;Connection timeout&#8221; error\">How to fix the WordPress &#8220;Connection timeout&#8221; error<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#Exhausted_PHP_memory_limit\" title=\"Exhausted PHP memory limit\">Exhausted PHP memory limit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#Deactivate_Faulty_Plugin\" title=\"Deactivate Faulty Plugin\">Deactivate Faulty Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#Incompatible_Theme_set_default_theme\" title=\"Incompatible Theme (set default theme)\">Incompatible Theme (set default theme)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#Increase_the_maximum_Execution_Time\" title=\"Increase the maximum Execution Time&nbsp;\">Increase the maximum Execution Time&nbsp;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#FAQ_Frequently_Asked_Questions\" title=\"FAQ (Frequently Asked Questions)\">FAQ (Frequently Asked Questions)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#What_causes_the_%E2%80%9Cconnection_timeout%E2%80%9D_error_in_WordPress\" title=\"What causes the &#8220;connection timeout&#8221; error in WordPress?\">What causes the &#8220;connection timeout&#8221; error in WordPress?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.hostbet.in\/blog\/fix-the-wordpress-connection-timeout-error\/#How_can_I_increase_PHP_memory_limit_to_fix_the_error\" title=\"How can I increase PHP memory limit to fix the error?\">How can I increase PHP memory limit to fix the error?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cause_of_the_WordPress_Connection_Timeout\"><\/span><strong>Cause of the WordPress Connection Timeout<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Frequent connection timeout messages can frustrate anyone, especially if you&#8217;re the owner. Most beginners use shared hosting to host their website, where multiple websites already coexist on the same server.<\/p>\n\n\n\n<p>Sometimes web hosting companies host more sites than the limit on a single server. Due to a lack of resources and the large number of sites. Hence, this error occurs (connection timeout).<\/p>\n\n\n\n<p>Moreover, this error can also be caused by faulty plugins or themes; sometimes it can also be caused by low PHP memory or low execution time on the server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_fix_the_WordPress_%E2%80%9CConnection_timeout%E2%80%9D_error\"><\/span><strong>How to fix the WordPress &#8220;Connection timeout&#8221; error<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exhausted_PHP_memory_limit\"><\/span><strong>Exhausted PHP memory limit<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>One of the most common causes of this &#8220;connection timeout&#8221; error is the available PHP memory limit via editing wp-config.php files.<\/p>\n\n\n\n<p>For wp-config.php, you need access to your website\u2019s root directory through FTP or the File Manager.<\/p>\n\n\n\n<p>In a `<a href=\"https:\/\/www.hostbet.in\/blog\/fix-wordpress-add-media-button-not-working\/\" data-type=\"link\" data-id=\"https:\/\/www.hostbet.in\/blog\/fix-wordpress-add-media-button-not-working\/\">wp-config.php<\/a>` file. Open it using a text editor and add the following line just after the &#8220;That&#8217;s all, stop editing! Happy Publishing\u201d<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-0-color has-text-color\"><code><strong>define('WP_MEMORY_LIMIT', '2048M');<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"455\" src=\"https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-13.png\" alt=\"\" class=\"wp-image-702\" srcset=\"https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-13.png 723w, https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-13-300x189.png 300w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/figure>\n\n\n\n<p>This will increase the memory limit of your WordPress website to 256MB. Increasing the memory limit can help prevent critical memory-related errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deactivate_Faulty_Plugin\"><\/span><strong>Deactivate Faulty Plugin<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Another cause of this WordPress Connection timeout error is that sometimes poorly coded, faulty, and incompatible plugins trigger this critical error.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"968\" height=\"450\" src=\"https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-11.png\" alt=\"\" class=\"wp-image-692\" srcset=\"https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-11.png 968w, https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-300x139.png 300w, https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-11-768x357.png 768w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/figure>\n\n\n\n<p>To fix this error, you need to deactivate all plugins. Just reactivate plugins one by one and identify the problematic ones.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Incompatible_Theme_set_default_theme\"><\/span><strong>Incompatible Theme (set default theme)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>An incomplete or faulty theme can also trigger this critical error. To fix this &#8220;connection timeout error,&#8221; you need to move your current theme to a default provided by WordPress, such as Twenty Twenty-one.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"489\" src=\"https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-12.png\" alt=\"\" class=\"wp-image-694\" srcset=\"https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-12.png 932w, https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-12-300x157.png 300w, https:\/\/www.hostbet.in\/blog\/wp-content\/uploads\/2023\/09\/image-12-768x403.png 768w\" sizes=\"(max-width: 932px) 100vw, 932px\" \/><\/figure>\n\n\n\n<p>If your WordPress dashboard is not opening, then you can easily deactivate it via the root directory through FTP or the File Manager. You need to <a href=\"https:\/\/www.hostbet.in\/blog\/locked-out-of-wordpress-what-you-need-to-fix\/\" data-type=\"link\" data-id=\"https:\/\/www.hostbet.in\/blog\/locked-out-of-wordpress-what-you-need-to-fix\/\">rename the theme<\/a>; that&#8217;s it. Your theme is deactivated because you can easily set the default theme.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Increase_the_maximum_Execution_Time\"><\/span><strong>Increase the maximum Execution Time&nbsp;<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Another cause of the timeout error is a lower maximum execution time value. To fix this <a href=\"https:\/\/wordpress.org\/plugins\/wp-memory\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/wp-memory\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a> error, you need to edit the PHP.ini file and do this: Following the changes, just update the default value from 30 to 60 seconds.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-0-color has-text-color\"><code><strong>max_execution_time=60;<\/strong><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The &#8220;connection timeout&#8221; issue, which is common in poor shared hosting. It is caused by a lack of resources, overcrowding on servers, faulty plugins or themes, and PHP memory or execution time limits. This article offers fast fix solutions such as increasing PHP memory, detecting and deactivating defective plugins, switching to suitable themes, and increasing execution time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQ_Frequently_Asked_Questions\"><\/span>FAQ (Frequently Asked Questions)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1694883813329\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"What_causes_the_%E2%80%9Cconnection_timeout%E2%80%9D_error_in_WordPress\"><\/span>What causes the &#8220;connection timeout&#8221; error in WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The &#8220;connection timeout&#8221; error in WordPress can be caused by various factors, including overburdening shared hosting servers, faulty plugins or themes, low PHP memory, or low execution time.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1694883901562\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"How_can_I_increase_PHP_memory_limit_to_fix_the_error\"><\/span>How can I increase PHP memory limit to fix the error?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To increase the PHP memory limit, you can edit the wp-config.php file in your website&#8217;s root directory. Add the line define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8216;2048M&#8217;); before the \u201cThat\u2019s all, stop editing! Happy Publishing\u201d line. This will increase the memory limit to 256MB,\u00a0<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>WordPress is widely used for creating websites; more than 810 million websites use WordPress. All these users might have faced the &#8220;connection timed out&#8221; error at some point or another, and this is seen more often in poor shared hosting. The error message appears when you have exhausted all the resources or memory available from [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":685,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[85],"tags":[136,135,94],"class_list":["post-687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-connection-timeout","tag-wordpress-connection-timeout","tag-wordpress-error"],"_links":{"self":[{"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/posts\/687"}],"collection":[{"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/comments?post=687"}],"version-history":[{"count":21,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/posts\/687\/revisions"}],"predecessor-version":[{"id":2625,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/posts\/687\/revisions\/2625"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/media\/685"}],"wp:attachment":[{"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/media?parent=687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/categories?post=687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostbet.in\/blog\/wp-json\/wp\/v2\/tags?post=687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}