# Google AMP pages errors

**URL:** https://forum.ghost.org/t/google-amp-pages-errors/7991
**Category:** Developer help
**Created:** [June 27, 2019, 1:01pm UTC](https://forum.ghost.org/t/google-amp-pages-errors/7991 "2019-06-27T13:01:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Doubrovski](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Doubrovski](https://forum.ghost.org/u/Doubrovski)
#### Post date: [June 27, 2019, 1:01pm UTC](https://forum.ghost.org/t/google-amp-pages-errors/7991/1 "2019-06-27T13:01:52Z")

</div>

- What’s your URL? [https://jbboccaren.com/ia/amp/#development=1](https://jbboccaren.com/ia/amp/#development=1)
- What version of Ghost are you using? last

Hello,  
Google search consol has detected some errors related to my AMP pages. My “paperleaf” theme doesn’t have an AMP template.  
I noticed that the errors were related to SoundCloud’s Iframes. Below are the errors encountered:

> [https://jbboccaren.com/ia/amp/:974:0](https://jbboccaren.com/ia/amp/:974:0) The attribute ‘width’ in tag ‘amp-iframe’ is set to the invalid value ‘100%’. (see [https://amp.dev/documentation/components/amp-iframe](https://amp.dev/documentation/components/amp-iframe))  
> [https://jbboccaren.com/ia/amp/:974:0](https://jbboccaren.com/ia/amp/:974:0) The attribute ‘frameborder’ in tag ‘amp-iframe’ is set to the invalid value ‘no’. (see [https://amp.dev/documentation/components/amp-iframe](https://amp.dev/documentation/components/amp-iframe))

How can I fix these kind of errors? Should I create an AMP template?  
You can check for errors in the js console with the address /amp/#development = 1

Thank you !

---

<div class="post-metadata">

### Author: ![Doubrovski](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Doubrovski](https://forum.ghost.org/u/Doubrovski)
#### Post date: [June 29, 2019, 6:15am UTC](https://forum.ghost.org/t/google-amp-pages-errors/7991/2 "2019-06-29T06:15:45Z")

</div>

Hello,  
According to this page :

> **[Documentation:](https://amp.dev/documentation/components/amp-soundcloud)**
>
> Displays a Soundcloud clip.

Iframes of soundcloud should be integrated as the following code:

```
<amp-soundcloud height=657
layout="fixed-height"
data-trackid="243169232"
data-visual="true"></amp-soundcloud>

```

Except that I have to load a script to make it works. I tried to load this script with the post injection of ghost in the Header or in the Footer, but it don’t works…

Any idea ?  
Thank you

---

<div class="post-metadata">

### Author: ![pankaj](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pankaj/32/4492_2.png) [@pankaj](https://forum.ghost.org/u/pankaj)
#### Post date: [June 30, 2019, 1:24pm UTC](https://forum.ghost.org/t/google-amp-pages-errors/7991/3 "2019-06-30T13:24:13Z")

</div>

you can see the allowed attribute values here [Sanitizing/Removing Iframe attributes properly · Issue #126 · jbhannah/amperize · GitHub](https://github.com/jbhannah/amperize/issues/126)

fixing them in the embed iframe will fix the amp as well

I fixed these issues in my site as well

---

<div class="post-metadata">

### Author: ![Doubrovski](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Doubrovski](https://forum.ghost.org/u/Doubrovski)
#### Post date: [July 8, 2019, 8:26am UTC](https://forum.ghost.org/t/google-amp-pages-errors/7991/4 "2019-07-08T08:26:21Z")

</div>

hello, thank you very much !
