The ‘err_connection_timed_out’ error is common in WordPress. The connection timed out error can be caused by a couple of issues. They include:
1. Misconfigured server. If the server is not properly configured, the connection may time out suddenly.
2. Your WordPress site is attempting a task that the server cannot handle. The connection timed out error is common when running long scripts or while uploading large files.
3. Unresponsive theme or plugin. Corrupt copies of themes and plugins can cause the connection time out error in WordPress.
In this step by step tutorial, you will learn a few proven fixes for the ‘err_connection_timed_out’ error in WordPress.
Method #1: Check for corrupt plugins or themes
1. login into your WordPress dashboard and open the installed plugins tab.
2. Deactivate all the plugins recently activated plugins. Activate one by one to check if one of the plugins is causing the error as shown below:
If the error disappears after deactivating a plugin, deactivate and delete the plugin.
3. You now need to check if the error lies within the activated theme. Activate the default WordPress theme as shown below. If the error is fixed, you should delete the theme causing the connection error.
Method #2: Increase Execution time for PHP scripts
This fix will only work if you have access to your website root folder. However, this method may not work if you are using the shared hosting option. To increase the timeout for PHP scripts, follow this step by step guide (https://www.avoiderrors.com/maximum-execution-time/)
Method #3: Increase PHP Memory Limit
WordPress allocates a specific amount of memory to the plugins for executing their scripts or performing other tasks. WSOD error will occur when your website outgrows this limitation.
In this case, you have to increase the memory limit. Luckily, it is very easy to do this. First of all, use an FTP client or the file manager provided by your hosting company to access your website’s files. Navigate to the WordPress installation directory and find out the “wp-config.php” file.
1. You need to access your website root folder and edit the “wp-config.php” file as shown below:
2. Click on ‘Edit’ on the tab that appears as illustrated below.
3. Copy and paste the code below into the wp-config.php.
Your error should now be fixed.
You now know how to fix the ‘err_connection_timed_out’ error in WordPress. Which method worked for you? Feel free to share your feedback below.