Title: AMP Paired two errors
Last modified: December 16, 2018

---

# AMP Paired two errors

 *  Resolved [crashbit666](https://wordpress.org/support/users/crashbit666/)
 * (@crashbit666)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/)
 * I have AMP plugin with auto sanity activated. But when I test my AMP pages, I
   can see two errors on every entry.
 * 1.- The tag ‘noscript enclosure for boilerplate’ appears more than once in the
   document.
    2.- The parent tag of tag ‘style amp-custom’ is ‘noscript’, but it
   can only be ‘head’.
 * I have activated AMP plugin with paired mode. When I select classic mode, no 
   errors appear.
    -  This topic was modified 7 years, 5 months ago by [crashbit666](https://wordpress.org/support/users/crashbit666/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-paired-two-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-10995694)
 * This is the problematic code:
 * `<noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style
   ></noscript>`
 * If that code is removed then the validation errors go away.
 * Can you determine which plugin is adding this? The AMP plugin should be handling
   this. Nevertheless, AMP support for WooCommerce has not yet been verified, so
   that is another likely problem here.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-10995736)
 * Actually, I found the function responsible: `wc_gallery_noscript()`.
 * I tried to reproduce this problem locally but I was not able to.
 * I installed WooCommerce and activated, and I do not see that `noscript` element
   appearing in the page. The plugin on my environment has unwrapped it and the 
   contents of the stylesheet get merged with the other styles. So I see as expected
   the `style[amp-custom]` containing:
 * `:root:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .woocommerce-product-
   gallery{opacity:1}`
 * As the `!important` is replaced with a selector of higher specificity.
 * The only thing that is left of the `noscript` element is:
 * `<!--noscript--><!--/noscript-->`
 * I’m also testing with AMP v1.0.1.
 *  Thread Starter [crashbit666](https://wordpress.org/support/users/crashbit666/)
 * (@crashbit666)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-10995752)
 * Hi!
 * This is the configuration of my website:
     ### WordPress Environment ###
 * Home URL: [https://www.mamabepo.com](https://www.mamabepo.com)
    Site URL: [https://www.mamabepo.com](https://www.mamabepo.com)
   WC Version: 3.5.2 Log Directory Writable: ✔ WP Version: 5.0.1 WP Multisite: –
   WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External 
   object cache: ✔
 * ### Server Environment ###
 * Server Info: Apache
    PHP Version: 7.3.0 PHP Post Max Size: 8 MB PHP Time Limit:
   30 PHP Max Input Vars: 1000 cURL Version: 7.59.0 OpenSSL/1.0.2q
 * SUHOSIN Installed: –
    MySQL Version: 5.6.40-84.0-log Max Upload Size: 2 MB Default
   Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte
   String: ✔ Remote Post: ✔ Remote Get: ✔
 * ### Database ###
 * WC Database Version: 3.5.2
    WC Database Prefix: wp_ Tamaño total de la base de
   datos: 49.21MB Tamaño de los datos de la base de datos: 39.38MB Tamaño del índice
   de la base de datos: 9.83MB wp_woocommerce_sessions: Datos: 0.08MB + Índice: 
   0.02MB wp_woocommerce_api_keys: Datos: 0.02MB + Índice: 0.03MB wp_woocommerce_attribute_taxonomies:
   Datos: 0.02MB + Índice: 0.02MB wp_woocommerce_downloadable_product_permissions:
   Datos: 0.02MB + Índice: 0.05MB wp_woocommerce_order_items: Datos: 0.11MB + Índice:
   0.05MB wp_woocommerce_order_itemmeta: Datos: 1.52MB + Índice: 0.48MB wp_woocommerce_tax_rates:
   Datos: 0.02MB + Índice: 0.06MB wp_woocommerce_tax_rate_locations: Datos: 0.02MB
   + Índice: 0.05MB wp_woocommerce_shipping_zones: Datos: 0.02MB + Índice: 0.00MB
   wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + Índice: 0.05MB wp_woocommerce_shipping_zone_methods:
   Datos: 0.02MB + Índice: 0.00MB wp_woocommerce_payment_tokens: Datos: 0.02MB +
   Índice: 0.02MB wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + Índice: 0.03MB
   wp_woocommerce_log: Datos: 0.02MB + Índice: 0.02MB wp_amwscp_amazon_accounts:
   Datos: 0.02MB + Índice: 0.00MB wp_amwscp_amazon_feeds: Datos: 0.02MB + Índice:
   0.00MB wp_amwscp_amazon_templates: Datos: 0.02MB + Índice: 0.00MB wp_amwscp_feeds:
   Datos: 0.02MB + Índice: 0.00MB wp_amwscp_orders: Datos: 0.02MB + Índice: 0.00MB
   wp_amwscp_template_values: Datos: 0.02MB + Índice: 0.00MB wp_commentmeta: Datos:
   0.02MB + Índice: 0.03MB wp_comments: Datos: 0.33MB + Índice: 0.41MB wp_duplicator_pro_entities:
   Datos: 0.02MB + Índice: 0.02MB wp_duplicator_pro_packages: Datos: 0.02MB + Índice:
   0.02MB wp_imagify_files: Datos: 0.02MB + Índice: 0.08MB wp_imagify_folders: Datos:
   0.02MB + Índice: 0.03MB wp_links: Datos: 0.02MB + Índice: 0.02MB wp_mollie_pending_payment:
   Datos: 0.02MB + Índice: 0.00MB wp_options: Datos: 13.45MB + Índice: 0.28MB wp_postmeta:
   Datos: 10.47MB + Índice: 5.88MB wp_posts: Datos: 2.48MB + Índice: 0.27MB wp_termmeta:
   Datos: 0.02MB + Índice: 0.03MB wp_terms: Datos: 0.11MB + Índice: 0.11MB wp_term_relationships:
   Datos: 0.16MB + Índice: 0.08MB wp_term_taxonomy: Datos: 0.11MB + Índice: 0.14MB
   wp_usermeta: Datos: 1.52MB + Índice: 0.75MB wp_users: Datos: 0.06MB + Índice:
   0.05MB wp_wc_download_log: Datos: 0.02MB + Índice: 0.03MB wp_wc_gpf_render_cache:
   Datos: 0.02MB + Índice: 0.02MB wp_wc_webhooks: Datos: 0.02MB + Índice: 0.02MB
   wp_wfBadLeechers: Datos: 0.02MB + Índice: 0.00MB wp_wfBlockedCommentLog: Datos:
   0.02MB + Índice: 0.00MB wp_wfBlockedIPLog: Datos: 0.02MB + Índice: 0.00MB wp_wfBlocks7:
   Datos: 0.02MB + Índice: 0.05MB wp_wfConfig: Datos: 0.42MB + Índice: 0.00MB wp_wfCrawlers:
   Datos: 0.02MB + Índice: 0.00MB wp_wfFileChanges: Datos: 0.02MB + Índice: 0.00MB
   wp_wfFileMods: Datos: 2.52MB + Índice: 0.00MB wp_wfHits: Datos: 1.02MB + Índice:
   0.20MB wp_wfHoover: Datos: 0.02MB + Índice: 0.02MB wp_wfIssues: Datos: 0.02MB
   + Índice: 0.06MB wp_wfKnownFileList: Datos: 1.52MB + Índice: 0.00MB wp_wfLeechers:
   Datos: 0.17MB + Índice: 0.00MB wp_wfLiveTrafficHuman: Datos: 0.02MB + Índice:
   0.02MB wp_wfLocs: Datos: 0.02MB + Índice: 0.00MB wp_wfLogins: Datos: 0.06MB +
   Índice: 0.03MB wp_wfNotifications: Datos: 0.02MB + Índice: 0.00MB wp_wfPendingIssues:
   Datos: 0.02MB + Índice: 0.06MB wp_wfReverseCache: Datos: 0.02MB + Índice: 0.00MB
   wp_wfScanners: Datos: 0.02MB + Índice: 0.00MB wp_wfSNIPCache: Datos: 0.02MB +
   Índice: 0.05MB wp_wfStatus: Datos: 0.14MB + Índice: 0.11MB wp_wfTrafficRates:
   Datos: 0.02MB + Índice: 0.00MB wp_wfVulnScanners: Datos: 0.02MB + Índice: 0.00MB
   wp_woocommerce_bundled_itemmeta: Datos: 0.02MB + Índice: 0.03MB wp_woocommerce_bundled_items:
   Datos: 0.02MB + Índice: 0.03MB wp_woocommerce_gpf_google_taxonomy: Datos: 2.02MB
   + Índice: 0.00MB wp_woocommerce_shipping_table_rates: Datos: 0.02MB + Índice:
   0.00MB wp_yoast_seo_links: Datos: 0.09MB + Índice: 0.02MB wp_yoast_seo_meta: 
   Datos: 0.06MB + Índice: 0.00MB
 * ### Post Type Counts ###
 * ac_mini_cart: 1
    ac_wl_cpt: 1 aiosrs-schema: 5 amp_validated_url: 6 attachment:
   520 custom_css: 1 custom-footer: 1 custom-header: 1 et_pb_layout: 18 mc4wp-form:
   1 nav_menu_item: 13 oembed_cache: 11 page: 20 post: 77 product: 23 product_variation:
   328 revision: 25 shop_coupon: 14 shop_order: 269 shop_order_refund: 8
 * ### Security ###
 * Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
 * ### Active Plugins (27) ###
 * AfterShip – WooCommerce Tracking: por AfterShip – 1.9.2 – No probado con la versión
   activa de WooCommerce
    AMP: por WordPress.com VIP XWP Google y colaboradores –
   1.0.1
 * Coinbase Commerce: por Coinbase Commerce – 1.1.0 – No probado con la versión 
   activa de WooCommerce
    Facebook for WooCommerce: por Facebook – 1.9.8 – No probado
   con la versión activa de WooCommerce Glue for Yoast SEO & AMP: por Joost de Valk–
   0.4.3 Imagify: por WP Media – 1.8.4 MailChimp for WordPress: por ibericode – 
   4.3.2 OneSignal Push Notifications: por OneSignal – 1.16.9 Regenerate Thumbnails:
   por Alex Mills (Viper007Bond) – 3.0.2 SG Optimizer: por SiteGround – 5.0.8 SKU
   Generator for WooCommerce Pro: por Algoritmika Ltd – 1.2.1 – No probado con la
   versión activa de WooCommerce Super Progressive Web Apps: por SuperPWA – 1.9 
   WooCommerce Amazon Pay Gateway: por WooCommerce – 1.8.5 WooCommerce Stripe Gateway:
   por WooCommerce – 4.1.13 WooCommerce Product Add-ons: por WooCommerce – 3.0.5
   WooCommerce Google Product Feed: por Ademti Software Ltd. – 7.6.6 WooCommerce
   Smart Coupons: por StoreApps – 3.8.5 WooCommerce Table Rate Shipping: por WooCommerce–
   3.0.12 WooCommerce Variation Swatches and Photos: por Lucas Stark – 3.0.10 WooCommerce:
   por Automattic – 3.5.2 Wordfence Security: por Wordfence – 7.1.18 WordPress Importer:
   por wordpresspuntoorg – 0.6.4 Yoast SEO Premium: por Equipo Yoast – 9.2.1 WP 
   Menu Cart Pro: por Jeremiah Prummer Ewout Fernhout – 3.1.10
 * WP Rocket: por WP Media – 3.2.3
    Schema Pro: por Brainstorm Force – 1.1.11 WP
   Overnight Sidekick: por Jeremiah Prummer Ewout Fernhout Michael Kluver – 2.0.3
 * ### Settings ###
 * API Enabled: ✔
    Force SSL: ✔ Currency: EUR (€) Currency Position: right Thousand
   Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types:
   bundle (bundle) external (external) grouped (grouped) simple (simple) variable(
   variable)
 * Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    
   exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock)
   rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-
   5 (rated-5)
 * ### WC Pages ###
 * Base de la tienda: #987455398 – /mamabepo-narinan-handmade/
    Carrito: ❌ La página
   no contiene el shortcode. Finalizar compra: #17 – /controlar-pedido/ Mi cuenta:#
   18 – /mi-cuenta/ Términos y condiciones: #436 – /condiciones-de-uso/
 * ### Theme ###
 * Name: Divi Child
    Version: 3.0.65.1501670955 Author URL: [http://www.elegantthemes.com](http://www.elegantthemes.com)
   Child Theme: ✔ Parent Theme Name: Divi Parent Theme Version: 3.18.7 Parent Theme
   Author URL: [http://www.elegantthemes.com](http://www.elegantthemes.com) WooCommerce
   Support: ✔
 * ### Templates ###
 * Overrides: –
 * ### WooCommerce Google Product Feed fields ###
 * Availability: Defaults to “in stock”.
    Condition: Defaults to “new”. Brand: Defaults
   to “mamabepo”. Manufacturer Part Number (MPN): Pre-populates from sku taxonomy.
   Product Type: Defaults to “mamabepo”. Pre-populates from product_cat taxonomy.
   Google Product Category: Defaults to “Bebés y niños pequeños”. Size system: Defaults
   to “EU”.
 * ### WooCommerce Google Product Feed options ###
 * Include variations in feed: Enabled
    Send item_group_id: Enabled ` The problem
   appears on my blog entries, I’m using wp rocket, cloudflare with rocker loader
   activated and WooCommerce Variation Swatches and Photos.
 * Maybe one of this causing the issue
 *  Thread Starter [crashbit666](https://wordpress.org/support/users/crashbit666/)
 * (@crashbit666)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11004855)
 * I’ve try to disable rocket loader from cloudflare, but did still does not work.
   I try to disable defer javascript in wp rocket plugin, but same result.
 * The only solution is remove wc_gallery_noscript in my functions.php file
 * I try to disable wc_gallery_noscript only on blog pages, but I have not succeeded,
   because I am using the Divi theme and can not detect when I’m on a blog page.
 * I try a function named is_blog, here: [https://gist.github.com/wesbos/1189639](https://gist.github.com/wesbos/1189639)
   
   and is_frontpage() is_home() here: [https://codex.wordpress.org/Conditional_Tags#The_Blog_Page](https://codex.wordpress.org/Conditional_Tags#The_Blog_Page)
 * But no result to deactivate this function only on amp blog pages
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11004894)
 * Do you have any PHP errors in your error log?
 *  Thread Starter [crashbit666](https://wordpress.org/support/users/crashbit666/)
 * (@crashbit666)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11004975)
 * I can’t see any php error on blog page. I try to disable lazyload for images 
   too, but not luck for me :'(
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11005000)
 * I don’t know. Only suggestion I have is to try deactivating all plugins except
   for AMP and Woo and then re-activate one-by-one to find which is causing the 
   problem.
 *  Thread Starter [crashbit666](https://wordpress.org/support/users/crashbit666/)
 * (@crashbit666)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11005010)
 * Yeah, I’ll create a staging and test with it. Thanks.
 *  Plugin Author [Alberto Medina](https://wordpress.org/support/users/albertomedina/)
 * (@albertomedina)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11075800)
 * Hi [@crashbit666](https://wordpress.org/support/users/crashbit666/),
 * Closing this as I am looking at your page it seems you fixed the issue.
 * If you are satisfied with the plugin and the support, please consider rating 
   the plugin.
 * Best regards.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘AMP Paired two errors’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Alberto Medina](https://wordpress.org/support/users/albertomedina/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/amp-paired-two-errors/#post-11075800)
 * Status: resolved