Divi: the easiest WordPress theme to use
Divi: The best WordPress theme of all time!
With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]
Need to know how to fix the 504 error on WordPress? Here is a solution.
There are so many things that can go wrong when running a business. If you add a website to it, the problems get even worse.
Let's say, however, that you did everything perfectly. Your website is secure and the pages load with the best speed. Search engines are happy to rank you, but suddenly a 504 error occurs.
What … ?
Where does the 504 error come from and what does it mean? What caused it? Was this something that you or the client did? And, more importantly, how do you get rid of it when it shows up on your WordPress website?
This article will give you the answers to each of these questions.
But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog
Then back to why we are here.
What to know about mistakes
There are different HTTP status codes that may appear on your website at any time.
- code 200 is the green light in the result. In other words, everything is going well.
- the code 300 indicates that a redirection has taken place.
- the 400 code reflects errors with the end user, or what is called "the customer". If you or your visitors see a 400 error while browsing the web, it means something like the browser, internet connection, firewall, or proxy settings are to blame.
- code 500 including gateway 504 timeout error means something is wrong with the website server. Discover How to fix the "500 Internal Server" error on WordPress
When a 504 gateway timeout error appears, it displays something like " 504 gateway timeout ”or“ HTTP error 504 ”. Basically, when you lose your connection to a website or cannot connect to it, the resulting error message on the screen will have "504" included.
This means that the website server has received a request, but for some reason it can not respond because the processing took too long and the time has expired.
When troubleshooting a 504 Gateway timeout error on your website, pay attention to verbiage if you want to root the problem down. Usually, if it says "Nginx»Or the name of a specific supplier (as a web host or CDN provider), then the problem is with the web host and you need to contact them to fix it.
On the other hand, if this is a generic error message, the problem may lie in your own configuration of the web hosting plan and the server. The most likely reason is that your server does not have enough bandwidth or memory to meet the request.
To solve this problem, you will need to adapt your resources accordingly.
How to fix 504 errors on your WordPress website
Identifying the party responsible for a 504 error is apparently straightforward. Since this is a server side error, you or your web host will be responsible for the problem. However, there are a number of reasons why a server would be unable to deliver a page as requested and in turn throw a 504 error.
Discover also by the way How To Fix 403 Forbidden Error On WordPress
Unfortunately, this makes troubleshooting the actual problem particularly stressful.
Easily create your website with Elementor
Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]
So, let's review the check and fix steps that you can use to find the source of the problem and restore your WordPress website.
1. Is it just temporary?
If you are the one who discovers the 504 error and it is not being reported by anyone else, refresh the page and clear your browser cache.
Discover to go further How to clean the cache of your WordPress blog
If your website comes back right away, it's probably a temporary lost connection with the server. Keep an eye on it to make sure it does not happen again.
2. Is it a breach of security?
Then you have to rule out that the problem with the server is not caused by an external security threat like DDoS. Check if your security plugin detected anything. If you have hired a security provider to handle the security of your website, check with them.
Either way, you'll want to rule this out as there is more risk here than just a server malfunction.
3. Is this a recent migration?
Migrating a WordPress website is a pretty common thing these days. But some website migrations, or even a switch from HTTP to HTTPS, can result in temporary 504 error among visitors.
Basically, if the DNS records are not fully propagated, your website may display the 504 error message. If this does not resolve on its own, you need to cache your DNS servers on the client side.
Discover also our 3 tips to facilitate the migration of your WordPress blog
4. Is this the database?
If you are worried that the problem lies in your MySQL database, you can use a plugin like WP-DBManager to make a repair.
See also our tutorial on How to configure WP-DBManager and save your blog
5. Is this the .htaccess file?
Think about the last time you edited your database files. While this is not a problem with the entire database, it could be something incorrectly edited in any of these files that is interfering with the functioning of your website.
More precisely, look at your file .htaccess. Usually, when I often install a plugin or update WordPress, I always get an error, because I installed WordPress in a subdirectory. So each time I correct the .htaccess file.
6. Is it a new plugin or theme?
While searching for answers to developers' questions about 504 errors, I found plugins to be the first thing to blame ... which makes sense when you think of all the boring things that can be boring if you're not careful to check them out. .
That said, a new plugin or theme could indeed be responsible for a 504 error.
If you can identify when exactly the error started appearing on your website, check if you have upgraded or added any new plugins during this time.
Disable the plugin or theme if you think so and check your website again. If that doesn't work, you need to deactivate all plugins at the same time and test them one by one. An incorrectly cached or updated plugin can slow server response time.
Discover with us How to improve the speed of your WordPress blog
7. Is it the CDN?
One of the often recommended troubleshooting methods for client side error 400 is to disable the proxy in their browser. This is because a proxy can prevent a server from sending files to a browser window.
Discover How to fix 413 error on WordPress
However, since we are talking about a 500 error here and the issue is on your server, the only way a proxy could be at fault is if the CDN is somehow blocking that connection (which can happen) .
If so, the 504 error message will have the name of the CDN provider mentioned in the message. You can contact them for assistance.
Discover also some premium WordPress plugins
You can use other WordPress plugins to give a modern look and optimize the grip of your blog or website.
We offer you here some premium WordPress plugins that will help you do that.
1. Social Wall Addon for UserPro
UserPro can be a lot more fun with a social wall. This is what its Social Wall extension brings. With the Social Wall plugin, you can create a wall on your website and provide your members with a refreshing way to interact with the community.
The WordPress Social Wall plugin allows your users to: share messages with each other, share images, comment on other people's posts, users can like or dislike a message, they can choose to display the wall only for them. logged in users or for all users, administrators can delete user posts or comments, etc.
2. Affiliate Egg
Any website owner who has successfully created and managed a website that offers an affiliate program can tell you that the best conversions and commissions can be found in local online stores.
While there are many good plugins for affiliate marketing, but they all work with large networks, because usually local online stores do not offer their own API and participate in any affiliate network.
That's why the WordPress Affiliate Egg plugin has been created. It works with many online shops that do not work with any other plugin. Try this WordPress plugin and see how it behaves and then come back and leave us your comments.
3. Google Analytics - Real Traffic
Like all the WordPress plugins in this article, this plugin will help you integrate features such as real-time tracking of your website activities, thanks to the Google Analytics service.
Its features are among others: the presence of a bot that uses free proxies to change the IP address of each thread, the ability to define a number of seconds to wait on the page, the ability to define an unlimited number of referrers (Facebook, Twitter, Instagram and others), the possibility of opening between 1 and 50 threads simultaneously, the use of a single user agent (browser) or random (the list of user agents is already predefined), a report in real time with the amount of traffic, and a bot capable of driving traffic to your website 24/7.
Download | Demo | Web hosting
Other recommended resources
We also invite you to consult the resources below to go further in the grip and control of your website and blog.
- How to install WordPress with FileZilla: the Tutorial
- How to use categories and labels effectively on WordPress
- How to change the author of a WordPress article
- How to create a responsive menu for mobile WordPress
Here ! That's it for this tutorial. Hope it helps you resolve the 504 error on WordPress. Feel free to share the tip with your friends on your social networks.
But, in the meantime, tell us about your Comments and suggestions in the dedicated section.