{"id":25345,"date":"2022-03-21T08:28:32","date_gmt":"2022-03-21T12:28:32","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=25345"},"modified":"2022-03-21T08:28:35","modified_gmt":"2022-03-21T12:28:35","slug":"default-amp-cms-content-is-broken","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content","title":{"rendered":"Default AMP CMS Content is Broken"},"content":{"rendered":"\n<h2 id=\"h-issue-description\">Issue Description<\/h2>\n\n\n\n<p>After installing the <a href=\"\/magento-amp\">Magneto 2 AMP extension<\/a> and making some customizations, you may encounter invalid AMP HTML or broken elements. In this article, you will learn how to find out the cause of this issue and how to fix it.<\/p>\n\n\n\n<h2 id=\"h-solution\">Solution<\/h2>\n\n\n\n<p>We recommend you check whether the customizations caused invalid AMP pages. <\/p>\n\n\n\n<p>Different causes of this problem require different solutions. We recommend that you first determine if invalid AMP pages or broken elements were caused by customizations. Please follow the next three steps.<\/p>\n\n\n\n<h3 id=\"h-1-save-your-customizations\">1. Save your customizations<\/h3>\n\n\n\n<p>Copy the content of CMS blocks and pages you edited.<\/p>\n\n\n\n<h3 id=\"h-2-restore-default-cms-content\">2. Restore Default CMS Content<\/h3>\n\n\n\n<p>You can restore all AMP content or some blocks\/pages separately. Please follow the appropriate set of commands below. <\/p>\n\n\n\n<h4 id=\"h-how-to-restore-all-amp-cms-content\">How to restore all AMP CMS content<\/h4>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run the following commands in the database<\/div><pre><code class=\"language-sql\">DELETE FROM `cms_page` WHERE `identifier` = 'amp_homepage_1';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_header_template_1_contact_us';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_menu_1';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_top';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_middle_one';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_middle_two';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_bottom';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHomepage1';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHeader1CmsBlock';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateMenu1CmsBlock';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateFooter1CmsBlocks';<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run CLI command<\/div><pre><code class=\"language-bash\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 id=\"h-how-to-restore-amp-homepage\">How to restore AMP Homepage<\/h4>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run the following commands in the database<\/div><pre><code class=\"language-sql\">DELETE FROM `cms_page` WHERE `identifier` = 'amp_homepage_1';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHomepage1';<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run CLI command<\/div><pre><code class=\"language-bash\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 id=\"h-how-to-restore-amp-header-cms-block\">How to restore AMP Header CMS block<\/h4>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run the following commands in the database<\/div><pre><code class=\"language-sql\">DELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_header_template_1_contact_us';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHeader1CmsBlock';<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run CLI command<\/div><pre><code class=\"language-bash\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 id=\"h-restore-amp-menu-cms-block\">Restore AMP Menu CMS block<\/h4>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run the following commands in the database<\/div><pre><code class=\"language-sql\">DELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_menu_1';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateMenu1CmsBlock';<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run CLI command<\/div><pre><code class=\"language-bash\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 id=\"h-how-to-restore-amp-footer-cms-blocks\">How to restore AMP Footer CMS blocks<\/h4>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run the following commands in the database<\/div><pre><code class=\"language-sql\">DELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_top';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_middle_one';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_middle_two';\nDELETE FROM `cms_block` WHERE `identifier` = 'pr_amp_footer_template_1_bottom';\nDELETE FROM `patch_list` WHERE `patch_name` = 'Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateFooter1CmsBlocks';<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">Run CLI command<\/div><pre><code class=\"language-bash\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"h-3-revalidate-amp-pages\">3. Revalidate AMP pages<\/h3>\n\n\n\n<p>Learn how to <a href=\"\/docs\/magento-amp\/v3\/userguides\/validation\">validate AMP pages<\/a> in our documentation.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>If your AMP pages are still invalid and the issue remains unresolved, please <a href=\"\/contacts\">contact us<\/a> for further assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue Description After installing the Magneto 2 AMP extension and making some customizations, you may encounter invalid AMP HTML or broken elements. In this article, you will learn how to find out the cause of this issue and how to fix it. Solution We recommend you check whether the customizations caused invalid AMP pages. Different &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Default AMP CMS Content is Broken&#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":[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>Default AMP CMS Content is Broken - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Issue Description After installing the Magneto 2 AMP extension and making some customizations, you may encounter invalid AMP HTML or broken elements. In\" \/>\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\/broken-cms-content\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Default AMP CMS Content is Broken\" \/>\n<meta property=\"og:description\" content=\"Issue Description After installing the Magneto 2 AMP extension and making some customizations, you may encounter invalid AMP HTML or broken elements. In\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-21T12:28:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-21T12:28:35+00:00\" \/>\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":"Default AMP CMS Content is Broken - Plumrocket Documentation","description":"Issue Description After installing the Magneto 2 AMP extension and making some customizations, you may encounter invalid AMP HTML or broken elements. In","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\/broken-cms-content","og_locale":"en_US","og_type":"article","og_title":"Default AMP CMS Content is Broken","og_description":"Issue Description After installing the Magneto 2 AMP extension and making some customizations, you may encounter invalid AMP HTML or broken elements. In","og_url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content","og_site_name":"Plumrocket Documentation","article_published_time":"2022-03-21T12:28:32+00:00","article_modified_time":"2022-03-21T12:28:35+00:00","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":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content","name":"Default AMP CMS Content is Broken - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2022-03-21T12:28:32+00:00","dateModified":"2022-03-21T12:28:35+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"Issue Description After installing the Magneto 2 AMP extension and making some customizations, you may encounter invalid AMP HTML or broken elements. In","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content#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":"Default AMP CMS Content is Broken"}]},{"@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\/25345"}],"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=25345"}],"version-history":[{"count":4,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/25345\/revisions"}],"predecessor-version":[{"id":25350,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/25345\/revisions\/25350"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=25345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=25345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=25345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}