Title: AMP Compatibility error
Last modified: March 16, 2024

---

# AMP Compatibility error

 *  [Rodrigo Lima](https://wordpress.org/support/users/rodrigoflausino/)
 * (@rodrigoflausino)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/amp-compatibility-error/)
 * Hi! Today i install the official AMP Plugin, but in AMP configurations shows 
   a “AMP compatibility issue(s)” with Polylang.
 * Raw data:
 *     ```wp-block-code
       {
               "url": "https://selectgame.gamehall.com.br/",
               "type": "is_front_page",
               "label": "Homepage",
               "amp_url": "https://selectgame.gamehall.com.br/?amp=1",
               "validation_errors": [
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\n(function() {\n\t\t\t\tvar expirationDate = new Date();\n\t\t\t\texpirationDate.setTime( expirationDate.getTime() + __INT__ * __INT__ );\n\t\t\t\tdocument.cookie = __DOUBLE_QUOTED_STRING__ + expirationDate.toUTCString() + __DOUBLE_QUOTED_STRING__;\n\t\t\t}());\n\n",
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "polylang",
                               "file": "integrations/cache/cache-compat.php",
                               "line": 38,
                               "function": "PLL_Cache_Compat::add_cookie_script",
                               "hook": "wp_print_footer_scripts",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false
           },
           {
               "url": "https://selectgame.gamehall.com.br/ajustes-no-evento-de-hearthstone-em-world-of-warcraft-vao-facilitar-no-farm-de-cards-itens-e-cosmeticos/",
               "type": "is_singular[post]",
               "label": "Post",
               "amp_url": "https://selectgame.gamehall.com.br/ajustes-no-evento-de-hearthstone-em-world-of-warcraft-vao-facilitar-no-farm-de-cards-itens-e-cosmeticos/?amp=1",
               "validation_errors": [
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\n(function() {\n\t\t\t\tvar expirationDate = new Date();\n\t\t\t\texpirationDate.setTime( expirationDate.getTime() + __INT__ * __INT__ );\n\t\t\t\tdocument.cookie = __DOUBLE_QUOTED_STRING__ + expirationDate.toUTCString() + __DOUBLE_QUOTED_STRING__;\n\t\t\t}());\n\n",
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "polylang",
                               "file": "integrations/cache/cache-compat.php",
                               "line": 38,
                               "function": "PLL_Cache_Compat::add_cookie_script",
                               "hook": "wp_print_footer_scripts",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false
           },
           {
               "url": "https://selectgame.gamehall.com.br/home/",
               "type": "is_singular[page]",
               "label": "Página",
               "amp_url": "https://selectgame.gamehall.com.br/home/?amp=1",
               "validation_errors": [
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\n(function() {\n\t\t\t\tvar expirationDate = new Date();\n\t\t\t\texpirationDate.setTime( expirationDate.getTime() + __INT__ * __INT__ );\n\t\t\t\tdocument.cookie = __DOUBLE_QUOTED_STRING__ + expirationDate.toUTCString() + __DOUBLE_QUOTED_STRING__;\n\t\t\t}());\n\n",
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "polylang",
                               "file": "integrations/cache/cache-compat.php",
                               "line": 38,
                               "function": "PLL_Cache_Compat::add_cookie_script",
                               "hook": "wp_print_footer_scripts",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false
           },
           {
               "url": "https://selectgame.gamehall.com.br/categoria/sem-categoria/",
               "type": "is_tax[category]",
               "label": "Categoria",
               "amp_url": "https://selectgame.gamehall.com.br/categoria/sem-categoria/?amp=1",
               "validation_errors": [
                   {
                       "node_name": "script",
                       "parent_name": "body",
                       "code": "DISALLOWED_TAG",
                       "type": "js_error",
                       "node_attributes": [],
                       "text": "\n(function() {\n\t\t\t\tvar expirationDate = new Date();\n\t\t\t\texpirationDate.setTime( expirationDate.getTime() + __INT__ * __INT__ );\n\t\t\t\tdocument.cookie = __DOUBLE_QUOTED_STRING__ + expirationDate.toUTCString() + __DOUBLE_QUOTED_STRING__;\n\t\t\t}());\n\n",
                       "node_type": 1,
                       "sources": [
                           {
                               "type": "plugin",
                               "name": "polylang",
                               "file": "integrations/cache/cache-compat.php",
                               "line": 38,
                               "function": "PLL_Cache_Compat::add_cookie_script",
                               "hook": "wp_print_footer_scripts",
                               "priority": 10
                           }
                       ]
                   }
               ],
               "stale": false
           }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-compatibility-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘AMP Compatibility error’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Rodrigo Lima](https://wordpress.org/support/users/rodrigoflausino/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/amp-compatibility-error/)
 * Status: not resolved