Testing Email causes a 504 Gateway Time-out error

  • Hello,


    I seem to be having issues with a site sending emails. Upon testing under Settings / Email. If I try to send a test, the site times out with a 504 Gateway Time-out error and the following is logged in the server log.

    Code: Server Log

    1. Error 500 POST /perch/core/settings/email/ HTTP/1.0 https://www.###.gov.uk/perch/core/settings/email/ Apache SSL/TLS access
    2. Warning mod_fcgid: read data timeout in 60 seconds, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    3. Error Premature end of script headers: index.php, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    4. Error 24612#0: *204846 upstream timed out (110: Connection timed out) while reading response header from upstream nginx error

    I also commented out their SMTP settings and tried again. This results in Runway telling me "Invalid address: (setFrom) PERCH_EMAIL_FROM". And the server logs:

    Code: Server Log

    1. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM_NAME - assumed 'PERCH_EMAIL_FROM_NAME' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/ https://tweakboxx-app.com
      https://tweakbox-app.net https://tweakboxx.net public/perch/core/settings/modes/email.pre.php on line 27, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    2. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM - assumed 'PERCH_EMAIL_FROM' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core/settings/modes/email.pre.php on line 28, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error

    thanks

    iosman

  • drewm

    Approved the thread.