• Resolved masse

    (@boozesounds)


    My site is entirely amp. When I use the polylang plugin, I get an error, how can I fix it?

    [
        {
            "url": "https://boozesounds.com/",
            "type": "is_home",
            "label": "Homepage",
            "amp_url": "https://boozesounds.com/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7180,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7180&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/language/en/how-to-display-only-the-title-without-displaying-the-list-of-posts-%c2%b7%c2%b7%c2%b7-in-oceanwp-theme/",
            "type": "is_singular[post]",
            "label": "?",
            "amp_url": "https://boozesounds.com/language/en/how-to-display-only-the-title-without-displaying-the-list-of-posts-%c2%b7%c2%b7%c2%b7-in-oceanwp-theme/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7395,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7395&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/language/en/information/",
            "type": "is_singular[page]",
            "label": "???",
            "amp_url": "https://boozesounds.com/language/en/information/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7206,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7206&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/language/ko/category/%ec%98%a8%eb%9d%bc%ec%9d%b8-%ec%8a%a4%ed%86%a0%eb%a6%ac/",
            "type": "is_tax[category]",
            "label": "????",
            "amp_url": "https://boozesounds.com/language/ko/category/%ec%98%a8%eb%9d%bc%ec%9d%b8-%ec%8a%a4%ed%86%a0%eb%a6%ac/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7357,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7357&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/language/ko/tag/%ec%9b%8c%eb%93%9c%ed%94%84%eb%a0%88%ec%8a%a4-%ed%94%8c%eb%9f%ac%ea%b7%b8%ec%9d%b8/",
            "type": "is_tax[post_tag]",
            "label": "??",
            "amp_url": "https://boozesounds.com/language/ko/tag/%ec%9b%8c%eb%93%9c%ed%94%84%eb%a0%88%ec%8a%a4-%ed%94%8c%eb%9f%ac%ea%b7%b8%ec%9d%b8/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7358,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7358&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/author/chordnote/",
            "type": "is_author",
            "label": "Author Archive",
            "amp_url": "https://boozesounds.com/author/chordnote/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7178,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7178&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/2022/",
            "type": "is_date",
            "label": "Date Archive",
            "amp_url": "https://boozesounds.com/2022/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7179,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7179&action=edit"
            }
        },
        {
            "url": "https://boozesounds.com/?s=example",
            "type": "is_search",
            "label": "Search Results",
            "amp_url": "https://boozesounds.com/?s=example",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "type": "text/javascript"
                    },
                    "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",
                    "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,
            "error": false,
            "validated_url_post": {
                "id": 7177,
                "edit_link": "https://boozesounds.com/wp-admin/post.php?post=7177&action=edit"
            }
        }
    ]

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I use polylang on the amp site without errors?’ is closed to new replies.