• Resolved jojaba

    (@jojaba)


    Hello,

    I would like to have the plugin work on my localhost installation.
    mcdonna gaves a workaround on this post.
    To have a look to this workaround here’s a summary (for windows users):

    • Edit the \Windows\System32\drivers\etc\hosts file (with notepad)
    • add this line: 192.168.x.x fakedomain.com (where 192.168.x.x is your local IP, for me, it was 192.168.0.13)
    • Register the local IP with Google in their dev console.

    I’m not sure I registered the local IP in the dev console the good way…
    I tried to create an api key by giving my local IP address in the accepted requests field but this didn’t work (of course I used the newly generated api key in the plugin api key field before testing.
    What am I doing wrong? Is there another way to make it work on localhost?
    The message that appears instead of the calendar:

    There are no HTTP transports available which can
    complete the requested request. Please ensure your
    feed URL is correct.
    No events to display.

    https://www.ads-software.com/plugins/google-calendar-events/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    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?

    Plugin Contributor Nick Young

    (@nickyoung87)

    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

    Plugin Contributor Nick Young

    (@nickyoung87)

    @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.

    Plugin Contributor Nick Young

    (@nickyoung87)

    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://www.ads-software.com/support/topic/gce-210-now-updated-for-gcal-api-v3?replies=84#post-6239648

    But this didn’t work for me…

    Plugin Contributor Nick Young

    (@nickyoung87)

    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 https://localhost/domain but something like this https://domain.
    How to create virtualhosts on wampserver 2.5: https://forum.wampserver.com/read.php?2,127757
    I hope this can be helpfull ??

    Plugin Contributor Nick Young

    (@nickyoung87)

    Thanks for posting this for others to see ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Using Gcal v3 API on localhost’ is closed to new replies.