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:
{ "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 to see the link]
- The topic ‘AMP Compatibility error’ is closed to new replies.