Archived topic
Plugin with AMP incompatibility
3 replies · Started by Eugene on July 6, 2022
Hello
After updates received this error in AMP plugin.
GP Premium by Tom Usborne Version 2.1.2
https://duomit.com/(opens in a new tab)
https://duomit.com/synthetic-floor-10-year-warranty/(opens in a new tab)
https://duomit.com/industries/brewery-flooring/(opens in a new tab)
https://duomit.com/category/resources/(opens in a new tab)
https://duomit.com/2022/(opens in a new tab)
https://duomit.com/?s=example(opens in a new tab)
Raw validation data which you may want to share with the author so they can fix AMP compatibility:
[
{
"url": "https://duomit.com/",
"type": "is_front_page",
"label": "Homepage",
"amp_url": "https://duomit.com/?amp=1",
"validation_errors": [
{
"node_name": "script",
"parent_name": "body",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\r\nccConVal = __INT__;\r\nvar script = document.createElement(__DOUBLE_QUOTED_STRING__);\r\nscript.async = true;\r\nscript.type = __DOUBLE_QUOTED_STRING__;\r\nvar target = __SINGLE_QUOTED_STRING__;\r\nscript.src = target; var elem = document.head; elem.appendChild(script);\r\n",
"node_type": 1,
"sources": [
{
"type": "plugin",
"name": "gp-premium",
"file": "elements/class-hooks.php",
"line": 205,
"function": "GeneratePress_Hook::execute_hook",
"hook": "wp_body_open",
"priority": 10
}
]
}
],
"stale": false,
"error": false,
"validated_url_post": {
"id": 6596,
"edit_link": "https://duomit.com/wp-admin/post.php?post=6596&action=edit"
}
},
{
"url": "https://duomit.com/synthetic-floor-10-year-warranty/",
"type": "is_singular[post]",
"label": "Post",
"amp_url": "https://duomit.com/synthetic-floor-10-year-warranty/?amp=1",
"validation_errors": [
{
"node_name": "script",
"parent_name": "body",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\r\nccConVal = __INT__;\r\nvar script = document.createElement(__DOUBLE_QUOTED_STRING__);\r\nscript.async = true;\r\nscript.type = __DOUBLE_QUOTED_STRING__;\r\nvar target = __SINGLE_QUOTED_STRING__;\r\nscript.src = target; var elem = document.head; elem.appendChild(script);\r\n",
"node_type": 1,
"sources": [
{
"type": "plugin",
"name": "gp-premium",
"file": "elements/class-hooks.php",
"line": 205,
"function": "GeneratePress_Hook::execute_hook",
"hook": "wp_body_open",
"priority": 10
}
]
}
],
"stale": false,
"error": false,
"validated_url_post": {
"id": 6782,
"edit_link": "https://duomit.com/wp-admin/post.php?post=6782&action=edit"
}
},
{
"url": "https://duomit.com/industries/brewery-flooring/",
"type": "is_singular[page]",
"label": "Page",
"amp_url": "https://duomit.com/industries/brewery-flooring/?amp=1",
"validation_errors": [
{
"node_name": "script",
"parent_name": "body",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\r\nccConVal = __INT__;\r\nvar script = document.createElement(__DOUBLE_QUOTED_STRING__);\r\nscript.async = true;\r\nscript.type = __DOUBLE_QUOTED_STRING__;\r\nvar target = __SINGLE_QUOTED_STRING__;\r\nscript.src = target; var elem = document.head; elem.appendChild(script);\r\n",
"node_type": 1,
"sources": [
{
"type": "plugin",
"name": "gp-premium",
"file": "elements/class-hooks.php",
"line": 205,
"function": "GeneratePress_Hook::execute_hook",
"hook": "wp_body_open",
"priority": 10
}
]
}
],
"stale": false,
"error": false,
"validated_url_post": {
"id": 6598,
"edit_link": "https://duomit.com/wp-admin/post.php?post=6598&action=edit"
}
},
{
"url": "https://duomit.com/category/resources/",
"type": "is_tax[category]",
"label": "Category",
"amp_url": "https://duomit.com/category/resources/?amp=1",
"validation_errors": [
{
"node_name": "script",
"parent_name": "body",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\r\nccConVal = __INT__;\r\nvar script = document.createElement(__DOUBLE_QUOTED_STRING__);\r\nscript.async = true;\r\nscript.type = __DOUBLE_QUOTED_STRING__;\r\nvar target = __SINGLE_QUOTED_STRING__;\r\nscript.src = target; var elem = document.head; elem.appendChild(script);\r\n",
"node_type": 1,
"sources": [
{
"type": "plugin",
"name": "gp-premium",
"file": "elements/class-hooks.php",
"line": 205,
"function": "GeneratePress_Hook::execute_hook",
"hook": "wp_body_open",
"priority": 10
}
]
}
],
"stale": false,
"error": false,
"validated_url_post": {
"id": 6599,
"edit_link": "https://duomit.com/wp-admin/post.php?post=6599&action=edit"
}
},
{
"url": "https://duomit.com/2022/",
"type": "is_date",
"label": "Date Archive",
"amp_url": "https://duomit.com/2022/?amp=1",
"validation_errors": [
{
"node_name": "script",
"parent_name": "body",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\r\nccConVal = __INT__;\r\nvar script = document.createElement(__DOUBLE_QUOTED_STRING__);\r\nscript.async = true;\r\nscript.type = __DOUBLE_QUOTED_STRING__;\r\nvar target = __SINGLE_QUOTED_STRING__;\r\nscript.src = target; var elem = document.head; elem.appendChild(script);\r\n",
"node_type": 1,
"sources": [
{
"type": "plugin",
"name": "gp-premium",
"file": "elements/class-hooks.php",
"line": 205,
"function": "GeneratePress_Hook::execute_hook",
"hook": "wp_body_open",
"priority": 10
}
]
}
],
"stale": false,
"error": false,
"validated_url_post": {
"id": 6601,
"edit_link": "https://duomit.com/wp-admin/post.php?post=6601&action=edit"
}
},
{
"url": "https://duomit.com/?s=example",
"type": "is_search",
"label": "Search Results",
"amp_url": "https://duomit.com/?s=example&=1",
"validation_errors": [
{
"node_name": "script",
"parent_name": "body",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\r\nccConVal = __INT__;\r\nvar script = document.createElement(__DOUBLE_QUOTED_STRING__);\r\nscript.async = true;\r\nscript.type = __DOUBLE_QUOTED_STRING__;\r\nvar target = __SINGLE_QUOTED_STRING__;\r\nscript.src = target; var elem = document.head; elem.appendChild(script);\r\n",
"node_type": 1,
"sources": [
{
"type": "plugin",
"name": "gp-premium",
"file": "elements/class-hooks.php",
"line": 205,
"function": "GeneratePress_Hook::execute_hook",
"hook": "wp_body_open",
"priority": 10
}
]
}
],
"stale": false,
"error": false,
"validated_url_post": {
"id": 6600,
"edit_link": "https://duomit.com/wp-admin/post.php?post=6600&action=edit"
}
}
]
Hi there,
dou have any code added to your site in a GP Hook element ?
Thanks, David. I removed the hook, and it resolved.
Glad to hear that!