Ghost: Iframe content: A tag on this page requires an AMP component 'script' tag, which is missing.

Created on 21 Apr 2020  路  2Comments  路  Source: TryGhost/Ghost

Issue Summary

After upgrading to the latest image a week ago, a blog post written several years ago began to be flagged by Google Search Console.
Screen Shot 2020-04-21 at 22 16 38

I tried including including the amp-iframe script in the blog header, then the footer, then both header and footer to no avail.

To Reproduce

Load the amp version of the blog post.

Related research

Technical details:

  • Ghost Version: 3.13.1
  • Node Version: $ node -v #v0.12.0
  • Browser/OS: Chrome / Mac
  • Database: sqlite3
bug help wanted

All 2 comments

I own the blog linked to in related research. I run Ghost blog Pro and I just wanted to note that my issue started on the 29th of March. I spent a lot of time fiddling around with this, but I could not find any simple pattern on this. When I wrote that I moved it further down the page, I believe I also added more text before the iframe.

I was able to reproduce this issue locally. This was caused by the regex that detects iframe not taking potential line breaks into count. Fix incoming!

Was this page helpful?
0 / 5 - 0 ratings