Okay
  Public Ticket #2424865
Google sync
Closed

Comments

  • Elisabeth Kauffman started the conversation

    I went through the instructions to configure google calendar settings, but I'm hitting a snag with Google verifying my property so that I can sign in and sync. Google can't see the TXT code it asked me to include. It's been days, and I've tried a couple of different times/ways of verifying. I have a feeling you're going to tell me to take it up with Google, but I was wondering if others have had that trouble? Part of the reason I purchased this software is that it said it could sync with my Google calendar.

  • [deleted] replied

    Hello Elisabeth Kauffman, 

    Thank you for your purchase. 

    Sorry, I can't quite get on what step do you get this issue with the Google sync. We haven't had such complaint about the Google sync so far. Could you please tell me have you followed the instructions for the Google sync in our documentation - https://wpamelia.com/configuring-google-calendar/ and on which step you have this issue? If it is something regarding not being able to create the project in Google even though you followed everything , you would probably need to check this out with Google.

  • Elisabeth Kauffman replied

    I went through these details to get the Client ID Client Secret https://wpamelia.com/configuring-google-calendar/ All just fine. Get to this screen on the employee setup

    "This App Isn't Verified"

    And when I click "Go to" and allow Google access it redirects me to Wordpress with the following error: Unable to authorize Google Drive: unauthorized_client - Unauthorized

  • [deleted] replied

    Hello Elisabeth,

    It might be that the URI isn't correct either in Amelia -> Settings or in your Google project, please check if in Amelia -> Settings -> Integrations -> Google Calendar Settings the Redirect URI is the same as your domain (website URL) 

    3084356112.png


    and if in your Google account the project has the same authorized redirect URI (as in Amelia Google settings) 

    9141788572.png


  • Elisabeth Kauffman replied

    I copied and pasted the URI again... still get the same error.

  • [deleted] replied

    Hello Elisabeth, 

    Could you please tell me where have you copied and pasted the URI again? In your Google account? Could you please tell me have you checked if the URI in Amelia Google Calendar Settings is completely the same as your URL/domain and the URI in your Google console?


  • Elisabeth Kauffman replied

    Copied the Authorized Redirect URI from the Google Console and pasted it into the Redirect URI field in Ameila Google Calendar Settings. Compared both instances in a text file. Exactly the same.

  • [deleted] replied

    Hello Elisabeth, 

    The Redirect URI field in Amelia Google Calendar Settings can't be changed, it isn't possible to paste some URI to that field and save it. The URI there is generated automatically and it can only be changed in the database. So, please check if that URI is the same as your website domain and check if it is the same as the Authorized URI in your Google console. 

    If it isn't the same, please follow these steps to change it in your database: 

    Please be careful when you update this table.

    Please go to your database, and find the wp_options table:

    6172199762.png

    In your case it is possible to have different prefix but it will end with options, so something like your_prefix_options. 

    Then you have to find option name amelia_settings in this table.

    1791739968.png

    When you find that you have to edit that property and in the JSON file you need to find the string redirectURI :

    2773446103.png

    So, you need to change that to point to your new site:

    2131454090.png

    So basically you need to replace  youroldsite.com with yournewsite.com  and it will be shown in Google settings properly. Please note that if you use https you will need to update it also in redirectURI option.

    When you finished this please check is the same URL from “Redirect URI” field and on "Create OAuth client ID" section in field Authorized redirect URL's.

    7826777834.png

    Let me know if this helped!


  • Elisabeth Kauffman replied

    Sorry, I misspoke on that last response, then... I followed the directions when setting up and yes, the URI is exactly the same in both places. No that is not the issue.

  •   [deleted] replied privately