• Resolved hajekm15

    (@hajekm15)


    Hi guys,

    I have tried to solve the problems on my own, unfortunately with no luck. The issue is the following:

    Creating an appointment from the front-end works perfectly even with GCal sync. However, when I delete the appointment from the front end I get:

    [24-Mar-2017 12:03:00 UTC] [Appointments+] [2017-03-24 12:03:00] DEBUG: OAuth2 access token expired

    [24-Mar-2017 12:03:00 UTC] [Appointments+] [2017-03-24 12:03:00] ERROR: The OAuth 2.0 access token has expired, and a refresh token is not available. Refresh tokens are not returned for responses that were auto-approved.

    Appointments version: 2.0.5

    I tried deleting and recreating the calendar and even the OAuth authentication in Google Console.

    Furthermore, when I want to batch export the appointments to GCal through the Gcal tab in the Appointments+ settings, I get a 404 error on the response from Google. Manually visiting the generated link shows that the daily API limit has been reached. However, checking the quotas in Developer Console shows that I am nowhere near the limit.

    Thank you very much for your time.

    Marek

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @marek, hope you are doing well!

    This error is related to Google OAuth access token. APIs have limited lifetime, you can check this with this link:
    https://www.googleapis.com/oauth2/v1/tokeninfo?access_token={accessToken}

    Please create reset the current Api credentilas new credentials at Google Developer Console Projects.

    – Locate the project the is already created,
    – Click on “Credentials”
    – And then “OAuth Client ID”
    – Select “Other” Application type
    – Copy the new client ID and client secret
    – And Authenticate new credentials

    Let me know how it goes!

    Cheers,
    Nastia

    Thread Starter hajekm15

    (@hajekm15)

    Hello Nastia,

    thank you for your answer. I tried to recreate the credentials as you specified, however, the issue still remains unchanged.

    Marek

    • This reply was modified 7 years, 11 months ago by hajekm15.
    Plugin Contributor Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello Marek,

    I can see that we had only one report about similar issue, however person that reported that to us never got back and we could not investigate that.

    Could you check if there will be the same issue with all other plugins disabled?

    Also can you tell me if to get authentication code you switch between different gmail accounts to get it? Let us know.

    kind regards,
    Kasia

    Thread Starter hajekm15

    (@hajekm15)

    Hello Kasia,

    Thank you for your answer. I checked with all other plugins disabled, issue still persists.

    I do not switch accounts to get the authentication code.

    Best Regards,

    Marek

    Plugin Contributor Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @hajekm15,

    Could you check one more thing – can you enable debug mode in WordPress and then try again delete appointment to generate that error. It should generate more errors in debug.log file. To enable debug, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
    define('WP_DEBUG', true);
    In order to enable the error logging to a file on the server you need to add yet one more similar line:

    define( 'WP_DEBUG_LOG', true );

    In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

    Depending on whether you want your errors to be only logged or also displayed on the screen you should also have this line there, immediately after the line mentioned above:

    define( 'WP_DEBUG_DISPLAY', false );

    The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.

    I would need then to see content of the debug.log file – so please upload it to service like a Dropbox and paste link here.

    kind regards
    Kasia

    Thread Starter hajekm15

    (@hajekm15)

    Hello Kasia,

    thank you for your answer. Here is the log file https://pastebin.com/uvW2PUdc

    Best Regards,

    Marek

    Plugin Contributor Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @hajekm15,

    Thanks for the debug log. I will ask our developer if there is something that would point us to right direction why this happening on your site.
    I double checked on my site if I could replicate the issue, but non of those errors shows up.
    I could try with the same setup you have on your site for Appointments. If you go to this url wp-admin/admin.php?page=app_import_export_settings you can export settings of the appointments.
    I could then import it and check again on my site.

    kind regards,
    Kasia

    Thread Starter hajekm15

    (@hajekm15)

    Hello Kasia,

    sorry for the long delay. Here are the settings https://pastebin.com/THSPK5aL

    I have noticed that, somehow magically, new appointments created by users are being synced to GCal now. I have no clue as to why that happens. However, the authentication code still resets and Appointments ask me for a new one.

    EDIT: I found that there is a new version of Appointments Lite available. I tried to upgrade, but I was told I needed a membership at WPMU DEV. I created an account, installed the Dashboard plugin in hope of updating. However, I cannot create an account without supplying my credit card number. Am I doing something wrong?

    Best Regards,

    Marek

    • This reply was modified 7 years, 10 months ago by hajekm15.
    Plugin Contributor Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello Marek,

    Thank you for the settings. I will try to replicate the issue with those. As for the update: we found that one of the Appointment version introduced bug and shows incorrectly that there is update and WPMU DEV Dashboard plugin is necessary. Our developer is working on this, so right now try updating manually plugin to latest version (2.1.0.1).

    Or you can remove “wdp_un_updates_available” row from the table wp_options in database and that should remove that message you need the WPMUD DEV.

    kind regards,
    Kasia

    I have a similar issue. Did you ever fix this issue?

    Plugin Contributor Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @kirzman,

    Which issue do you have? Its better to create new thread about issue as they might seem similar or related but they might be not. Please see forum regulations https://make.www.ads-software.com/support/handbook/forum-welcome/#search-before-posting

    kind regards,
    Kasia

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘GCal OAuth token expired’ is closed to new replies.