Analytcis Authorization error
This topic contains 29 replies, has 4 voices, and was last updated by Stiofan O’Connor 9 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
June 17, 2015 at 11:32 am #42843
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_mismatchAfter 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_callbackAny ideas guys?
June 17, 2015 at 11:36 am #42844This reply has been marked as private.June 17, 2015 at 12:49 pm #42860Okay so now that error is gone and i clicked the accept button where i got redirected and this error!
invalid_client: UnauthorizedWhat should i do now?
June 17, 2015 at 2:34 pm #42870Please 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
June 17, 2015 at 3:23 pm #42878I have followed the documentation and the analytics API is enabled..
Please advise,
ThankyouJune 17, 2015 at 3:27 pm #42879Please try recreating the tokens and secret and going though it all again.
Stiofan
June 17, 2015 at 4:01 pm #42883I am unsure what you mean by this?
I have already tried doing the process again,
thanksJune 17, 2015 at 7:22 pm #42910Hi,
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
June 25, 2015 at 12:41 pm #43590The 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!June 25, 2015 at 12:45 pm #43591This reply has been marked as private.June 25, 2015 at 2:34 pm #43617Hi,
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
June 26, 2015 at 3:24 pm #43739Okay thankyou,
Am i right in thinking the update hasn’t been released yet?
Cheers,June 26, 2015 at 3:51 pm #43743Not 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
June 26, 2015 at 9:16 pm #43798Okay 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 StreetViewPanoramaCould this be theme related rather than plugin related?
Thankyou,June 27, 2015 at 3:19 pm #43838Hi,
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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket