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.

Discover 5 WordPress plugins to better manage errors 404

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 it is a generic error message, the problem may lie in your own plan configuration.Web hosting and the server. The most likely reason is that your server doesn't have enough bandwidth or memory to serve the request.

To solve this problem, you will need to adapt your resources accordingly.

How to resolve error 504 - timeout 504 browser.png

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.

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.

Check out our 10 premium WordPress plugins perfect for enhancing the security of your blog

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.

Discover How To Fix 429 Too Many Requests Error On WordPress

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.

WordPress plugin error WordPress.png

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 400 errors 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 appearance and to optimize the handling 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.

Social wall addon for userpro

Le WordPress Plugin Social Wall 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 logged-in users or for all users, admins can delete posts or user comments etc.

Download | Demo | Web hosting

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.

Affiliate egg niche affiliate marketing wordpress plugin

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 Plugin Affiliate Egg was created. It works with many online stores that do not work with any other plugin. try this WordPress Plugin and observe how it behaves then come back to leave us your comments.

Download | Demo | Web hosting

3. uSquare

The uSquare premium WordPress plugin is a responsive square grid that displays your content in a unique and interesting way. You can use it to display your team members, products, services, designs, images, photos, or whatever else comes to mind.

uSquare-Plugin For WordPress-Photographers,

It is an excellent WordPress plugin for photographers, who want to create photo galleries in Windows 8 (Metro) style.

Here is 8 WordPress plugins to protect your WordPress blog to discover absolutely.

Its features are among others: fully responsive layout, compatibility with several browsers, a l3. ook infully customizable and flexible, the possibility of reorganizing its elements thanks to the drag and drop, a cintuitive design et more ...

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.

Conclusion

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.

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.

But, in the meantime, tell us about your Comments and suggestions in the dedicated section.

...