Support » Plugin: WP Mail SMTP by WPForms » Problem while retrieving Auth for gmail

  • Resolved Fer_SD

    (@pamparrillo)


    Hi there,

    I have been using this plugin for a long time (Gmail with SMTP). A week ago, I noticed that emails from another forms plugin were not sent. Then, I tried the build-in Gmail API service. I accurately followed all the steps of the guide in order to setup the API. Unfortunately, the following message is now pinned on the top of my wp admin area:

    There was a problem while retrieving Auth for gmail: Could not json decode the token

    I repeated the whole process several times, even creating different projects, but I was not able to fix the problem. Besides, the plugin “General” tab is getting super slow unless I switch off my Gmail connection on the plugin settings. I cannot send a test email too, a critical error appears when I try it (“There was a critical error on your website. Please check your site administrator email inbox for instructions”).

    Plugin version: 2.1.1
    WP version: 5.4.2
    PHP version: 7.2.26

    Any ideas?

    Thanks in advance.

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

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hi,

    I wanted to jump on and say that I have the exact problem as described above with my Gmail mailer. When sending a test email I get this message.

    “There was a critical error on your website. Please check your site administrator email inbox for instructions”

    And this message appears at the top of my dashboard:
    “There was a problem while retrieving Auth for gmail: Could not json decode the token”

    The plugin worked great for years up until a couple of weeks ago. I also tried recreating the Google API credentials a few times.

    Plugin Version: v2.1.1
    WP Version: 5.4.2
    PHP Version: 5.6

    Same Delivery Error Message. However the test email arrives fine.

    Plugin Version: v2.1.1
    WP Version: 5.4.2
    PHP Version: 7.3.18

    Thread Starter Fer_SD

    (@pamparrillo)

    Figured it out. Searching on this forum I found this recent post . As said in the hread, I disabled plugin “Simple Calendar” and the message disappeared. It doesn’t seem to be the best workaround, though.

    In any case, I’m experiencing a huge delay on sending the test email. This email indeed arrives, but it takes more than 45 seconds. I believe there should be a problem related to the API, somehow.

    Regards,

    Plugin Support Sanjeev Aryal

    (@sanzeeb3)

    Hi @pamparrillo – I’m glad you sorted it out. Unfortunately, there’s a conflict with the Google API between Simple Calendar and WP Mail SMTP causing the error. We are looking to avoid such conflict in the future.

    @elenasaygo, @dplj1230 When you get a chance, could you please confirm that you’ve Simple Calendar or other similar plugin installed?

    Thanks!

    I have the same problem, we are not running Simple Calendar but we are running the following plugins – all by Modern Tribe:

    Events Calendar
    Events Calendar Pro
    Event Tickets
    Event Ticket Plus

    Removing these is not possible.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @pinkgerbil,

    is this error popping up each time you send an email from your site?

    Does it occur when you send the Email Test from our plugin settings? Or does it occur when a specific email is being sent?

    I’ve looked at the free versions of the plugins you listed, but I don’t see any Google API integration code in them. Could you please list all other plugins your site is using?

    Take care!

    I have the same problem but I haven’t installed Simple Calendar. When I send a test email it works and the message disappears but then it appears again.

    Hi – I’m having this same issue.

    When logging into the WP admin area I see this pinned to the top

    “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.”

    When I go to WP Mail SMTP settings, I send a test email and this goes through just fine. The message goes away and then will reappear when I log back in a day later.

    I’m not running Simple Calendar but have quite a few other plugins (things have been running smoothly for many months without issue).

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    this issue is not caused only by Simple Calendar, there are other plugins that use an older Google API library that causes this issue. Please read this post for further explanation.

    Take care!

    Hi @capuderg

    Thanks for the reply.

    other plugins that use an older Google API library that causes this issue

    Do you mean that we should look at somehow updating/refreshing a Google API key in other plugins? Or is the issue with the plugins themselves?

    Thanks 🙂

    In that case can we roll back the plugin so it uses the same API as al other plugins?

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    @smes – no, the problem is in the plugin code, the Google API integration code is outdated and so it does not play well with our plugin, which uses new code.

    @pinkgerbil – we haven’t used that old google API library (if ever), so that’s not possible.

    Take care!

    IF that’s the case, why is it suddenly an issue now if you’ve always used this API?

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    most likely this issue was present for a long time, but we fixed the error reporting for some mailers (Gmail included) and now the error shows up.

    Take care!

    Can fix this problem asap please?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Problem while retrieving Auth for gmail’ is closed to new replies.