• Hi! I have been trying to embed a Google Form into a page on my website using custom HTML but it continues to only show as “Loading…” when I publish the page. I have been using the embed HTML that comes from the Google Form “send” tab. Also, my institution’s IT support has not been able to figure out the problem. The problem is under the website’s “Contact Us” page.

    I am using the only embed html code that is on google forms. Is there something else I should be looking for?

    When I paste the html, it embeds properly as a preview, but it does not stay that way when I preview the entire page or publish it. So it works but only briefly.

    I have embedded a form that is outside of my organization and my institution’s IT department has also tried, so it is not a problem with only being able to access the form within my institution.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 22 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are you using an HTML block for this? Or pasting into a paragraph block?

    Thread Starter amyw963

    (@amyw963)

    Hi Steven,

    We are using a custom HTML block for this. When I preview the HTML it works just fine until it’s published.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The same seems to happen to me. I get “can’t connect to accounts.google.com”.

    Looking at the error console, I see

    Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.
    logging-1079e469.js:4 Uncaught TypeError: Cannot read properties of undefined (reading 'request')
        at Nn (json-rpc-305836b5.js:3:149751)
        at Wn (json-rpc-305836b5.js:3:150521)
        at Hn (json-rpc-305836b5.js:3:150918)
        at Wr (logging-1079e469.js:4:123042)
        at tracking-4998b3d6.js:6:28355
    logging-1079e469.js:4 Uncaught TypeError: Cannot read properties of undefined (reading 'request')
        at Nn (json-rpc-305836b5.js:3:149751)
        at Wn (json-rpc-305836b5.js:3:150521)
        at Hn (json-rpc-305836b5.js:3:150918)
        at Wr (logging-1079e469.js:4:123105)
        at tracking-4998b3d6.js:6:28355
    chromewebdata/:1 Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

    I don’t know if this plugin still works — it’s pretty old: https://www.ads-software.com/plugins/wpgform/

    I’ve been googling around and the tutorials say the paste *should* work, but it looks like Google may have changed something.

    Thread Starter amyw963

    (@amyw963)

    Interesting… My institution’s IT department also said it seemed like a glitch. Is that a different plugin I should have added or is that the one we already have?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I don’t know what plugins you may have; I just searched the plugin directory and found it. My test site has no plugins and a standard, twenty* theme. I’ve asked some of the other mods to test this out on their test sites, too. But the issue seems to be on Google’s side, as Google is refusing the connection.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Short term workaround — click the “link” icon from “send” and paste that it as a link. It will take users off your site, but you’ll have a form, at least. For example, https://docs.google.com/forms/d/e/1FAIpQLSdqPyw2xU-ifoWAtyXuCGFcNlXZJBUQKSWW9ipi6ZNkMADDgA/viewform?usp=sf_link

    or use one of the many forms plugins in the repo to put a more WP friendly form on your site.

    Thread Starter amyw963

    (@amyw963)

    I just checked with IT to see if we have that plugin because perhaps it would work if we had that. Otherwise, is there a way for me to contact Google for this specifically?

    I’ll go ahead and use the short term workaround. Thank you!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Good luck trying to contact Google.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

    That makes me think someone set up locked down HTTP headers. Which is a security thing, but has weird consequences.

    I suggesy you ask the IT folks to check your HTTP headers (they’re found in htaccess, httpd.conf, but also in plugins) and make sure you didn’t accidently have the server set to deny.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    A huge thanks to Neko Jonez who found this:
    https://help.getguru.com/en/articles/4959126-why-am-i-having-trouble-viewing-embedded-content-from-google

    I’m using an adblocker (Privacy Badger) and it blocks tracking cookies. When I disabled that for my test page, the form works.

    So, the issue is in our browsers!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I needed to allow cookies for accounts.google.com, docs.google.com and https://www.google.com.

    I tested it on a test website too and because I have Ghostery running, which blocks trackers and their cookies… I had the exact same problem in Opera.

    Yeah, it’s cookie related.

    Happy to help!

    Thread Starter amyw963

    (@amyw963)

    Thank you all so much for your help! But I just changed my settings to allow all cookies, and I disabled my adblocker and it’s still not showing as anything but “loading…” Also, if it’s a problem with our browsers, how can we ensure visitors to the website will have compatible browsers with it too?

    I’m checking with IT about HTTP blockers.

    Have you tried cleaning your browser cache? Have you checked if a GDPR/cookie plugin isn’t being silly and blocking that till you hit accept?
    Any plugins running to make a site cache?

    Just thinking out loud what else it can be.

    Also, I have no idea right away how to ensure that people have or haven’t their cookies blocked.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Bottom line, in my mind, is to find an alternative to Google and serve a form directly from your site.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Google Form Embed Error’ is closed to new replies.