Replies: 0
When using this plugin along with the Simple Calendar plugin, I get the following Fatal Error when I attempt to send a Test Email using the Gmail Mailer:
Warning: json_decode() expects parameter 1 to be string, array given in /www/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Auth/OAuth2.php on line 184
Fatal error: Uncaught Google_Auth_Exception: Could not json decode the token in /www/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Auth/OAuth2.php:186
Stack trace:
#0 /www/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Client.php(218): Google_Auth_OAuth2->setAccessToken(NULL)
#1 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(120): Google_Client->setAccessToken(Array)
#2 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(37): WPMailSMTP\Providers\Gmail\Auth->get_client()
#3 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(79): WPMailSMTP\Providers\Gmail\Auth->__construct()
#4 /www/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php(122): WPMailSMTP\Providers\Gmail\Mailer->send()
#5 /www/wp-includes/pluggable.php(488): WPMailSMTP\MailCatcher->send()
#6 /www/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php(172): wp_mail(Array, 'WP Mail SMTP: H...', '\t\t
I see others are also having a similar conflict issue:
https://wordpress.org/support/topic/500-error-on-email-test-using-gmail-as-a-mailer/
I also posted about this on their Github repo:
https://github.com/sureswiftcapital/Simple-Calendar/issues/328