Title: Uncaught ReferenceError: gapi is not defined
Last modified: October 30, 2019

---

# Uncaught ReferenceError: gapi is not defined

 *  Resolved [thomastthai](https://wordpress.org/support/users/thomastthai/)
 * (@thomastthai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-gapi-is-not-defined/)
 * The following showed in Chrome’s Developer console when visiting the page with
   the poll.
 *     ```
       yop-poll-public.min.js?ver=5.2.4:1 Uncaught ReferenceError: gapi is not defined
           at HTMLDocument.<anonymous> (yop-poll-public.min.js?ver=5.2.4:1)
           at i (jquery.js?ver=1.12.4-wp:2)
           at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
           at Function.ready (jquery.js?ver=1.12.4-wp:2)
           at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
       (anonymous)	@	yop-poll-public.min.js?ver=5.2.4:1
       i	@	jquery.js?ver=1.12.4-wp:2
       fireWith	@	jquery.js?ver=1.12.4-wp:2
       ready	@	jquery.js?ver=1.12.4-wp:2
       J	@	jquery.js?ver=1.12.4-wp:2
       ```
   

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

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-gapi-is-not-defined/#post-12082656)
 * Hello
 * When using reCaptcha, you will need to add “Site Key” and “Secret Key” to plugin
   settings.
 * Please follow the steps from the link below to integrate reCaptcha.
 * [https://yop-poll.com/yop-poll-pro/integrations/](https://yop-poll.com/yop-poll-pro/integrations/)
 * Best
    YOP Team
 *  Thread Starter [thomastthai](https://wordpress.org/support/users/thomastthai/)
 * (@thomastthai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-gapi-is-not-defined/#post-12082707)
 * Thank you, YOP for the integration link. Google reCAPTCHA is working just fine.
   The “Site Key” and “Secret Key” are both [properly in place](https://drive.google.com/open?id=1OsCWG2YgajRPIy_vnSG2_aRlkXQ2ReI5).
   So that’s unlikely the cause of that error.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-gapi-is-not-defined/#post-12082726)
 * Hello
 * In this case, the error is generated by the “Vote Permissions” you have setup.
   
   You have enabled “Vote with Google” but you haven’t entered Client Id and Client
   Secret.
 * Can you remove Google from “Vote Permissions” and see if the error goes away?
 * Best
    YOP Team
 *  Thread Starter [thomastthai](https://wordpress.org/support/users/thomastthai/)
 * (@thomastthai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-gapi-is-not-defined/#post-12082838)
 * You were right. I removed those two vote permissions and the error disappeared.
   Google and Facebook app client and secret IDs weren’t set up at the time. I’ll
   test it again with those activated and report back.
 * UPDATE: Facebook and Google integrations were completed and the error didn’t 
   show. Thank you kindly.
    -  This reply was modified 6 years, 7 months ago by [thomastthai](https://wordpress.org/support/users/thomastthai/).

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

The topic ‘Uncaught ReferenceError: gapi is not defined’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [thomastthai](https://wordpress.org/support/users/thomastthai/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-gapi-is-not-defined/#post-12082838)
 * Status: resolved