WordPress.org

Ready to get started?Download WordPress

Forums

Stout Google Calendar
Sporadic 'http_request_failed' issue (5 posts)

  1. destrike
    Member
    Posted 3 years ago #

    Hi, I seem to have an odd problem with the plugin.

    On random occasions I receive this error:
    The following error(s) occurred: http_request_failed
    peer certificate cannot be authenticated with known CA certificates

    Appears both in preview and on its actual page. I've tried stepping back to older versions of the plugin and I'm getting a similar response, but instead of the error I'm left with a white screen.

    I'm useless at php mostly, but perhaps a loop to retry the calender fetch request until it succeeds would work? The error only occurs somewhere between 30-40% of refreshes on average.. but as I said, I'd have no idea on how to code this off the top of my head.

    Following another thread, I changed line 47 of the wrapper to echo errors instead of die, and I observed the similar issues as the original poster of that thread with the addition of "Array" and no improvement to the issue.

    My Calendar embed code is as follows:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    http://wordpress.org/extend/plugins/stout-google-calendar/

  2. roo2man
    Member
    Posted 3 years ago #

    Yes, I'm having the same problem. My Stout Google Calendar randomly appears/disappears when the page is refreshed. The error reads:

    The following error(s) occurred:
    http_request_failed
    Operation timed out after 5000
    milliseconds with 0 bytes received

    Maybe a fix that increases timeout period would help, but I'm not sure how to accomplish this.

    Does anyone have any ideas, suggestions?

    Thanks.

  3. stoutdesign
    Member
    Plugin Author

    Posted 3 years ago #

    The issue with the CA certificate is likely a result of the WP_Http class trying to verify the ssl connection for the request. Please see this post for a possible temporary fix

    http://wordpress.org/support/topic/plugin-stout-google-calendar-ssl-certificate-problem?replies=18#post-1992458

  4. christhomas1966
    Member
    Posted 3 years ago #

    I had similar problem with http error requests timed out after 5 seconds.

    The answer, I found was quite simple. Do not use the plugin. Just paste the code into the WordPress page you want to use. One less plug-in, less code more speed!

    Used google multiple calendar helper to combine four calendars into one.
    http://www.palacemag.co.uk/events.

    Its so easy to customise calendars in the google calendar page there seems little use for this plug in.

    Sorry

  5. tenmile
    Member
    Posted 3 years ago #

    Chris, what exactly did you do to customize the calendar? I haven't found much on google's calendar page to customize anything except a silly color or two that hardly changes *anything*.

    I looked at your site and it's the basic Google calendar, in all it's ugly blue and unreadable text glory (no offense, it just doesn't match your otherwise nice design). I'm not defending this plugin, I just cannot stand the UI from Google--I"m a designer and would swallow glass before putting this crap on my site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic