{"id":18667,"date":"2021-06-15T13:14:46","date_gmt":"2021-06-15T10:14:46","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=18667"},"modified":"2021-09-21T09:13:17","modified_gmt":"2021-09-21T13:13:17","slug":"amp-iframe-infinite-loader-error-2","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/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&nbsp;<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-1.png\" alt=\"Intinite-loader.png\" class=\"wp-image-18950\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1-300x178.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1-1024x606.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1-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-1.png\" alt=\"Not-valid-amp-page.png\" class=\"wp-image-18949\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-1-300x206.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-1-1024x704.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-valid-amp-page-1-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\"><code>http:\/\/domain.com\/<\/code><\/span>&nbsp;&gt; To&nbsp;<span class=\"has-blue-color\"><code>https:\/\/domain.com\/<\/code><\/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\"><code>http:\/\/domain.com\/<\/code><\/span>&nbsp;&gt; To&nbsp;<span class=\"has-blue-color\"><code>https:\/\/domain.com\/<\/code><\/span><\/li><\/ol>\n\n\n\n<p><\/p>\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&nbsp;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 protocol &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/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":1,"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":[106],"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=\"https:\/\/plumrocket.com\/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-06-15T10:14:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-21T13:13:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1.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":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error","og_site_name":"Plumrocket Documentation","article_published_time":"2021-06-15T10:14:46+00:00","article_modified_time":"2021-09-21T13:13:17+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1.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":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1.png","contentUrl":"\/docs\/wp-content\/uploads\/2021\/06\/Intinite-loader-1.png"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error#webpage","url":"https:\/\/plumrocket.com\/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":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error#primaryimage"},"datePublished":"2021-06-15T10:14:46+00:00","dateModified":"2021-09-21T13:13:17+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"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":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-loader-error"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/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":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3"},{"@type":"ListItem","position":5,"name":"Troubleshooting","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting"},{"@type":"ListItem","position":6,"name":"AMP Iframe Infinite Loader Error"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18667"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=18667"}],"version-history":[{"count":4,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18667\/revisions"}],"predecessor-version":[{"id":24192,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18667\/revisions\/24192"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=18667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=18667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=18667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}