• Resolved paulmc911

    (@paulmc911)


    Hi there – I have access to my site both front and back end, but when I click ‘pages’ on the left menu I get a screen that says 504 Gateway Error.

    I have recently added an affiliate link to one of my pages. Could that be causing the problem?

    Thanks

    Paul

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • 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.

    Thread Starter paulmc911

    (@paulmc911)

    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)

    Thread Starter paulmc911

    (@paulmc911)

    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.

    Thread Starter paulmc911

    (@paulmc911)

    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 6 years, 4 months ago by paulmc911.
    Moderator t-p

    (@t-p)

    Try reviewing this codex for some guidance for increasing memory available for php.

    Thread Starter paulmc911

    (@paulmc911)

    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?

    Thread Starter paulmc911

    (@paulmc911)

    Hostgator are almost impossible to contact but I guess that is my only option left.

    Thread Starter paulmc911

    (@paulmc911)

    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.

    Thread Starter paulmc911

    (@paulmc911)

    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.

    Moderator t-p

    (@t-p)

    Glad to know it ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘504 Gateway Error’ is closed to new replies.