By LAC Webadmin on Saturday, 19 August 2017
Posted in Technical Issues
Replies 5
Likes 0
Views 242
Votes 0
Hi There!

In the Dashboard, when I try to enter an address in the Story Form Location, I am getting a JS error and nothing appears:

https://screencast.com/t/aeuLYPVX1itO

Thanks,

Jackson
It seems like i didn't hit that Js error but Google response rejected your request, you can refer on my attached screenshot below.

Can you update your FTP access so I can check further what is the Google response to you?
·
Saturday, 19 August 2017 10:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you for looking at this. Unfortunately, our server doesn't have FTP service but you can install component that can do like FTP functions but please uninstall after you are done.

Maybe the error disappeared because I did an update on Google API. I tried the location in events and it seems to be working fine, I assume that event is using the same API settings?

Thanks,

jackson
·
Saturday, 19 August 2017 12:40
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like Google response this :

object(stdClass)#2062 (3) {
["error_message"]=>
string(74) "Browser API keys cannot have referer restrictions when used with this API."
["results"]=>
array(0) {
}
["status"]=>
string(14) "REQUEST_DENIED"
}


The reason why it hit this error is because to query the location result will require EasySocial to use Geolocation APIs and it only accept server restriction API key instead of browser restriction API key. Refer my screenshot here, http://take.ms/9HGeh . However for EasySocial to display the maps will require to use Static/Embed Maps APIs and it can only accept browser restriction, hence the same API key cannot be use for both situation. For more information please refer to this link, https://developers.google.com/maps/faq#using-google-maps-apis .

We will see what we can do in the future to cater 2 type of API key(browser and server).

In the meantime, you have to disable any restriction from your API key, http://take.ms/nTqjy so that the location in EasySocial.
·
Saturday, 19 August 2017 13:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Hmmmm... I hope you guys will find a way to use Google API restriction. This should be considered as bug so it get fixed ASAP.

But anyways, thank you for finding out the issue.

One last question, is there a way to disable location in Story Form?

Thanks,

Jackson
·
Sunday, 20 August 2017 04:29
·
0 Likes
·
0 Votes
·
0 Comments
·
You can disable this from backend > Easysocial > setting > activity stream > layout > Display Location In Form - NO.
·
Sunday, 20 August 2017 11:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post