WeWP
ComparePricingFeaturesContact UsLoginTry For Free
  • Knowledge Base
  • How to Fix "Not Secure" or "Not Private" Connection Errors
  • How to Add Cron Jobs
  • Connect to Your Server via SSH on Windows
  • Keeping Servers and Sites Secure
  • Troubleshooting Cloudflare Issues
  • Install WordPress Themes and Plugins with Composer
  • How To Fix Mixed Content Issue For WordPress
  • What Is a DDoS Attack and How to Prevent It?
  • How to Enable WordPress Debug Mode
  • How to Fix the “MySQL server has gone away” Error
  • How to Configure WP Mail SMTP Plugin to Send Emails
  • How To Fix the “HSTS Missing From HTTPS Server” Error
  • How to Check Your Domain's Expiration Date
  • How to Use and Serve WebP Images in WordPress
  • Email security best practices for using SPF, DKIM, and DMARC
  • What is a LEMP (Linux, Nginx, MySql, PHP) Stack?
  • Deploying Web Applications with NGINX HTTP Server
  • How to Configure WP Rocket Plugin for WordPress
  • How to Check SPF and DKIM Records with WeWP
  • Understanding FTP vs SFTP: Which Should You Use for Secure File Transfers?
  • What is a DMARC record and How to Set it Up?
  • How to Set Up Cloudflare’s Free CDN for WordPress
  • How to check your Ubuntu version (Using the command line and GUI)
  • How to Download Backups from WeWP panel
  • How to Change the PHP Version of Your Hosting Plan
  • Troubleshooting Cloudflare Universal SSL
  • How to Fix “Your Domain Is Not Pointing” Error
  • SSH vs SSL: What’s the Difference?
  • WordPress Search and Replace
  • How to Force HTTPS on WordPress Websites
  • How to Fix a Failed Lifetime SSL Installation
  • How to Redirect HTTP to HTTPS
  • How to Monitor System Processes Using htop Command
  • Varnish vs Nginx FastCGI Cache: Which is Best for WordPress?
  • What Is the Database information_schema on phpMyAdmin?
  • How to Disable WP-Cron for Faster Performance
  • How to fix the ERR_SSL_PROTOCOL_ERROR
  • How to fix the NET::ERR_CERT_AUTHORITY_INVALID error
  • How to Add Expires Headers in WordPress
  • How to fix the “There has been a critical error on your website” error
  • How to Fix ERR_QUIC_PROTOCOL_ERROR in Chrome Browser
  • What Is Localhost? And How Does It Apply to WordPress?
  • How to Fix a Mixed Content Warning on Your Website
  • How to Fix the "Connection Timed Out" Error in WordPress
Powered by GitBook
On this page
  • 1. Increase PHP Memory Limit
  • 2. Increase Maximum Execution Time
  • 3. Temporarily Deactivate All Plugins
  • 4. Switch to a Default WordPress Theme
  • 5. Consult a Website Developer
  • Conclusion:

Was this helpful?

How to Fix the "Connection Timed Out" Error in WordPress

If you encounter a timeout error or ERR_CONNECTION_TIMED_OUT when opening your WordPress website, it means that the site took too long to respond. Browsers typically expect a response within 30 seconds. If this exceeds the allowed time, the browser terminates the connection.

This issue is common in WordPress and can be caused by various factors, including:

  • The server is not responding or taking too long to respond.

  • Issues within your WordPress website, such as resource limitations, plugin conflicts, or theme-related problems.

Before troubleshooting, ensure that your server is operational. If the server is running fine, follow these methods to resolve the "Connection Timed Out" error in WordPress.

1. Increase PHP Memory Limit

WordPress websites using resource-intensive themes or plugins may exceed the PHP memory limit, leading to a timeout error. Increasing this limit can often resolve the issue. Ensure the new value does not exceed the maximum memory allocated to your hosting plan.

Modify wp-config.php

  1. Open the wp-config.php file using File Manager or FTP.

  2. Add the following line before: define('WP_MEMORY_LIMIT', '128M');

  3. Replace 128M with the maximum available memory for your WeWP hosting plan.

  4. Save the file and refresh your website.

2. Increase Maximum Execution Time

The maximum execution time defines how long a PHP script can run before the server stops it. The default value is usually 30 seconds. If a script takes longer, it may result in a timeout error.

To increase the execution time to 120 seconds:

  1. Open the php.ini file using SFTP.

  2. To go to php.ini file, login SFTP and then go the your specific PHP version and go to this specific location - cd /etc/php/(your_PHP_version)/fpm and open the php.ini using vi php.ini

  3. Add the following line above the max_execution_time 120 .

  4. Now, then restart the service like sudo service php(your_PHP_version)-fpm restart

  5. Save the file and refresh your website to check if the issue is resolved.

3. Temporarily Deactivate All Plugins

Plugins can sometimes conflict or malfunction, leading to timeout errors. To identify the problematic plugin, deactivate all plugins and reactivate them one by one.

Option 1 – From the WordPress Dashboard

  1. Log in to your WordPress admin panel.

  2. Navigate to Plugins → Installed Plugins.

  3. Select all plugins, choose Deactivate from the dropdown menu, and click Apply.

  4. Open your website in an incognito window to check if the issue is resolved.

  5. If the error disappears, reactivate the plugins one by one to identify the culprit.

Option 2 – From the SFTP

If you cannot access the WordPress admin dashboard:

  1. Login SFTP and connect it First.

  2. Navigate to the wp-content folder.

  3. Rename the plugins folder to plugins_disabled to deactivate all plugins.

  4. Check if your website loads correctly.

  5. If the error is resolved, rename the folder back to plugins and then rename individual plugin folders one by one, testing your site after each rename to identify the conflicting plugin.

4. Switch to a Default WordPress Theme

A poorly coded or incompatible theme may cause timeout errors. Switching to a default WordPress theme can help determine if the theme is the issue.

Option 1 – From the WordPress Dashboard

  1. Log in to your WordPress admin panel.

  2. Navigate to Appearance → Themes.

  3. Activate a default theme such as Twenty Twenty-Four.

  4. Check your website in an incognito window.

  5. If the error disappears, your previous theme may be the cause.

Option 2 – From the SFTP

If you cannot access the WordPress admin dashboard:

  1. Login SFTP and connect it First.

  2. Navigate to the wp-content/themes folder.

  3. Rename your active theme’s folder (e.g., mytheme_disabled).

  4. WordPress will automatically switch to a default theme.

  5. Check if the issue is resolved.

5. Consult a Website Developer

If the "Connection Timed Out" error persists after trying the methods above, it may indicate a deeper issue within your website’s code. A professional developer can:

  • Debug custom code.

  • Fix configuration or database issues.

  • Resolve plugin or theme compatibility problems.

  • Optimize your website for better performance.

Conclusion:

The "Connection Timed Out" error in WordPress is usually caused by memory limits, execution time restrictions, plugin conflicts, or theme-related issues. By following the troubleshooting steps outlined in this guide, you can identify and fix the issue efficiently. If the problem persists, seeking professional assistance may be necessary.

By increasing PHP memory, adjusting execution time, disabling problematic plugins, and switching to a default theme, you can often resolve this issue and restore normal website functionality.

PreviousHow to Fix a Mixed Content Warning on Your Website

Last updated 2 months ago

Was this helpful?