{"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 class=\"wp-block-heading\" id=\"h-issue-description\">Issue Description<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-heading\" id=\"h-solution\">Solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We recommend you check whether the customizations caused invalid AMP pages. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-heading\" id=\"h-1-save-your-customizations\">1. Save your customizations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the content of CMS blocks and pages you edited.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-restore-default-cms-content\">2. Restore Default CMS Content<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-heading\" 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\" data-line=\"\">DELETE FROM `cms_page` WHERE `identifier` = &#039;amp_homepage_1&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_header_template_1_contact_us&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_menu_1&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_top&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_middle_one&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_middle_two&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_bottom&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHomepage1&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHeader1CmsBlock&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateMenu1CmsBlock&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateFooter1CmsBlocks&#039;;<\/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\" data-line=\"\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" 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\" data-line=\"\">DELETE FROM `cms_page` WHERE `identifier` = &#039;amp_homepage_1&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHomepage1&#039;;<\/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\" data-line=\"\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" 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\" data-line=\"\">DELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_header_template_1_contact_us&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateHeader1CmsBlock&#039;;<\/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\" data-line=\"\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" 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\" data-line=\"\">DELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_menu_1&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateMenu1CmsBlock&#039;;<\/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\" data-line=\"\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" 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\" data-line=\"\">DELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_top&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_middle_one&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_middle_two&#039;;\nDELETE FROM `cms_block` WHERE `identifier` = &#039;pr_amp_footer_template_1_bottom&#039;;\nDELETE FROM `patch_list` WHERE `patch_name` = &#039;Plumrocket\\\\AmpThemeOne\\\\Setup\\\\Patch\\\\Data\\\\CreateFooter1CmsBlocks&#039;;<\/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\" data-line=\"\">php bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-revalidate-amp-pages\">3. Revalidate AMP pages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[106],"tags":[],"class_list":["post-25345","post","type-post","status-publish","format-standard","hentry","category-troubleshooting-v3","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\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 - Plumrocket Documentation\" \/>\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=\"author\" content=\"Plumrocket\" \/>\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 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 - Plumrocket Documentation","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","author":"Plumrocket","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content#article","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content"},"author":{"name":"Plumrocket","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"headline":"Default AMP CMS Content is Broken","datePublished":"2022-03-21T12:28:32+00:00","dateModified":"2022-03-21T12:28:35+00:00","mainEntityOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content"},"wordCount":237,"articleSection":["Troubleshooting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/broken-cms-content","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":"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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/30d7e8cb4567485b56880a1658849a1252ac12806e8f95b3be71e986bf5eabee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/30d7e8cb4567485b56880a1658849a1252ac12806e8f95b3be71e986bf5eabee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/30d7e8cb4567485b56880a1658849a1252ac12806e8f95b3be71e986bf5eabee?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/25345","targetHints":{"allow":["GET"]}}],"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}]}}