{"id":18665,"date":"2021-06-15T13:12:36","date_gmt":"2021-06-15T10:12:36","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=18665"},"modified":"2022-02-25T06:27:26","modified_gmt":"2022-02-25T11:27:26","slug":"amp-iframe-404-error-ampiframe-php-file-is-missing","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error","title":{"rendered":"AMP IFrame 404 Error. ampiframe.php file is missing."},"content":{"rendered":"\n<h2>&lt;AMP-IFrame&gt; 404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d<\/h2>\n\n\n\n<p>Respectively the shopping cart button, along with custom options and configurable options on your&nbsp;<a href=\"\/magento-amp\">Magento 2 AMP pages<\/a>, are missing. 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\/Not-found-iframe-1.png\" alt=\"Not-found-iframe.png\" class=\"wp-image-18943\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-1-300x178.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-1-1024x606.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-1-768x455.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2>Issue Description<\/h2>\n\n\n\n<p>Most likely, you are experiencing this 404 error right after installing the AMP extension via the composer. Sometimes the iframe file can be accidentally deleted or renamed, and therefore the AMP Iframe source is missing.<\/p>\n\n\n\n<h2>Solution<\/h2>\n\n\n\n<h3>Step 1<\/h3>\n\n\n\n<p>Check your <a href=\"\/docs\/magento-amp\/v3\/configuration\">AMP Magento Extension configuration<\/a>. The AMP Iframe path field will display a location and the name of your AMP Iframe file as displayed below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"396\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-iframe-product-options.png\" alt=\"magento-2-amp-Iframe-path.png\" class=\"wp-image-23109\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-iframe-product-options.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-iframe-product-options-300x99.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-iframe-product-options-1024x336.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-iframe-product-options-768x252.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h3>Step 2<\/h3>\n\n\n\n<p>Check your Magento web root folder. Depending on your web server settings, the&nbsp;<a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/tutorials\/change-docroot-to-pub.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Magento DocumentRoot<\/a>&nbsp;may be located in:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">\/path\/to\/magento2\/pub<\/code><\/pre><\/div>\n\n\n\n<p>or<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-\">\/path\/to\/magento2\/<\/code><\/pre><\/div>\n\n\n\n<p>Now check the above folders. Most likely, the \u201campiframe.php\u201d is simply missing.<\/p>\n\n\n\n<h3>Step 3<\/h3>\n\n\n\n<p>Copy the \u201campiframe.php\u201d file (provided with the module) to your Magento 2 webroot directory.<\/p>\n\n\n\n<p>If you are serving files from the pub\/ directory, then you must copy the \u201campiframe.php\u201d to pub\/ folder:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-bash\">cp \/path\/to\/magento2\/vendor\/plumrocket\/module-amp-catalog\/ampiframe.php \/path\/to\/magento2\/pub<\/code><\/pre><\/div>\n\n\n\n<p>Otherwise, please copy the \u201campiframe.php\u201d to your Magento 2 default webroot:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-bash\">cp \/path\/to\/magento2\/vendor\/plumrocket\/module-amp-catalog\/ampiframe.php \/path\/to\/magento2\/<\/code><\/pre><\/div>\n\n\n\n<h3>Step 4<\/h3>\n\n\n\n<p>Now go back to your browser and refresh the AMP product page. The AMP Iframe should be displayed correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><AMP-IFrame> 404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d<\/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 404 Error. ampiframe.php file is missing. - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d\" \/>\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-404-error\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AMP IFrame 404 Error. ampiframe.php file is missing.\" \/>\n<meta property=\"og:description\" content=\"404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-15T10:12:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-25T11:27:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-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 404 Error. ampiframe.php file is missing. - Plumrocket Documentation","description":"404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d","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-404-error","og_locale":"en_US","og_type":"article","og_title":"AMP IFrame 404 Error. ampiframe.php file is missing.","og_description":"404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d","og_url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error","og_site_name":"Plumrocket Documentation","article_published_time":"2021-06-15T10:12:36+00:00","article_modified_time":"2022-02-25T11:27:26+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-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-404-error#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-1.png","contentUrl":"\/docs\/wp-content\/uploads\/2021\/06\/Not-found-iframe-1.png"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error","name":"AMP IFrame 404 Error. ampiframe.php file is missing. - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error#primaryimage"},"datePublished":"2021-06-15T10:12:36+00:00","dateModified":"2022-02-25T11:27:26+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"404 Error. AMP IFrame file is missing. Users will see the following error message: \u201cNot Found. The requested URL \/ampiframe.php was not found on this server.\u201d","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-error"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-404-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 404 Error. ampiframe.php file is missing."}]},{"@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\/18665"}],"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=18665"}],"version-history":[{"count":4,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18665\/revisions"}],"predecessor-version":[{"id":25298,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18665\/revisions\/25298"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=18665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=18665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=18665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}