EMAIL DELIVERY ERROR
-
Hi Support,
The plugin was working great until the latest WordPress update.
We use Gmail and have followed the setup instructions to a tee.
Now we are receiving the following dashboard message regarding the plugin:“EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.1.1 logged this error during the last time it tried to send an email:
There was a problem while retrieving Auth for gmail: Could not json decode the token
Please review your WP Mail SMTP settings in plugin admin area. Consider running an email test after fixing it.”We have tried removing the connection and then re-establishing it but after a day it reappears.
Any ideas on how to resolve this?
Cheers
MarkThe page I need help with: [log in to see the link]
-
Hi Mark,
this error message usually comes up, when there is a plugin conflict. Some other plugin is probably also using the Google API library, but it’s using the older version of the library which causes issues.
Are you maybe using the “Simple Calendar” plugin? Or any other plugin that also allows you Google integrations. If you are not sure which one that might be, you can post a list of all plugins your site is using and we can take a look.
Take care!
Hi Gregor,
I have no idea of which of these plugins could be causing this as we didn’t add any new ones in recent times:
Active Plugins
ACF Content Analysis for Yoast SEO – 2.4.1 By Thomas Kr?ftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast
Advanced Custom Fields PRO – 5.8.11 By Elliot Condon
Advanced Local Pickup for WooCommerce – 1.1.1 By zorem
Advanced Shipment Tracking for WooCommerce – 2.9.9.6 By zorem
Amount Left for Free Shipping for WooCommerce – 1.4.7 By Algoritmika Ltd
Autoptimize – 2.7.3 By Frank Goossens (futtta)
Back In Stock Notifier for WooCommerce Add-on: Custom CSS – 1.3 By codewoogeek
Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro – 1.9.9 By codewoogeek
Braintree For WooCommerce – 3.1.10 By Payment Plugins, [email protected]
Conditional Payments for WooCommerce – 2.1.5 By Lauri Karisola / WooElements.com
Direct Deposit for WooCommerce – 1.1 By Melissa Freeman
Duplicate Page – 4.2 By mndpsingh287
Elementor – 2.9.12 By Elementor.com
Elementor Pro – 2.10.0 By Elementor.com
Element Pack – 5.0.1 By BdThemes
Facebook for WooCommerce – 1.11.4 By Facebook
FileBird – 3.5 By Ninja Team
Flying Pages by WP Speed Matters – 2.4.1 By Gijo Varghese
IgniteWoo Updater – 3.0 By IgniteWoo.com
JetBlog For Elementor – 2.2.8 By Crocoblock
JetElements For Elementor – 2.2.14 By Crocoblock
JetEngine – 2.3.6 By Crocoblock
JetTabs For Elementor – 2.1.6 By Crocoblock
JetWooBuilder For Elementor – 1.6.3 By Crocoblock
Jupiter X Core – 1.16.1 By Artbees
Kadence WooCommerce Email Designer – 1.4.1 By Kadence WP
Mailchimp for WooCommerce – 2.4.0 By Mailchimp
Profile Builder – 3.1.9 By Cozmoslabs
Raven – 1.9.5 By Artbees
Simple 301 Redirects – 1.07 By Scott Nellé
Smart Slider 3 Pro – 3.4.1.8 By Nextend
Smash Balloon Instagram Feed – 2.4.3 By Smash Balloon
Smush – 3.6.3 By WPMU DEV
Temporary Login Without Password – 1.6.2 By StoreApps
Theme My Login – 7.1 By Theme My Login
UpdraftPlus – Backup/Restore – 1.16.25 By UpdraftPlus.Com, DavidAnderson
User Menus – 1.2.3 By Code Atlantic
User Registration – 1.8.4 By WPEverest
User Registration Conditional Logic – 1.1.1 By WPEverest
User Registration Customize My Account – 1.0.0 By WPEverest
User Registration MailChimp – 1.1.1 By WPEverest
User Registration Multi-Part – 1.0.0 By WPEverest
User Registration Style Customizer – 1.0.1 By WPEverest
User Registration WooCommerce – 1.1.6 By WPEverest
WooCommerce – 4.2.0 By Automattic
WooCommerce Advanced Shipping – 1.0.14 By Jeroen Sormani
WooCommerce Dynamic Pricing & Discounts – 2.3.8 By RightPress
WooCommerce PDF Invoices & Packing Slips – 2.5.1 By Ewout Fernhout
WooCommerce Side Cart Premium – 2.3 By XootiX
WooCommerce Smart Coupons – 4.7.6 By StoreApps
WooCommerce TM Extra Product Options – 5.0.12.1 By themeComplete
WooCommerce TM Extra Product Options Weight addon – 1.0.4 By themecomplete
WooCommerce Wholesale Pro Suite – 3.0.31 By IgniteWoo.com
WP File Manager – 6.4 By mndpsingh287
WP Mail SMTP – 2.1.1 By WPForms
YITH WooCommerce Wishlist – 3.0.11 By YITH
Yoast SEO – 14.3 By Team YoastAny help would be appreciated.
Cheers
MarkHi, I just performed an UpdraftPlus backup and noticed this error in the log recorded by the plugin.
PHP event: code E_WARNING: json_decode() expects parameter 1 to be string, array given (line 177, wp-content/plugins/updraftplus/includes/Google/Auth/OAuth2.php) (Jun 16 20:38:12)
But we have had UpdraftPlus working in conjunction with WP Mail SMTP previously without any issues.
Cheers
MarkHi Mark,
do you have UpdraftPlus configured with Google in some way (to sync the backups or something)?
This error that you get: “There was a problem while retrieving Auth for gmail: Could not json decode the token”, do you get it each time you send an email? If you send an Email Test in our plugin’s settings does this error occur?
Maybe it occurs just on specific emails…
Do you have UpdraftPlus configured to send you emails when backups are created?
Take care!
Hi, I have the same issue. Git the same dashboard message.
I do use UpdraftPlus and it is configured to use Google Drive as the remote storage.
Any idea of how to solve the message:MAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.1.1 logged this error during the last time it tried to send an email:
There was a problem while retrieving Auth for gmail: Could not json decode the token
Please review your WP Mail SMTP settings in plugin admin area. Consider running an email test after fixing it.Thanks a lot
Hi Gregor,
The error is persistent in the dashboard!
I have tested several emails and they are being sent. But it is a concern that the error persists given we haven’t changed anything recently and have been using UpdraftPlus for more than a year now without any errors.So would really like to get to the bottom of this for piece of mind.
Cheers
MarkHi Mark,
In version 2.1.0 we fixed the debug error not showing for some mailers (Gmail included).
So, what I think is happening is that this error was present for the UpdraftPlus email notification for a long time, but it is only now showing up because we fixed the error display.
UpdraftPlus or any other plugin that is using outdated Google API library code is causing issues for our plugin’s Gmail mailer. We are always trying to use the latest versions of libraries.
We are working on eliminating these 3rd-party library conflicts in one of our future releases, but I can’t give you an ETA yet.
I’ll try to update this post once the plugin update with this fix will be released.
Take care!
Hi Gregor,
Could this be the problem now also being reported by WP Mail SMTP plugin as listed below, it sort of coincides with your recent update?
“EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.1.1 logged this error during the last time it tried to send an email:
There was a problem while retrieving Auth for gmail: Could not json decode the token
Please review your WP Mail SMTP settings in plugin admin area. Consider running an email test after fixing it.”Cheers
MarkHi,
To add further, we have stopped receiving backup reports by email as well.
Cheers
MarkHello
I am receiving the same error notice, and I do use Updraft Plus to back up to G-Drive. Do I understand correctly that we must wait for another WP Mail SMTP update before this error notice is fixed?
Many thanks, Anne
Hi Anne,
That is what I believe as well.
Cheers
MarkHi Mark and Anne,
yes, you are correct. We are working on a solution to this problem and it will be available in one of the next plugin updates. We don’t have an exact ETA yet.
There is simply nothing we can do at this time if another plugin is using the same 3rd party library, but an older version of it. Their older library gets loaded first and breaks the functionality of sending Gmail emails from our plugin.
This is not just a problem from UpdraftPlus, there are many other plugins like that. “Simple calendar” is one that we experienced the same issues with as well.
As I understand, the UpdraftPlus backups should still be uploaded to your Google account and everything should function OK. The only thing that is failing is the notification email from UpdraftPlus. Right?
Take care!
Plugins we use
Duplicate Post
Event Tickets
Event Tickets Plus
Event Tickets/Eventbrite Extension: Show Cost Field
Fusion Builder
Fusion Core
Gravity Forms
Image Widget
Perfect Pullquotes
PWA
Schema – All In One Schema Rich Snippets
The Events Calendar
The Events Calendar PRO
UpdraftPlus – Backup/Restore
WP Mail SMTPHi @pinkgerbil,
do you have UpdraftPlus configured to sync the backups to your Google account?
It looks like the same issue that the above users have.
Take care!
Yes we do. Does this mean our regular contact form will not work or just the notification from updraft?
- The topic ‘EMAIL DELIVERY ERROR’ is closed to new replies.