• Resolved theqreditor

    (@theqreditor)


    Hi Folks, using the AF Theme: Chromenews

    The Developers are confident it’s AMP compatible, but an AMP site scan says differently.

    I’m pasting the validation data below, cheers for any insights:

    [
        {
            "url": "https://theqr.co.uk/",
            "type": "is_front_page",
            "label": "Homepage",
            "amp_url": "https://theqr.co.uk/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://theqr.co.uk/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "chromenews-script",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sticky-sidebar",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "marquee",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "matchheight",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "magnific-popup",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sidr",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "bootstrap",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "slick-js",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "jquery",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "jquery-core"
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-void-menu"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 35,
                            "function": "chromenews_main_menu_nav_section",
                            "hook": "chromenews_action_main_menu_nav",
                            "priority": 40
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-dark-mode",
                        "data-site-mode": "aft-dark-mode",
                        "id": "aft-dark-light-mode-btn"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 126,
                            "function": "chromenews_dark_and_light_mode_section",
                            "hook": "chromenews_dark_and_light_mode",
                            "priority": 10
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "div",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "chromenews-script-js-extra"
                    },
                    "text": "\nvar AFlocalizedTime = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var AFlocalizedTime = {\"format\":\"en-US\"};",
                            "handle": "chromenews-script"
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://theqr.co.uk/blog-2/",
            "type": "is_home",
            "label": "Blog",
            "amp_url": "https://theqr.co.uk/blog-2/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://theqr.co.uk/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "chromenews-script",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sticky-sidebar",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "marquee",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "matchheight",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "magnific-popup",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sidr",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "bootstrap",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "slick-js",
                            "dependency_handle": "jquery-core"
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-void-menu"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 35,
                            "function": "chromenews_main_menu_nav_section",
                            "hook": "chromenews_action_main_menu_nav",
                            "priority": 40
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-dark-mode",
                        "data-site-mode": "aft-dark-mode",
                        "id": "aft-dark-light-mode-btn"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 126,
                            "function": "chromenews_dark_and_light_mode_section",
                            "hook": "chromenews_dark_and_light_mode",
                            "priority": 10
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "header",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "chromenews-script-js-extra"
                    },
                    "text": "\nvar AFlocalizedTime = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var AFlocalizedTime = {\"format\":\"en-US\"};",
                            "handle": "chromenews-script"
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://theqr.co.uk/category/music/",
            "type": "is_tax[category]",
            "label": "Category",
            "amp_url": "https://theqr.co.uk/category/music/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://theqr.co.uk/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "chromenews-script",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sticky-sidebar",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "marquee",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "matchheight",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "magnific-popup",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sidr",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "bootstrap",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "slick-js",
                            "dependency_handle": "jquery-core"
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-void-menu"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 35,
                            "function": "chromenews_main_menu_nav_section",
                            "hook": "chromenews_action_main_menu_nav",
                            "priority": 40
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-dark-mode",
                        "data-site-mode": "aft-dark-mode",
                        "id": "aft-dark-light-mode-btn"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 126,
                            "function": "chromenews_dark_and_light_mode_section",
                            "hook": "chromenews_dark_and_light_mode",
                            "priority": 10
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "header",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "chromenews-script-js-extra"
                    },
                    "text": "\nvar AFlocalizedTime = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var AFlocalizedTime = {\"format\":\"en-US\"};",
                            "handle": "chromenews-script"
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://theqr.co.uk/tag/humour/",
            "type": "is_tax[post_tag]",
            "label": "Tag",
            "amp_url": "https://theqr.co.uk/tag/humour/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://theqr.co.uk/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "chromenews-script",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sticky-sidebar",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "marquee",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "matchheight",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "magnific-popup",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sidr",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "bootstrap",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "slick-js",
                            "dependency_handle": "jquery-core"
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-void-menu"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 35,
                            "function": "chromenews_main_menu_nav_section",
                            "hook": "chromenews_action_main_menu_nav",
                            "priority": 40
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-dark-mode",
                        "data-site-mode": "aft-dark-mode",
                        "id": "aft-dark-light-mode-btn"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 126,
                            "function": "chromenews_dark_and_light_mode_section",
                            "hook": "chromenews_dark_and_light_mode",
                            "priority": 10
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "header",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "chromenews-script-js-extra"
                    },
                    "text": "\nvar AFlocalizedTime = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var AFlocalizedTime = {\"format\":\"en-US\"};",
                            "handle": "chromenews-script"
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://theqr.co.uk/2022/",
            "type": "is_date",
            "label": "Date Archive",
            "amp_url": "https://theqr.co.uk/2022/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://theqr.co.uk/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "chromenews-script",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sticky-sidebar",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "marquee",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "matchheight",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "magnific-popup",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sidr",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "bootstrap",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "slick-js",
                            "dependency_handle": "jquery-core"
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-void-menu"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 35,
                            "function": "chromenews_main_menu_nav_section",
                            "hook": "chromenews_action_main_menu_nav",
                            "priority": 40
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-dark-mode",
                        "data-site-mode": "aft-dark-mode",
                        "id": "aft-dark-light-mode-btn"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 126,
                            "function": "chromenews_dark_and_light_mode_section",
                            "hook": "chromenews_dark_and_light_mode",
                            "priority": 10
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "header",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "chromenews-script-js-extra"
                    },
                    "text": "\nvar AFlocalizedTime = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var AFlocalizedTime = {\"format\":\"en-US\"};",
                            "handle": "chromenews-script"
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://theqr.co.uk/?s=example",
            "type": "is_search",
            "label": "Search Results",
            "amp_url": "https://theqr.co.uk/?s=example",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://theqr.co.uk/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "chromenews-script",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sticky-sidebar",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "marquee",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "matchheight",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "magnific-popup",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "sidr",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "bootstrap",
                            "dependency_handle": "jquery-core"
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "handle": "slick-js",
                            "dependency_handle": "jquery-core"
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-void-menu"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 35,
                            "function": "chromenews_main_menu_nav_section",
                            "hook": "chromenews_action_main_menu_nav",
                            "priority": 40
                        }
                    ]
                },
                {
                    "code": "INVALID_URL_PROTOCOL",
                    "element_attributes": {
                        "href": "javascript:void(0)",
                        "class": "aft-dark-mode",
                        "data-site-mode": "aft-dark-mode",
                        "id": "aft-dark-light-mode-btn"
                    },
                    "node_name": "href",
                    "parent_name": "a",
                    "type": "html_attribute_error",
                    "node_type": 2,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 9,
                            "function": "chromenews_header_section",
                            "hook": "chromenews_action_header_section",
                            "priority": 40
                        },
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "inc/hooks/hook-header-section.php",
                            "line": 126,
                            "function": "chromenews_dark_and_light_mode_section",
                            "hook": "chromenews_dark_and_light_mode",
                            "priority": 10
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "header",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "chromenews-script-js-extra"
                    },
                    "text": "\nvar AFlocalizedTime = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "chromenews",
                            "file": "functions.php",
                            "line": 247,
                            "function": "chromenews_scripts",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var AFlocalizedTime = {\"format\":\"en-US\"};",
                            "handle": "chromenews-script"
                        }
                    ]
                }
            ],
            "stale": true
        }
    ]

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @theqreditor,

    In this case, the AF Theme is calling a JavaScript file which is not allowed by the AMP framework; you should contact the theme developers to solve the issue or use a compatible theme with the AMP version.

    I hope it will help.

    Plugin Support Milind More

    (@milindmore22)

    Hello @theqreditor

    Thank you for contacting us, The AF theme is adding custom javascript on AMP pages which is not allowed so the AMP plugin is blocking them because the AF theme is not AMP compatible.

    We have listed AMP-compatible themes on our site, you can use them or switch to Reader Mode and choose a different theme for AMP pages

    Plugin Support Milind More

    (@milindmore22)

    @theqreditor As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Surprising AMP incompatibility?’ is closed to new replies.