Hi Alan
Thank you for your reply.
I read through your article and installed the WP-DBManager plugin.
I debugged it and then optimized it.
The problem is still occurring.
At the moment the error appears intermittently. I am trying to edit a post and the error keeps occurring.
Is there anything else you or anyone else can suggest ??
Error
ERROR 504 – GATEWAY TIMEOUT
Why am I seeing this page?
The server that your request has reached is acting as a gateway or proxy to fulfil the request made by your client.
Web Browser => Web Front-End => Web Back-End
This server (Web Front-End) received an invalid response from an upstream (Web Back-End) server it accessed to fulfil the request.
In most cases this will not mean that the upstream server is down, but rather that the upstream server and the gateway/proxy do not agree on the protocol for exchanging data.
This problem is most commonly caused when there is a problem with IP communications between the Web Front and Back-Ends. Before you attempt to resolve this problem you should clear your browser cache completely.
Our support staff will be happy to assist you in resolving this issue. Please contact our Live Support or reply to any Tickets you may have received from our technicians for further assistance.