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/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

    PHP

    1. Perch Runway: 3.1.4, PHP: 7.2.15, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $, with PDO
    2. Server OS: Linux, cgi-fcgi
    3. Installed apps: content (3.1.4), assets (3.1.4), categories (3.1.4), perch_blog (5.6.1), perch_events (1.9.5), perch_forms (1.12), chirp_seo (1.4.1), perch_mailchimp (3.1), pipit_sharing (1.1.0)
    4. App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_events', 'perch_forms', 'pipit_sharing', 'perch_mailchimp', 'chirp_seo', ];
    5. PERCH_LOGINPATH: /perch
    6. PERCH_PATH: /var/www/vhosts/###.gov.uk/httpdocs/public/perch
    7. PERCH_CORE: /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core
    8. PERCH_RESFILEPATH: /var/www/vhosts/###.gov.uk/httpdocs/public/perch/resources
    9. Image manipulation: GD Imagick
    10. PHP limits: Max upload 16M, Max POST 16M, Memory: 256M, Total max file upload: 16M
    11. F1: 3b606135b33e6a102526838f4152a807
    12. Resource folder writeable: Yes
    13. SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
    14. REQUEST_URI: /perch/core/settings/diagnostics/
    15. DOCUMENT_ROOT: /var/www/vhosts/###.gov.uk/httpdocs/public
    16. HTTP_HOST: www.###.gov.uk


    As the error is referencing core files I wondered if something changed upon my recent update to Perch Runway 3.1.4?


    thanks

    iosman