{"id":17613,"date":"2021-03-08T16:15:24","date_gmt":"2021-03-08T16:15:24","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/?post_type=ht_kb&#038;p=17613"},"modified":"2021-09-21T08:51:51","modified_gmt":"2021-09-21T12:51:51","slug":"amp-iframe-infinite-loader-error","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v2\/troubleshooting\/amp-iframe-loader-error","title":{"rendered":"AMP Iframe Infinite Loader Error"},"content":{"rendered":"\n<h2>Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol &#8216;http:&#8217; for attribute &#8216;src&#8217; in tag &#8216;amp-iframe&#8217;.\u201d<\/h2>\n\n\n\n<p>Similar to other Iframe issues, the iframe contents on <a href=\"\/magento-amp\">Magento 2 AMP pages<\/a> are missing. Instead, the loader gets stuck spinning and never loads.<\/p>\n\n\n\n<p>Please see the screenshot below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"714\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader.png\" alt=\"Intinite-loader.png\" class=\"wp-image-18945\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-300x178.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1024x606.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-768x455.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2>Issue Description<\/h2>\n\n\n\n<p>This issue happens when HTTPS protocol is not enabled for AMP Iframe.\u00a0<a href=\"https:\/\/amp.dev\/documentation\/components\/amp-iframe\/#usage\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">According to the official AMP.DEV documentation<\/a>,\u00a0<span class=\"has-blue-color\"><em>&#8220;An amp-iframe must only request resources via HTTPS&#8221;<\/em><\/span>, hence loading AMP Iframe source via HTTP protocol will result in an infinite loader to be displayed.<\/p>\n\n\n\n<p>Another way to debug this issue is by\u00a0<a href=\"https:\/\/search.google.com\/test\/amp\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">validating AMP<\/a>\u00a0versions of your product pages. Here is a validation error you may encounter when HTTPS protocol is not enabled:\u00a0<span class=\"has-blue-color\"><em>&#8220;Invalid URL protocol &#8216;http:&#8217; for attribute &#8216;src&#8217; in tag &#8216;amp-iframe&#8217;.<\/em><\/span>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"829\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page.png\" alt=\"Not-valid-amp-page.png\" class=\"wp-image-18946\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-300x206.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-1024x704.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-768x528.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2>SOLUTION<\/h2>\n\n\n\n<h3>Step 1<\/h3>\n\n\n\n<p>Contact your web hosting company and inquire about an SSL certificate for the main domain and \u201cwww\u201d subdomain.<\/p>\n\n\n\n<h3>Step 2<\/h3>\n\n\n\n<p>Set up your\u00a0<a href=\"https:\/\/docs.magento.com\/user-guide\/stores\/store-urls.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Magento 2.x to work via HTTPS<\/a>, go to your\u00a0<strong>Magento admin panel > Stores > Configuration > Web<\/strong>.<\/p>\n\n\n\n<ol><li>Expand the&nbsp;<strong>Base URLs<\/strong>&nbsp;section and change the protocol in the&nbsp;<strong>Base URL<\/strong>&nbsp;field: From&nbsp;<span class=\"has-blue-color\"><strong>http:<\/strong>\/\/domain.com\/<\/span>&nbsp;&gt; To&nbsp;<span class=\"has-blue-color\"><strong>https:<\/strong>\/\/domain.com\/<\/span><\/li><li>Expand the&nbsp;<strong>Base URLs (Secure)<\/strong>&nbsp;section and change the URL in the&nbsp;<strong>Secure Base URL<\/strong>&nbsp;field: From&nbsp;<span class=\"has-blue-color\"><strong>http:<\/strong>\/\/domain.com\/<\/span>&nbsp;&gt; To&nbsp;<span class=\"has-blue-color\"><strong>https<\/strong>:\/\/domain.com\/<\/span><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol &#8216;http:&#8217; for attribute &#8216;src&#8217; in tag &#8216;amp-iframe&#8217;.\u201d Similar to other Iframe issues, the iframe contents on Magento 2 AMP pages are missing. Instead, the loader gets stuck spinning and never loads. Please see the screenshot below: Issue Description This issue happens when HTTPS &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v2\/troubleshooting\/amp-iframe-loader-error\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;AMP Iframe Infinite Loader Error&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[105],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AMP Iframe Infinite Loader Error - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol &#039;http:&#039; for attribute &#039;src&#039; in tag &#039;amp-iframe&#039;.\u201d Similar to other Iframe\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AMP Iframe Infinite Loader Error\" \/>\n<meta property=\"og:description\" content=\"Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol &#039;http:&#039; for attribute &#039;src&#039; in tag &#039;amp-iframe&#039;.\u201d Similar to other Iframe\" \/>\n<meta property=\"og:url\" content=\"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-08T16:15:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-21T12:51:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"AMP Iframe Infinite Loader Error - Plumrocket Documentation","description":"Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol 'http:' for attribute 'src' in tag 'amp-iframe'.\u201d Similar to other Iframe","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error","og_locale":"en_US","og_type":"article","og_title":"AMP Iframe Infinite Loader Error","og_description":"Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol 'http:' for attribute 'src' in tag 'amp-iframe'.\u201d Similar to other Iframe","og_url":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error","og_site_name":"Plumrocket Documentation","article_published_time":"2021-03-08T16:15:24+00:00","article_modified_time":"2021-09-21T12:51:51+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader.png","contentUrl":"\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader.png"},{"@type":"WebPage","@id":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/#webpage","url":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/","name":"AMP Iframe Infinite Loader Error - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/#primaryimage"},"datePublished":"2021-03-08T16:15:24+00:00","dateModified":"2021-09-21T12:51:51+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"Infinite Loader in the AMP Iframe. AMP Validation Error: \u201cInvalid URL protocol 'http:' for attribute 'src' in tag 'amp-iframe'.\u201d Similar to other Iframe","breadcrumb":{"@id":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/"]}]},{"@type":"BreadcrumbList","@id":"\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 AMP","item":"https:\/\/plumrocket.com\/magento-amp"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-amp"},{"@type":"ListItem","position":4,"name":"v2","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v2"},{"@type":"ListItem","position":5,"name":"Troubleshooting","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v2\/troubleshooting"},{"@type":"ListItem","position":6,"name":"AMP Iframe Infinite Loader Error"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/17613"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=17613"}],"version-history":[{"count":2,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/17613\/revisions"}],"predecessor-version":[{"id":24184,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/17613\/revisions\/24184"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=17613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=17613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=17613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}