Forums › Geo Job Manager › JS error
- This topic has 6 replies, 2 voices, and was last updated 5 years, 11 months ago by
Eyal Fitoussi.
-
AuthorPosts
-
July 24, 2016 at 3:47 am #53374
Andrew Bossola
MemberHello,
I had worked with you previously on something similar but eventually I had it resolved. However, once I went live with the site, I got this JS error which I can’t figure out for the life of me.
You can see the error here
http://www.libertydirect.org/directory/Any ideas?
July 24, 2016 at 3:49 am #53375Andrew Bossola
MemberI meant to add, I have the same exact set up locally and on a staging server and it works fine. Same plugins, same theme, same everything. Even the staging server is on the same server as the production server. The only difference is that one has a domain and the others just IP addresses…
July 24, 2016 at 4:04 am #53384Andrew Bossola
MemberNot sure why that link didnt make it over http://www.libertydirect.org/directory/
July 24, 2016 at 5:03 am #53391Andrew Bossola
MemberI installed the core control plugin and found this error
{
“error_message” : “This IP, site or mobile application is not authorized to use this API key. Request received from IP address 68.112.60.144, with empty referer”,
“results” : [],
“status” : “REQUEST_DENIED”
}BUT I created a server key, verified the domain and everything. Yet the error persists. What is the deal on this? I’ve been working on this for 3 months… I’ve tried everything I can to get the right key to work.
I added the below
add_filter( ‘job_manager_geolocation_endpoint’, ‘add_geolocation_key_to_endpoint’ );
function add_geolocation_key_to_endpoint( $endpoint ) {
$endpoint = add_query_arg( ‘key’, ‘AIzaSyDgHTtCQocOedIcPV20DFJ8vpmbd3zeaiA’, $endpoint );
return $endpoint;
}Again, that is a server key (I tried a browser key too) and it has been verified.
I can’t be the only person ever with this issue.
Thanks,
AndrewJuly 27, 2016 at 4:29 am #53428Eyal Fitoussi
MemberHi Andrew,
Many users have been facing this issue recently. Since Last month Google requires an API key in order to use its Maps features. It is working well on your local environment because an API key is not required for local but only for a live domain.Please follow this tutorial on how to create the proper API key and how to enable the required API services. Then you need to enter the API key in the new API key input box in the settings page of the plugin ( dashboard -> Job Listing -> Settings -> GEO General Settings tab ).
Note that the API input box was added to the last version of the plugin which is 1.7.7. So you will need to update your plugin if you haven’t done so already.
July 27, 2016 at 8:12 am #53432Andrew Bossola
MemberAwesome. I wish I would have checked with you sooner… resolved… thanks a ton.
August 1, 2016 at 9:40 am #53476Eyal Fitoussi
MemberYou are welcome Andrew. I am I could help.
-
AuthorPosts
You must be logged in to reply to this topic.