• Resolved Danishsard

    (@danishsard)


    Hello, in the Google AMP plugins, I get a message about the plugin’s incompatibility with the AMP code.

    With more and more pages being AMP, it might be worth considering compatibility. I get this message:

    [
        {
            "url": "https://totemat.pl/",
            "type": "is_home",
            "label": "Homepage",
            "amp_url": "https://totemat.pl/?amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(__SINGLE_QUOTED_STRING__, new Date());\n\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__);\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://totemat.pl/informacje/",
            "type": "is_singular[page]",
            "label": "Strona",
            "amp_url": "https://totemat.pl/informacje/?amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://totemat.pl/kategoria/lifestyle/",
            "type": "is_tax[category]",
            "label": "Kategoria",
            "amp_url": "https://totemat.pl/kategoria/lifestyle/?amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(__SINGLE_QUOTED_STRING__, new Date());\n\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__);\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://totemat.pl/tag/budyn/",
            "type": "is_tax[post_tag]",
            "label": "Tag",
            "amp_url": "https://totemat.pl/tag/budyn/?amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(__SINGLE_QUOTED_STRING__, new Date());\n\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__);\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://totemat.pl/author/tomhetm8plmanth/",
            "type": "is_author",
            "label": "Author Archive",
            "amp_url": "https://totemat.pl/author/tomhetm8plmanth/?amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(__SINGLE_QUOTED_STRING__, new Date());\n\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__);\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://totemat.pl/2022/",
            "type": "is_date",
            "label": "Date Archive",
            "amp_url": "https://totemat.pl/2022/?amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(__SINGLE_QUOTED_STRING__, new Date());\n\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__);\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        },
        {
            "url": "https://totemat.pl/?s=example",
            "type": "is_search",
            "label": "Search Results",
            "amp_url": "https://totemat.pl/?s=example&amp=1",
            "validation_errors": [
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": {
                        "async": "",
                        "src": "https://www.googletagmanager.com/gtag/js?id=G-0CW0QEMCNP"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                },
                {
                    "node_name": "script",
                    "parent_name": "head",
                    "code": "DISALLOWED_TAG",
                    "type": "js_error",
                    "node_attributes": [],
                    "text": "\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(__SINGLE_QUOTED_STRING__, new Date());\n\ngtag(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__);\n",
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "all-in-one-seo-pack",
                            "file": "app/Common/Main/Head.php",
                            "line": 88,
                            "function": "AIOSEO\\Plugin\\Common\\Main\\Head::init",
                            "hook": "wp_head",
                            "priority": 1
                        }
                    ]
                }
            ],
            "stale": true
        }
    ]
Viewing 1 replies (of 1 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @danishsard,

    Thank you for reporting this.

    I was able to reproduce the issue and have developed a fix for this that will be included in our next major version, which is scheduled for early November.

Viewing 1 replies (of 1 total)

The topic ‘AMP problem in plug’ is closed to new replies.