• Hi there. I’m getting this error when I try to connect with my gb account

    Could not verify Google access token: Cannot handle token prior to 2022-06-23 T12:52:58+0000. Is the date & time on your server set correctly?

    I already check with my hosting provider and they say that date+time is set correctly
    any idea about how can I fix this?
    thanks

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Koen Reus

    (@koen12344)

    Hi @cheloper, have you tried connecting multiple times? I have not seen this happen before. I’m thinking it may be a (temporary) connectivity issue. I tried to open your website and it is loading very slowly.

    Can you try connecting again, note down the time in the error, and at the same time go to Settings > General in your WordPress dash and note down the “Universal time” (in the timezone section)

    ~ Koen

    Thread Starter cheloper

    (@cheloper)

    Hi Koen
    I already asked hosting provider about connectivity issues
    anyway this issue were there for a while. I already test connection in several days/hours with the same google bug.

    I just tested using local timezone (Buenos Aires – Argentina), with different date/tome combinations. It just ends up in the same autentication error.

    I will check another options. thx

    Plugin Contributor Koen Reus

    (@koen12344)

    Hi @cheloper,

    So did the plugin work before and this suddenly start happening? Or has it never worked?

    The timezone shouldn’t really a difference, there is just a 20 second margin for error, so if your server clock is running more than 20 seconds late or early, or the period between completing the Google account verification and your server verifying the access token is taking too long, it will give you that error.

    So if it takes very long to get back to your website after authorizing your Google account, that could be the cause.

    ~ Koen

    Thread Starter cheloper

    (@cheloper)

    makes sense. This hosting is the classic “not cheap – not good” haha. It was working til plugin update (after that I just cannot connect anymore)
    I’m cleaning sume stuff in teh site and will try again soon. thanks dude 4 your time

    Plugin Contributor Koen Reus

    (@koen12344)

    Yeah, since version 3.0 the plugin uses a different (theoretically more reliable ??) method to connect to Google.

    If you’re comfortable editing a plugin file you could try increasing the error margin and see if that fixes it.

    In post-to-google-my-business/src/GoogleUserManager.php

    On line 89: JWT::$leeway = 20;

    Try changing it to a higher value like 60.

    ~ Koen

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Could not verify Google access token’ is closed to new replies.