Analytcis Authorization error

This topic contains 29 replies, has 4 voices, and was last updated by  Stiofan O’Connor 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #42843

    urbanfix
    Expired Member
    Post count: 310

    I have followed the tutorial to set up analytics and it just wont work..
    The Authorize button keeps giving me an error, I have checked everything is typed correctly.. and still no joy.

    The error from google;
    400. That’s an error.
    Error: redirect_uri_mismatch

    After reading this article I started again and its still not working..

    My client details are as follows;
    Authorized JavaScript origins: http://www.mysite.co.uk
    Authorized redirect URIs: http://www.mysite.co.uk/wp-admin/admin-ajax.php?action=geodir_ga_callback

    Any ideas guys?

    #42844

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #42860

    urbanfix
    Expired Member
    Post count: 310

    Okay so now that error is gone and i clicked the accept button where i got redirected and this error!
    invalid_client: Unauthorized

    What should i do now?

    #42870

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Please make sure u followed the instructions exactly, it sounds like you might not have enabled the analytics API?

    https://wpgeodirectory.com/docs/gd-core-plugin-google-analytics/

    Stiofan

    #42878

    urbanfix
    Expired Member
    Post count: 310

    I have followed the documentation and the analytics API is enabled..
    Please advise,
    Thankyou

    #42879

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Please try recreating the tokens and secret and going though it all again.

    Stiofan

    #42883

    urbanfix
    Expired Member
    Post count: 310

    I am unsure what you mean by this?
    I have already tried doing the process again,
    thanks

    #42910

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you are saying you followed the instruction correctly, but you haven’t, precisely at this points:

    “5. Authorized JavaScript origins”: Enter the website address of your website without any sub-folders ex: ‘http://www.mysite.com/’
    Note: match is exactly as your site, so if your site does not use WWW, leave it out.
    “6. Authorized redirect URIs”: Enter your website address followed by the same specific URL ex: ‘http://www.mysite.com/wp-admin/admin-ajax.php?action=geodir_ga_callback’

    Please delete that project and start over by adding the correct URL (without WWW) to obtain new tokens.

    If you start over and do it correctly there is no reason why it shouldn’t work, as it works correctly for us all.

    Thanks

    #43590

    urbanfix
    Expired Member
    Post count: 310

    The authorization process has now worked after I redid the process with out the WWW. and now the analytics isn’t loading properly for the listing owner and google maps on the detail page sidebar isn’t loading (and there are errors logged).
    Links and login info will be provided,
    Please advise,
    Thanks!

    #43591

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
    #43617

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    Google shut down a service page from which we were using a js file necessary for analytics to work.

    We have already fixed this. Pelase disable google analytics till next release (should be today).

    Thanks

    #43739

    urbanfix
    Expired Member
    Post count: 310

    Okay thankyou,
    Am i right in thinking the update hasn’t been released yet?
    Cheers,

    #43743

    Paolo
    Site Admin
    Post count: 31206

    Not yet, but we will try to release it today.

    Just FYI, you can always download the latest development version from our GitHub page: https://github.com/GeoDirectory/geodirectory

    Thanks

    #43798

    urbanfix
    Expired Member
    Post count: 310

    Okay thankyou,
    How about the errors i mentioned?

    Specifically they are;
    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.sl @ main.js:60
    main.js:60 You have included the Google Maps API multiple times on this page. This may cause unexpected errors.sl @ main.js:60
    main.js:31 Uncaught InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama

    Could this be theme related rather than plugin related?
    Thankyou,

    #43838

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the Google Map API should only be added once and GeoDirectory adds it. So you must have a plugin adding it again. Could also be the theme, most of the time they have an option to avoid loading the Google Maps API.

    You must disable the option on whatever it is adding it again.

    Thanks

Viewing 15 posts - 1 through 15 (of 30 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket