Question about Computers & Internet

1 Answer

How to Fix Connection Timed Out in WordPress?

Connection Timed Out in WordPress

Posted by Nilushi Thennakon on

Ad

1 Answer

Shashani

  • Level 1:

    An expert who has achieved level 1.

    MVP:

    An expert that gotĀ 5 achievements.

    Habit-Forming:

    Visited the website for 3 consecutive days.

    Corporal:

    An expert that hasĀ over 10 points.

  • Contributor
  • 7 Answers

1.Increase the maximum execution time to fix the WordPress connection timed out error.

We will try to increase the execution time in the server, which is the first thing to verify because the error involves the time in the connection. This means that the maximum execution time may be problematic. The first thing you need is the "php. ini" file in the server.

Remember, WordPress will not add this file to your blog. This is the server configuration, and the hosting company is the only company that can manage the file and allows its customers to edit or not edit the file. If you find the file but cannot edit it, you need to contact your managed customer support. Then, let them increase your maximum memory limit.

The second option you have is to edit the "htaccess" file. If you can't find that file, you can create it yourself. What you have to do is create a new file named ". Htaccess". Then, update your permanent link and let WordPress automatically regenerate the engine code.

If you already have a "htaccess" file like most sites, you can add the following code to increase the maximum execution time, which is 30 seconds by default.

Indeed, you need to save the file after making changes. If the server can handle more requests, this will solve the problem, but the limited execution time is the cause of the problem.

2. Disable WordPress plug-in

When you have many plug-ins, especially those that have many PHP requests to your server, it becomes crucial to execute and respond to these thousands of requests. Therefore, make sure to disable all plug-ins at once from the WordPress dashboard. This will allow you to verify that your plug-in has problems that need to be corrected.
Reactivate your plug-ins one by one until you find the problematic plug-ins. Then, delete it, or search for other tools. For example, if you are using plug-ins that need to be used once a week, it would be better to disable them.
If you can't access your administration area and activate or disable plug-ins, you can disable them from your cPanel by renaming each plug-in. For example, add "off" at the end of all plug-in names. This will disconnect them from WordPress till you finally remove the "off" and they will no longer work.



3. Increase the memory allocated by PHP

The maximum memory allocated or allotted on the shared hosting server makes things limited. Therefore, if the limit is reached, PHP is no longer executed. In some cases, you will receive a connection timeout error instead of a memory size error message.

To increase the maximum PHP limit, you need to add the below-mentioned code to the "wp confing. php" file.

Code-define( 'WP_MEMORY_LIMIT', '64M' );;

This works only if you are allowed to increase the memory limit. Some hosting companies will close the door to their users to allocate more memory. In this case, you should contact them and ask them to provide more memory for your site.

4. Verify WordPress Theme

In other cases, a theme can be a problem if it sends a large number of requests and is not well encoded with minimal optimization.

Quite simply, you can switch to another theme, or simply use one of the default WordPress Themes and verify that it works.

In addition, if you are unsure of the source of the theme, you can scan for malware in the theme. This is another thing you should avoid. Free themes can cause a lot of problems and damage the website.

5. Check the server file compression

This is another rare situation that can be solved if you have a large number of requests to the server. You can compress HTML and text files, which will reduce the number of requests from the web browser to the server.

Posted on Oct 05, 2021

×

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

How to Fix the 504 Gateway Timeout Error in WordPress

Have you ever gotten a 504 gateway timeout error on your WordPress site? This error can make your website inaccessible to users. What's worst is that it can disappear and reappear on its own if the underlying issue is not fixed. In this article, we will show you how to fix the 504 gateway timeout error in WordPress.

What Causes 504 Gateway Timeout Error? The 504 gateway timeout error is usually caused when a server is unable to connect to an upstream server to complete a request.

For example, if you are using a website firewall like Sucuri, and it is unable to connect to your WordPress server, then you will see a 504 gateway timeout error.

The error page's appearance and the message may be displayed differently depending on your WordPress hosting company, the proxy server, or the browser you are using. Following are some of the most common 504 gateway timeout error messages.

- 504 Gateway Timeout
- HTTP 504
- 504 ERROR
- Gateway Timeout (504)
- HTTP Error 504 - Gateway Timeout
- Gateway Timeout Error

While the most common reason for the error is a proxy server unable to reach the upstream server, it can also be triggered by other hosting configuration issues.

That being said, let's see how to easily troubleshoot and fix the 504 gateway timeout error in WordPress.


1. Wait and Reload Sometimes the 504 gateway timeout error may simply be caused by a temporary glitch on your WordPress hosting servers. Give it a few minutes and then try reloading your website.

2. Turn off VPN If you are using a VPN service to browse the web, then try disabling it. Sometimes your VPN server may not be able to get a response from your managed WordPress hosting server, and this will result in 504 gateway timeout error.

If your website reappears, then this means that the VPN server was the culprit. Now if using the VPN is important for you, then you can try switching to a different VPN server. If you are seeing the error even after changing servers, then you would want to contact your VPN service provider for support.
3. Change Your DNS Servers Your internet connection uses something called DNS servers. These servers help your computer connect to the different servers on the internet.

If the DNS servers you are using are down or unable to connect to your website, then you could see a 504 gateway timeout error. The easiest way to check this is by changing the DNS servers your device is using.

4. Clean up your WordPress Database

A corrupt WordPress database may also trigger a 504 gateway timeout error. Don't worry, your WordPress data is most likely safe. However, your database may need a little a bit of spring cleaning.

5. Deactivate WordPress Plugins and Switch to Default Theme

WordPress plugins and themes are less likely to cause a 504 gateway timeout error. However, if a plugin or theme is making too many requests to the server, then it is likely that some of these requests may drop off and trigger a 504 gateway timeout error.

6. More Troubleshooting

If all else fails, and you are still unable to solve the 504 gateway timeout error, then follow the steps in our ultimate WordPress troubleshooting guide for beginners.

Finally, as a last resort, you need to reach out to your hosting provider for support. They may be able to fix the issue or point you in the right direction.
0helpful
1answer

How to Fix Error Establishing Database Connection in WordPress

Write your answer... [Get in touch with your web host provider. Check if your plugin or theme file or database have been corrupted. Check your database connection credentials. Restore gthe default *mworj* wordpress file.]
7helpful
2answers

Error 118 (net::ERR_CONNECTION_TIMED_OUT): The operation timed out on my google chrome

I got this all the time due to low bandwith, normally that happens if your connection to the internet is maximized in a way that you are downloading big files at the same time you are surfing the net with lots of tab on the browsers. you may just manage the usage of your bandwith wherein you need not to multi task, if the scenario is not applicable to your connection in which no download is in progress and you are just surfing the net cleaing the cache will fix the problem. you just need to click on the wrench icon on the upper right hand corner and select options > under the hood > clear browsing data. close the chrome browser and reopen it again. hope that helps :-)
2helpful
3answers

Server conection timed out (80028e06)

Can you access the internet with a computer still?

Try rebooting the PS3 and the router. Reboot the router first, wait a few minutes, then reboot the PS3.

Which firmware version are you running?
3helpful
1answer

Key information timed out for my PSP.

get closer to router, or update the network settings.
Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

28 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Ekse

Level 3 Expert

13435 Answers

Brad Brown

Level 3 Expert

18856 Answers

Cindy Wells

Level 3 Expert

6394 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...