• Resolved jamesradcliffe

    (@jamesradcliffe)


    I’ve recently changed my site’s hosting package. Despite updating the SMTP settings in General settings of the plugin, I’m still having issues with test emails being sent. Whenever I attempt to send a test email, I get the following error:

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    I’ve also had the error message stating that messages cannot be delivered although this isn’t currently appearing on my site.

    The same settings that I’m currently using for the plugin I’m also using for my email clients which are working correctly.

    I’m just wondering why this may be and if there’s anything you can help me with to resolve this?

    Thanks

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • HI @jamesradcliffe,

    Thanks for reaching out. When you get a chance, could you please setup error logs and share the errors with us? This usually happens due to some plugins or themes not being compatible with WordPress 5.5 which has major changes regarding emails. Please check if you have any updates for all of your plugins/theme and update them.

    Thanks!

    Thread Starter jamesradcliffe

    (@jamesradcliffe)

    Hi Sanjeev,

    Sorry for the delay in getting back to you. I’ve setup error logs on my site but for whatever reason this hasn’t made any difference and no debug.log file is being generated. I’ll look further into this if its required for support but in the meantime I’ve received the following error:

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.5.1 logged this error during the last time it tried to send an email:

    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host.
    Consider running an email test after fixing it.

    As I mentioned, I’m using the exact same settings and logins for other email clients and I have no issues though.

    Thanks

    Hi @jamesradcliffe,

    Thanks for the details. If you’re getting a critical error, the errors should be logged. The email delivery error indicates that the last email sent from your site failed because the plugin could not connect to the SMTP host you’ve specified. If you’re not getting critical error after sending a test email, please share a full error log recorded when you send a test email. Here’s a screenshot for the option to get a full error log. This will give us an idea of what might be going on.

    Thanks!

    Thread Starter jamesradcliffe

    (@jamesradcliffe)

    Hi Sanjeev,

    I can’t seem to find this log anywhere – is it because I’m not a Pro user?

    Hi @jamesradcliffe,

    The SMTP error log is available with a lite version as well. Here’s a screenshot for the option to get a full error log. You’ll only able to see this if email delivery fails due to some error.

    If you’re getting a critical error, you’ll need to look into your site’s debug log. WordPress also sends you an automatic email notification with an error log whenever you get a critical error on your site.

    Thanks!

    Thread Starter jamesradcliffe

    (@jamesradcliffe)

    Morning Sanjeev,

    I’ve managed to produce the following error log:
    “[05-Jan-2021 10:05:55 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Driver/PDOConnection.php:85
    Stack trace:
    #0 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Driver/PDOConnection.php(85): PDO->query(‘SELECT w0_.name…’)
    #1 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2): MailPoet\Doctrine\Driver\PDOConnection->query(‘SELECT w0_.name…’)
    #2 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(2): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery(‘SELECT w0_.name…’, Array, Array, NULL)
    #3 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query.php(2): MailPoetVendor\Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(Object(MailPoet\Doctrine\SerializableConnection), A in /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 2
    [05-Jan-2021 10:12:24 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Driver/PDOConnection.php:85
    Stack trace:
    #0 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Driver/PDOConnection.php(85): PDO->query(‘SELECT w0_.name…’)
    #1 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2): MailPoet\Doctrine\Driver\PDOConnection->query(‘SELECT w0_.name…’)
    #2 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(2): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery(‘SELECT w0_.name…’, Array, Array, NULL)
    #3 /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query.php(2): MailPoetVendor\Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(Object(MailPoet\Doctrine\SerializableConnection), A in /home/pj6hocmzwqty/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 2”

    I hope that this helps

    Hi @jamesradcliffe,

    Thanks for the details. It looks like you’re using the Mailpoet plugin. Mailpoet tends to send emails in its own way and does not use default WordPress wp_mail() to send emails. You might want to deactivate the Mailpoet plugin or consult with their support regarding the issue.

    I hope this helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Critical error following Email Test’ is closed to new replies.