Error 504- Gateway timeout: As its name indicates in English, it occurs when the waiting time between the server and the browser has expired. The error can originate from both the server and the user.
What are the causes of a 500 error?
Mainly the causes are errors in the programming or changes in the template or themes of the web pages. For this reason it is advisable to be careful to always make a backup. If you take the necessary precautions and detect a 500 error in time to correct it quickly, they can make a difference and will allow you to maintain the credibility of both the visitors to your website and that of the bots that are responsible for indexing your content. Do not forget that you can lose positioning and if you do not solve these types of errors.
It is possible that a plug-in, module or some extension is trying to violate the page and use prohibited functions for security reasons and give rise to error 500.
However, if you have no idea, finding the solution quickly can be quite a challenge.
The error files can be found in different folders on your hosting, although they are generally located in the / public_html / error_log folder or in the / public_html / wp-admin / error_log folder, in the case of a WordPress installation.
Diagnosis of errors
While there is no magic formula you can apply to fix all 500 errors, there are a number of checks you can run to determine the source of the failure. In general, with some simple tests, you can identify the probable cause.
If the error occurs when you try to access any page:
Refresh the page: it is recommended to refresh the page a few minutes after the error appears. If the error persists, you can go to the website www.downforeveryoneorjustme.com to determine if the problem is general or only affects you.
Use a different browser. Frequently browser issues can cause the crash, please check with another browser or try using incognito mode.