Jump to content

Problems Setting Google API


EMERA

Recommended Posts

Hello all, I've been trying to setup google API, I follow the steps and create a Client ID and Client Secret on Google Developers Console, insert the information on the PrestaShop form, but when I hit the Save & Authenticate Button, I get this error;

 

Error: redirect_uri_mismatch

The redirect URI in the request: http://emeratech.com/modules/gapi/oauth2callback.php did not match a registered redirect URI

Learn more

 

Bellow is how my registered redirection information looks in the google API:

 

 

Redirect URIs Javascript Origins

Any one can help me solve this issue?

 

Thanks!

 

Also, I have try removing the www after the http:, but then I get the following error;

 

Error: invalid_client

no application name

Link to comment
Share on other sites

  • 2 weeks later...

Hi people I'm having a similar issue but not quite... I configure my client id, secret and profile id. Then I click save and authenticate.

This brings me to the google page to "accept" connection. When I click validate, it goes to my website/modules/gapi/...callback.php?some-numbers

 

This renders a 404 not found... how is this possible? I checked out on my ftp server: the file is there... is there something wrong with my .htaccess?

Link to comment
Share on other sites

This is a detail of the failing google analytics api acceptance:

 

First I configure the google analytics api page and click on save and authenticate

byngi.png 

 

I log in to my google account and click accept

sv4c1w.png

 

Gives me:

2v7ux74.png

 

 

Who can help with this? Why is there a 404 error at this callback URL? Is there a .htaccess error?

Link to comment
Share on other sites

solved

chmod 755:

gapi folder

oauth2callback.php file

gapi.php file

 

Google API Authorization granted. :)

 

NOW new issue:

  • Google is unreachable (check your firewall)
Cannot retrieve test results

 

after click ok to permit google offline access?

click to ACCEPT

 

i've this error :(

Link to comment
Share on other sites

solved

chmod 755:

gapi folder

oauth2callback.php file

gapi.php file

 

Google API Authorization granted.  :)

 

NOW new issue:

  • Google is unreachable (check your firewall)
Cannot retrieve test results

 

after click ok to permit google offline access?

click to ACCEPT

 

i've this error :(

Both php files should have permission 644.

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

solved

chmod 755:

gapi folder

oauth2callback.php file

gapi.php file

 

Google API Authorization granted.  :)

 

NOW new issue:

  • Google is unreachable (check your firewall)
Cannot retrieve test results

 

after click ok to permit google offline access?

click to ACCEPT

 

i've this error :(

I have also the same problem! It's not the first time this problem is stated in this forum. But it seems there is still no solution?

Edited by JeroenDW (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...