Title: Google Console Error
Last modified: February 3, 2018

---

# Google Console Error

 *  Resolved [mrtechnique](https://wordpress.org/support/users/mrtechnique/)
 * (@mrtechnique)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/google-console-error/)
 * I’m getting this error on Google Console:
 * >  The tag ‘amp-iframe’ is missing a mandatory attribute – pick one of [‘src’,‘
   > srcdoc’].
 * It’s the only error on the page. I also have Glue for Yoast SEO & AMP installed
   and activated. Thanks in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-console-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/google-console-error/#post-9946202)
 * The non-AMP version of that post contains the following:
 * `<iframe style='display:none;width:0px;height:0px;' src='about:blank' name='gform_ajax_frame_8'
   id='gform_ajax_frame_8'>This iframe contains the logic required to handle Ajax
   powered Gravity Forms.</iframe>`
 * The `about:blank` URL is invalid in AMP, so the `src` is getting stripped out
   by the sanitizer.
 * Fundamentally there is a plugin incompatibility problem with Gravity Forms. There
   are three solutions:
 * 1) Contact Gravity Forms and see if they have any AMP solutions.
    2) Remove the
   iframe from your post, or create a shortcode that renders the frame only if `!
   is_amp_endpoint()` 3) We update the sanitizer to fully remove `iframe` elements
   that get a `src` stripped, since the absence of this mandatory attribute is then
   causing invalidity itself.
 *  Thread Starter [mrtechnique](https://wordpress.org/support/users/mrtechnique/)
 * (@mrtechnique)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-console-error/#post-10117953)
 * Weston,
 * Thanks for responding so quickly, and I apologize for my super slow reply. I 
   just emailed Gravity Forms support about this.
 * Can forms be displayed on AMP pages? If they Gravity Forms doesn’t have any AMP
   solutions, can you update the sanitizer?
 *  Thread Starter [mrtechnique](https://wordpress.org/support/users/mrtechnique/)
 * (@mrtechnique)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-console-error/#post-10119144)
 * Gravity Forms support just responded and said that they don’t provide support
   for AMP yet. Could you update the sanitizer or give me the code to use for the
   shortcode to add in the functions.php file?
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-console-error/#post-10139100)
 * I don’t think that there’s any specific code that can be added to the sanitizer
   to make Gravity Forms “just work”. It needs to be a change with how Gravity Forms
   works in order to be compatible with AMP.
 *  Thread Starter [mrtechnique](https://wordpress.org/support/users/mrtechnique/)
 * (@mrtechnique)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-console-error/#post-10143599)
 * Bummer. Gravity Forms Support pointed me to a plugin that would have AMP display
   their form:
 * [https://ampforwp.com/gravity-forms/](https://ampforwp.com/gravity-forms/)

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

The topic ‘Google Console Error’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [google console](https://wordpress.org/support/topic-tag/google-console/)

 * 5 replies
 * 2 participants
 * Last reply from: [mrtechnique](https://wordpress.org/support/users/mrtechnique/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/google-console-error/#post-10143599)
 * Status: resolved