• Resolved bryanhiggs

    (@bryanhiggs)


    I have gone through the extremely complex Google Calendar API setup, and it worked for a development website (https://uuatheme.uucm.org/full-calendar/).

    I then installed the WP FullCalendar and Private Google Calendars plugins to my website (https://uucm.org), and proceeded to try to get the calendar to display on that site.

    On the Google Developers Console, in the Client ID for Web application. I added an additional Authorized JavaScript origins URI (https://uucm.org), and an additional Authorized redirect URI (https://uucm.org/wp-admin/options-general.php?page=pgc), as documented in the Private Google Calendars plugin settings page.

    I downloaded the new JSON file, and uploaded it to provide the Client secret in the Private Google Calendars plugin settings. It succeeded, and now the setting display the private calendars, as does the settings on the https://uuatheme.uucm.org website. However, I note two differences:

    1) At the top of the PGC settings page, it says “Your refresh token is missing!

    This can only be solved by manually revoking this plugin’s access in the Google Permissions page and remove all plugin data.” I do not understand what this means, nor what to do when I follow the link given.

    2) At the bottom of the PGC settings page on the https://uuatheme.uucm.org website, below the “Save Settings” button it says:

    Update calendars
    Use this when you add or remove calendars in your Google account.

    Verify
    Verify if have setup everything correctly.

    Cache
    Remove cached calendar events.

    Cache is empty.
    Revoke access
    Revoke this plugins access to your private calendars.

    Remove plugin data
    Removes all saved plugin data.
    If you have authorized this plugin access to your calendars, manually revoke access on the Google Permissions page.

    None of this is present on the PGC settings page on the https://uucm.org website.

    When I include the Gutenberg block for PGC on the specified page on https://uucm.org/full-calendar/, the calendar is empty, and I see the red error indicator.

    I’ve looked in the Google Chrome DevTools Console, but I am unable to see anything that helps. me diagnose this problem.

    I would much appreciate it if someone could give me any ideas on. how this problem can be solved!

    Thank you, in advance.

    Bryan

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author michielve

    (@michielve)

    Hi,

    The creator of this plugin here.

    You can better setup 2 separate Google API projects instead of using 1 for both sites (development and production website). This is because the refresh token is only given once by Google. Because you used 1 Google API project for both websites, this refresh token has been given to the first site you used this plugin on, your development website.

    So to make this work, I would advice to:
    – Delete your plugin data first from your production site by using “Remove plugin data”.
    – Create a new Googele API project just for your production site.
    – Upload the JSON file
    – Now it should work

    I fully agree with you that setting up a Google API project is extremely difficult!

    Beste wishes,
    Michiel

    Thread Starter bryanhiggs

    (@bryanhiggs)

    Thank you for your prompt and helpful response!

    I did as you suggested, and despite a couple of glitches due to the unnecessary complexity of the Google Calendar API interface (where I often wander in the dark, trying to figure out what went wrong “this time”…), I managed to get it working on https://uucm.org/full-calendar/.

    It does make one wonder, given what you said about the one-time only refresh token, why they allow multiple URIs in the first place.

    The Google API project interface is not merely extremely difficult; it’s arcane in the extreme, with virtually no guidance that I’ve seen about why the various pieces are required. Too much documentation these days covers only the what, and not enough the why.

    I appreciate your help!

    Bryan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting Red Error indicator, but don’t know why’ is closed to new replies.