• Resolved webmarketguy

    (@webmarketguy)


    hey
    try to create a site use bank transfer checkout
    but always show Bad Gateway message when check out
    please help

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,
    Usually, a timeout error appears due to lower value of the PHP maximum execution time. That’s the maximum time for which, the one process can be performed and If the process does not execute in that set of time, the server “cuts” It in order to continue with the next process.

    The solution here is to insert this in your .htaccess file of the website:

    <IfModule mod_dtimeout.c>
    <Files ~ “.php”>
    SetEnvIf Request_URI “index.php” DynamicTimeout=600
    SetEnvIf Request_URI “themes.php” DynamicTimeout=600
    SetEnvIf Request_URI “wp-admin” DynamicTimeout=600
    </Files>
    </IfModule>

    This above is a way to dynamically increase the PHP timeout, because many hosting servers limit the execution time on shared servers to 30,60,90 or 120 seconds, which in many cases isn’t as much as the PHP process requires.

    Please, clear your browser cache and verify the results on your end, after the rules above are applied on the top of your .htaccess.
    The .htaccess file is usually located in the root folder of the website.

    Thread Starter webmarketguy

    (@webmarketguy)

    @zamunda68
    Thank you ! fix the issue 99%
    After setting the the time out to 600 secs
    then the check out process takes around 50 secs to submitted a successful order
    any idea to make this faster?
    The server is vultr 10$ VPS
    Seems enough for a simple B2B website ?
    Thanks for your help

    Hey,

    I am happy to hear this worked out for you, friend! ??

    Usually, the PHP max. execution time is set to 20 sec. (at most of the web-hosting, shared servers). That’s why the 600 seconds dynamic timeout limit solves the issue.

    About the delay in the submitting of the order – my personal advice will be to ask the hosting comapny’s technical support to check the MySQL server log for slower MySQL queries. A slower MySQL query is the one, which loads for more than 1 second.

    • This reply was modified 6 years, 9 months ago by Marin Petkov.
    • This reply was modified 6 years, 9 months ago by Marin Petkov.
    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    @webmarketguy,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bank transfer checkout Bad Gateway’ is closed to new replies.