Replies: 0
After updating email stopped sending. Trying to send a test email from the WP MAIL SMTP panel gives this error “There Has Been a Critical Error on Your Website”. When I enable debugging, this is what shows up:
[12-Nov-2021 16:18:29 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /home/———-/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php:157
Stack trace:
#0 /home/———-/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(157): method_exists()
#1 /home/———-/public_html/wp-content/plugins/wp-mail-smtp/src/MailCatcherV6.php(167): WPMailSMTP\Providers\Gmail\Mailer->is_email_sent()
#2 /home/———-/public_html/wp-includes/pluggable.php(542): WPMailSMTP\MailCatcherV6->send()
#3 /home/———-/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php(314): wp_mail()
#4 /home/———-/public_html/wp-content/plugins/wp-mail-smtp/src/Admin/ParentPageAbstract.php(265): WPMailSMTP\Admin\Pages\TestTab->process_post()
#5 /home/———-/ublic_html/wp-includes/class-wp-hook.php(303): WPMailSMTP\Admin\ParentPageAbstract->process_actions()
#6 /home/———-/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#7 /home/———-/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
#8 /home/———-/public_html/wp-admin/admin.php(175): do_action()
#9 {main}
thrown in /home/———-/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php on line 157
PHP version is 8.0 as it has been for some time, WordPress version is 5.8.2 and has been since the 10th, but this issue popped up right after the update to WP MAIL SMTP 3.2.0