Simple Google Calendar Widget
[resolved] Fatal error (3 posts)

  1. pwndrian
    Posted 3 years ago #

    The following error appears, when adding the widget to my site:

    Fatal error: Cannot use object of type WP_Error as array in [...]\wp-content\plugins\simple-google-calendar-widget\simple_gcal.php on line 77


  2. larcher
    Posted 3 years ago #

    I ran into this too. wp_remote_get() returns a WP_Error if the HTTP request fails. (In my case, the server firewall was blocking the request, and it timed out.)

    I fixed it by changing line 74 of simple_gcal.php from this


    to this

    if(!$httpData || !is_array($httpData))

    (Make sure wp_remote_get() returns actual data, in an array)

  3. nboehr
    Plugin Author

    Posted 3 years ago #

    Thank you guys for reporting. I fixed this problem in version 0.3.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Google Calendar Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic