Okay
  Public Ticket #2532245
Google calendar integration
Closed

Comments

  •  2
    Dylan started the conversation

    Hi, I'm having trouble integrating my google calendar with Amelia. I have followed the steps to the letter, however I navigate to the employee section to log into my google calendar, I get the following error

    The redirect URI in the request, https://www.unitehealthandsafety.com/wp-admin/admin.php?page=wpamelia-employees, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/1055183703520-gapnid97ph02mdij77r6mps94r2jh3p2.apps.googleusercontent.com?project=1055183703520

    Can someone help me with this? I'm trying to use it so that my working hours can be more flexible, such as booking out time slots etc because my availability changed on a weekly basis.

    Thanks

  •  2,572
    Aleksandar replied

    Hello Dylan

    To change the URI, you'll need to go into your database, but please be careful when you update the table, because if you delete or add anything else, it can cause the plugin not to work properly.

    When you access your database via PHPMyAdmin (or some other tool), access wp_options table:

    6172199762.png

    It is possible that your prefix is not "wp_", but something else, so if that is the case, please look for "your_prefix_options" table.

    When you access it, you can search through the column "option_name". Search for the term "amelia_settings":

    1791739968.png

    When you find that, you need to edit the property under "option_value" column and find the string "redirectURI". It will look something like this :

    2773446103.png

     So, all you need to do is replace it with your new website's URI:

    2131454090.png

    So basically you need to replace newsite.com with youroldsite.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. Please don't remove the escape characters ( \ ), it needs to stay in \/\/ format

    When you're done with this, please check if the URL from “Redirect URI” field and on "Create OAuth client ID" section are the same:

    7826777834.png

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   Dylan replied privately
  •   Aleksandar replied privately