Have you tried entering 127.0.0.1 in the API settings field to see if that will allow your localhost?
Thread Starter
jojaba
(@jojaba)
Yes I did it. No better result.
Maybe I should ask on google calendar forums (I don’t know if they exist…)
Could you try using the plugin’s default shared public API key?
Thread Starter
jojaba
(@jojaba)
Just tried. didn’t work :/
Thread Starter
jojaba
(@jojaba)
Hello,
Did you manage to get the plugin work on localhost?
I tried to use my box IP in the dev console settings field, but this still didn’t work.
Just to be sure I’m not going the wrong way: I can create multiple api key for a calendar and use them simultaneously, is that correct?
Yes you are correct. DO you have curl installed on your local host?
Thread Starter
jojaba
(@jojaba)
No the php extension curl is not activated.
Thread Starter
jojaba
(@jojaba)
Is it possible that it comes from my hosts file?
I paste here the content of the file I changed (the 4 lines, 1 commment and 3 local IP adresses:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# For Google calendar on localhost
192.168.0.13 test.com
192.168.1.23 test.com
192.168.1.10 test.com
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
::1 localhost
@jojaba,
I read somewhere (sorry no source :/ ) that it could be an issue with curl not being on. I would try turning the curl extension on and see if that helps.
Thread Starter
jojaba
(@jojaba)
I already try it out with curl turned on, but this didn’t help either.
Did you ever get this working? I think it might just be an issue with Google not allowing connections from localhost IPs. What have you found?
Thread Starter
jojaba
(@jojaba)
No it doesn’t work for the moment. Yes, it comes from the Google not allowing connections from localhost and Donna gave some links on her post to fix this : https://wordpress.org/support/topic/gce-210-now-updated-for-gcal-api-v3?replies=84#post-6239648
But this didn’t work for me…
Alright thanks for letting me know. I am going to mark this resolved then since it seems more of an issue with Google and not this plugin.
Thanks!
Thread Starter
jojaba
(@jojaba)
I finally managed to get it work on my local installation by using virtual hosts on wamp. This way, you don’t have an address like this http://localhost/domain but something like this http://domain.
How to create virtualhosts on wampserver 2.5: http://forum.wampserver.com/read.php?2,127757
I hope this can be helpfull π
Thanks for posting this for others to see π