• Hi,
    I have activated your SEOPRESS Plugin on my site where AMP plugin was already activated. It is showing AMP Validation errors. The AMP Validation data is given below:

    [
        {
            "url": "https://bestlaptopsexpert.com/",
            "type": "is_home",
            "label": "Homepage",
            "amp_url": "https://bestlaptopsexpert.com/",
            "validation_errors": [
                {
                    "code": "CUSTOM_EXTERNAL_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                    },
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "CUSTOM_INLINE_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                }
            ],
            "stale": false,
            "error": false,
            "validated_url_post": {
                "id": 4501,
                "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4501&action=edit"
            }
        },
        {
            "url": "https://bestlaptopsexpert.com/why-is-my-mouse-not-working-on-chromebook/",
            "type": "is_singular[post]",
            "label": "Post",
            "amp_url": "https://bestlaptopsexpert.com/why-is-my-mouse-not-working-on-chromebook/",
            "validation_errors": [
                {
                    "code": "CUSTOM_EXTERNAL_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                    },
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "CUSTOM_INLINE_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                }
            ],
            "stale": false,
            "error": false,
            "validated_url_post": {
                "id": 4598,
                "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4598&action=edit"
            }
        },
        {
            "url": "https://bestlaptopsexpert.com/home-page/",
            "type": "is_singular[page]",
            "label": "Page",
            "amp_url": "https://bestlaptopsexpert.com/home-page/",
            "validation_errors": [
                {
                    "code": "CUSTOM_EXTERNAL_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                    },
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "CUSTOM_INLINE_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                }
            ],
            "stale": false,
            "error": false,
            "validated_url_post": {
                "id": 4502,
                "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4502&action=edit"
            }
        },
        {
            "url": "https://bestlaptopsexpert.com/buyers-guide/",
            "type": "is_tax[category]",
            "label": "Category",
            "amp_url": "https://bestlaptopsexpert.com/buyers-guide/",
            "validation_errors": [
                {
                    "code": "CUSTOM_EXTERNAL_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                    },
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "CUSTOM_INLINE_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                }
            ],
            "stale": false,
            "error": false,
            "validated_url_post": {
                "id": 4506,
                "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4506&action=edit"
            }
        },
        {
            "url": "https://bestlaptopsexpert.com/2022/",
            "type": "is_date",
            "label": "Date Archive",
            "amp_url": "https://bestlaptopsexpert.com/2022/",
            "validation_errors": [
                {
                    "code": "CUSTOM_EXTERNAL_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                    },
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "CUSTOM_INLINE_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                }
            ],
            "stale": false,
            "error": false,
            "validated_url_post": {
                "id": 4504,
                "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4504&action=edit"
            }
        },
        {
            "url": "https://bestlaptopsexpert.com/?s=example",
            "type": "is_search",
            "label": "Search Results",
            "amp_url": "https://bestlaptopsexpert.com/?s=example",
            "validation_errors": [
                {
                    "code": "CUSTOM_EXTERNAL_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=UA-141207840-2"
                    },
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "CUSTOM_INLINE_SCRIPT",
                    "node_name": "script",
                    "parent_name": "head",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}gtag(__SINGLE_QUOTED_STRING__, new Date());\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__ , {__SINGLE_QUOTED_STRING__: false,});\n\n",
                    "node_type": 1,
                    "sandboxing_level": 2,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options-google-analytics.php",
                            "line": 822,
                            "function": "seopress_google_analytics_js",
                            "hook": "seopress_google_analytics_html",
                            "priority": 10
                        }
                    ]
                }
            ],
            "stale": false,
            "error": false,
            "validated_url_post": {
                "id": 4505,
                "edit_link": "https://bestlaptopsexpert.com/wp-admin/post.php?post=4505&action=edit"
            }
        }
    ]

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    did you try to use the Transitional mode from AMP Settings?

    Which settings are you using please?

    Thx

    I got the same error, and I am using SEOPress.. I am using Reader mode for the AMP default Twenty Twenty as mobile theme

    [
        {
            "url": "https://latestngnews.com/heartwarming-moment-nigerian-man-surprised-his-mother-in-a-lagos-market-with-cake-and-music-on-her-birthdayvideo/",
            "type": "is_singular[post]",
            "label": "Post",
            "amp_url": "https://latestngnews.com/heartwarming-moment-nigerian-man-surprised-his-mother-in-a-lagos-market-with-cake-and-music-on-her-birthdayvideo/amp/",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://latestngnews.com/wp-includes/js/jquery/jquery.min.js?ver=__normalized__",
                        "id": "jquery-core-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options.php",
                            "line": 320,
                            "function": "seopress_google_analytics_cookies_js",
                            "hook": "wp_enqueue_scripts",
                            "priority": 20,
                            "dependency_type": "script",
                            "handle": "seopress-cookies-ajax",
                            "dependency_handle": "jquery-core"
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://latestngnews.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=__normalized__",
                        "id": "jquery-migrate-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options.php",
                            "line": 320,
                            "function": "seopress_google_analytics_cookies_js",
                            "hook": "wp_enqueue_scripts",
                            "priority": 20,
                            "dependency_type": "script",
                            "handle": "seopress-cookies-ajax",
                            "dependency_handle": "jquery-migrate"
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://latestngnews.com/wp-content/plugins/wp-seopress/assets/js/seopress-cookies.min.js?ver=__normalized__",
                        "id": "seopress-cookies-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options.php",
                            "line": 320,
                            "function": "seopress_google_analytics_cookies_js",
                            "hook": "wp_enqueue_scripts",
                            "priority": 20,
                            "dependency_type": "script",
                            "handle": "seopress-cookies-ajax",
                            "dependency_handle": "seopress-cookies"
                        },
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options.php",
                            "line": 320,
                            "function": "seopress_google_analytics_cookies_js",
                            "hook": "wp_enqueue_scripts",
                            "priority": 20,
                            "dependency_type": "script",
                            "handle": "seopress-cookies"
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "id": "seopress-cookies-ajax-js-extra"
                    },
                    "text": "\nvar seopressAjaxGAUserConsent = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options.php",
                            "line": 320,
                            "function": "seopress_google_analytics_cookies_js",
                            "hook": "wp_enqueue_scripts",
                            "priority": 20,
                            "dependency_type": "script",
                            "extra_key": "data",
                            "text": "var seopressAjaxGAUserConsent = {\"seopress_nonce\":\"75b2c31fc6\",\"seopress_cookies_user_consent\":\"https:\\/\\/latestngnews.com\\/wp-admin\\/admin-ajax.php\",\"seopress_cookies_expiration_days\":\"30\"};",
                            "handle": "seopress-cookies-ajax"
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "body",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "src": "https://latestngnews.com/wp-content/plugins/wp-seopress/assets/js/seopress-cookies-ajax.min.js?ver=__normalized__",
                        "id": "seopress-cookies-ajax-js"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "wp-seopress",
                            "file": "inc/functions/options.php",
                            "line": 320,
                            "function": "seopress_google_analytics_cookies_js",
                            "hook": "wp_enqueue_scripts",
                            "priority": 20,
                            "dependency_type": "script",
                            "handle": "seopress-cookies-ajax"
                        }
                    ]
                }
            ],
            "stale": true
        }
    ]
    
    • This reply was modified 3 years, 9 months ago by Clemzy.
    • This reply was modified 3 years, 9 months ago by Clemzy.
    • This reply was modified 3 years, 9 months ago by Clemzy.
    Plugin Author Benjamin Denis

    (@rainbowgeek)

    @clemzy we’ll take care of this with our next update (ETA: next week, first iteration).

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

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