Moderator
t-p
(@t-p)
– 504 error is likely a server related issue.
– Therefore, ask your host why the 504 is occurring.
– Your error_log file may also explain it. So please check the error logs on your server. If you need help locating them, ask your hosting provider to help you with that.
Ok thanks t-p. I will get on to hostgator then and hopefully get a response. Does that make sense even if it’s just viewing my pages? Because everything else on my site works fine.
Moderator
t-p
(@t-p)
Ok so I have found an error and it reads as follows:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 229823415 bytes) in /home4/*****/public_html/iceatrail.com/wp-includes/class-phpmailer.php on line 2704
Help! I have read the guide you suggested which was really helpful but I still don’t know what to do with the information I’ve now got. As I said, everything on my site works in both front and back end, except for when I click ‘pages’ on the dashboard menu. That is when the 504 Error shows.
And this is the section of class-phpmailer.php that it refers to. The line in question is $file_buffer = file_get_contents($path);
}
$file_buffer = file_get_contents($path);
$file_buffer = $this->encodeString($file_buffer, $encoding);
if ($magic_quotes) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime($magic_quotes);
} else {
ini_set('magic_quotes_runtime', $magic_quotes);
}
-
This reply was modified 7 years, 6 months ago by
paulmc911.
Moderator
t-p
(@t-p)
Try reviewing this codex for some guidance for increasing memory available for php.
Ok I’ve done that and it’s cleared my fatal error (which wasn’t causing any visible impact anyway) but I still have the 504 gateway error when I try to open my pages. I can create new pages but I can’t get access to any of my existing pages!
Moderator
t-p
(@t-p)
contact your host and asking them why you are having 504 on their server?
Hostgator are almost impossible to contact but I guess that is my only option left.
Right I take that back they have got straight onto me in a live chat and are currently reviewing. Mea culpa Hostgator. However something I have just discovered: logging into my dashboard on my phone, I CAN access my pages with no 504 error! What does that mean?! I’m sorry t-p I don’t expect you to be psychic or a magician but compared to me you are so if you have any thoughts I would be most grateful.
Moderator
t-p
(@t-p)
You said they got back to you in chat.
Please discuss this with your hosting provider.
Let them figuring it out why their server is throwing this error.
Yeah I have. So in case you’re interested it was all my end 🙁 I just had to clear my browser cache and the problem was solved. So simple but there we go…
They were great in the end and I must say contact with them was seamless.
Thanks for your time t-p I shall bother you no more.