• Resolved Paul

    (@p666james)


    I keep seeing a critical error when my site tries to send an email using this plugin. Below are the details from the email WordPress sent me. In the most recent error, I was creating a new user and it tried to send the user their details.

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, SMTP for AmazonSES – YaySMTP.

    First, visit your website (https://xyz.com/) and check for any visible issues. Next, visit the page where the error was caught (https://xyz.com/wp-admin/user-new.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.0.1
    Active theme: Divi (version 4.17.6)
    Current plugin: SMTP for AmazonSES – YaySMTP (version 1.2)
    PHP version 8.0.21

    Error Details
    =============
    An error of type E_ERROR was caused in line 16 of the file /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/RejectedPromise.php. Error message: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/RejectedPromise.php:16
    Stack trace:
    #0 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/RejectedPromise.php(16): method_exists()
    #1 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/Aws/Handler/GuzzleV6/GuzzleHandler.php(39): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\RejectedPromise->__construct()
    #2 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(164): YaySMTPAmazonSES\Aws3\Aws\Handler\GuzzleV6\GuzzleHandler::YaySMTPAmazonSES\Aws3\Aws\Handler\GuzzleV6\{closure}()
    #3 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(125): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise::callHandler()
    #4 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/TaskQueue.php(44): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise::YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\{closure}()
    #5 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Handler/CurlMultiHandler.php(74): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\TaskQueue->run()
    #6 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Handler/CurlMultiHandler.php(94): YaySMTPAmazonSES\Aws3\GuzzleHttp\Handler\CurlMultiHandler->tick()
    #7 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(200): YaySMTPAmazonSES\Aws3\GuzzleHttp\Handler\CurlMultiHandler->execute()
    #8 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(183): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->invokeWaitFn()
    #9 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(219): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->waitIfPending()
    #10 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(185): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->invokeWaitList()
    #11 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(219): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->waitIfPending()
    #12 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(185): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->invokeWaitList()
    #13 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/GuzzleHttp/Promise/Promise.php(51): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->waitIfPending()
    #14 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/Aws/AwsClientTrait.php(43): YaySMTPAmazonSES\Aws3\GuzzleHttp\Promise\Promise->wait()
    #15 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/vendor_amazon/Aws/AwsClientTrait.php(56): YaySMTPAmazonSES\Aws3\Aws\AwsClient->execute()
    #16 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/includes/Controller/AmazonSESController.php(63): YaySMTPAmazonSES\Aws3\Aws\AwsClient->__call()
    #17 /var/www/vhosts/xyz.com/httpdocs/wp-content/plugins/smtp-amazon-ses/includes/PhpMailerExtends.php(63): YaySMTPAmazonSES\Controller\AmazonSESController->send()
    #18 /var/www/vhosts/xyz.com/httpdocs/wp-includes/pluggable.php(548): YaySMTPAmazonSES\PhpMailerExtends->send()
    #19 /var/www/vhosts/xyz.com/httpdocs/wp-includes/pluggable.php(2211): wp_mail()
    #20 /var/www/vhosts/xyz.com/httpdocs/wp-includes/user.php(3418): wp_new_user_notification()
    #21 /var/www/vhosts/xyz.com/httpdocs/wp-includes/class-wp-hook.php(307): wp_send_new_user_notifications()
    #22 /var/www/vhosts/xyz.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #23 /var/www/vhosts/xyz.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action()
    #24 /var/www/vhosts/xyz.com/httpdocs/wp-admin/includes/user.php(241): do_action()
    #25 /var/www/vhosts/xyz.com/httpdocs/wp-admin/user-new.php(195): edit_user()
    #26 {main}
    thrown`

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Bruce

    (@ninjateamwp)

    Hi @p666james ,

    Thanks for coming today!
    Please allow me to check this with the dev unit and feed you back tomorrow.

    Kind regards,
    -Bruce-

    Hi @p666james,

    Thanks for your patience.
    Everything works fine under my test environment. I have tested with PHP version 8.0.8 and 8.1 ( PHP version > 8 ), WordPress version 6.0.1.

    Thank you.

    Cheers,
    Rose

    Hi @p666james,

    We can teamview to check and fix this issue.
    Please share with us the information of the TeamViewer via https://yaycommerce.com/support/

    We’re looking forward to hearing from you.

    Cheers,
    Rose

    • This reply was modified 2 years, 7 months ago by Rose.
    • This reply was modified 2 years, 7 months ago by Rose.
    Thread Starter Paul

    (@p666james)

    Hi,

    I have switched to using “WP Mail SMTP Lite” and configured it to work using “other smtp” and Amazon SES SMTP and all is now good – I have tested a variety of emails and all are sending correctly.

    I do not feel comfortable sharing my site with you via TeamViewer, especially when I have provided logs that detail where the error is originating.

    Regards

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @p666james ,

    Its good to know you found a solution that works.
    If you feel like using our plugin again, you are most welcome anytime ??

    Kind regards,
    -Bruce-

    You are using TLS (port 587) but specifying SSL port (465). Change the port to 587 and try.

    In fact, the tutorial you are following specifically says:

    SMTP Port: Enter 587 (if during testing you encounter errors then try port 25 or 465. The error EOF caught while checking if connected is a good indication that the port number needs changing.

    [“Port”]=>
    string(3) “465”
    [“Helo”]=>
    string(0) “”
    [“SMTPSecure”]=>
    string(3) “tls”
    [“SMTPAutoTLS”]=>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress caught an error with one of your plugins, SMTP for AmazonSES – YaySMTP’ is closed to new replies.