Title: [object Object] Error
Last modified: February 11, 2020

---

# [object Object] Error

 *  Resolved [Chris – On the Grid Web Design LLC](https://wordpress.org/support/users/falcon13/)
 * (@falcon13)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/object-object-error-3/)
 * I’m getting the red “Error” message on the calendar and the only error message
   is in Javascript:
 * Error: “[object Object]”
    onload [http://playground.onthegridwebdesign.com/wp-content/plugins/private-google-calendars/js/pgc.js?ver=20200209:288](http://playground.onthegridwebdesign.com/wp-content/plugins/private-google-calendars/js/pgc.js?ver=20200209:288)
   pgc.js:312:21 onload [http://playground.onthegridwebdesign.com/wp-content/plugins/private-google-calendars/js/pgc.js?ver=20200209:312](http://playground.onthegridwebdesign.com/wp-content/plugins/private-google-calendars/js/pgc.js?ver=20200209:312)
 * This is the first time I tried this plugin and there is no restrictions on the
   API key. I get the same problem in multiple browsers. Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fobject-object-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/object-object-error-3/#post-12420387)
 * Hi,
 * You’re getting this error because there is no calendar selection (you can see
   this in the response of the admin-ajax.php call in the network tab of the browser
   console).
 * I don’t know if you are displaying private or public calendars.
 * For private calendars: first select the calendars you want to use in the settings,
   otherwise you get this error.
 * For public calendars: specify the calendars in the shortcode, for example:
 * [pgc public=”true” calendarids=”calendarid1, calendarid2″]
 * The calendarid can be seen in the settings page of the Google calendar you want
   to show.
 * Best wishes,
    Michiel
 *  [underbutter](https://wordpress.org/support/users/underbutter/)
 * (@underbutter)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/object-object-error-3/#post-12544876)
 * Hi I had this same error but was not able to resolve using this method. Keep 
   getting the error:
 *     ```
       pgc.js?ver=20200209:312 Error: [object Object]
           at XMLHttpRequest.xhr.onload
       ```
   
 * using shortcode:
    [pgc public=”true” calendarids=”calendarid1, calendarid2″]
 * I’m also using Elementor. And developing on a local http address. could these
   cause erros?
    Thanks!
    -  This reply was modified 6 years, 5 months ago by [underbutter](https://wordpress.org/support/users/underbutter/).
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/object-object-error-3/#post-12544986)
 * Hi,
 * Some things I can think of:
    – Maybe you set an IP or domain restriction on your
   API key in the Google console? If so, remove them or add your local URL to it.–
   Are the “calendarids” valid?
 * Best wishes,
    Michiel

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[object Object] Error’ is closed to new replies.

 * ![](https://ps.w.org/private-google-calendars/assets/icon-256x256.png?rev=2203549)
 * [Private Google Calendars](https://wordpress.org/plugins/private-google-calendars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/private-google-calendars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/private-google-calendars/)
 * [Active Topics](https://wordpress.org/support/plugin/private-google-calendars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/private-google-calendars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/private-google-calendars/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [michielve](https://wordpress.org/support/users/michielve/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/object-object-error-3/#post-12544986)
 * Status: resolved