Support » Plugin: YOP Poll » Uncaught ReferenceError: gapi is not defined

  • Resolved thomastthai


    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



    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.

    YOP Team

    Thank you, YOP for the integration link. Google reCAPTCHA is working just fine. The “Site Key” and “Secret Key” are both properly in place. So that’s unlikely the cause of that error.

    Plugin Author YOP



    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?

    YOP Team

    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 2 months, 3 weeks ago by thomastthai.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.