• Resolved mrwindowsx

    (@mrwindowsx)


    Jetpack not compatible while scan process done and generate errors below, i’m using twentytwenty theme which also have problem with amp I reported in my previous post:

    [
        {
            "url": "https://site.net/",
            "type": "is_front_page",
            "label": "Homepage",
            "amp_url": "https://site.net/",
            "validation_errors": [
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "input",
                    "parent_name": "p",
                    "node_attributes": {
                        "type": "email",
                        "name": "email",
                        "required": "required",
                        "class": "no-border-radius  required amp-wp-d267742",
                        "value": "",
                        "id": "subscribe-field-1",
                        "placeholder": "Type your email…",
                        "data-amp-original-style": "font-size: 16px;padding: 15px 23px 15px 23px;border-radius: 0px;border-width: 1px;"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "block_name": "jetpack/subscriptions",
                            "post_id": 617,
                            "block_content_index": 24,
                            "block_attrs": {
                                "showSubscribersTotal": true,
                                "className": "is-style-compact"
                            },
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "extensions/blocks/subscriptions/subscriptions.php",
                            "line": 364,
                            "function": "Automattic\\Jetpack\\Extensions\\Subscriptions\\render_block"
                        }
                    ]
                },
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "button",
                    "parent_name": "p",
                    "node_attributes": {
                        "type": "submit",
                        "class": "wp-block-button__link no-border-radius amp-wp-40b90e8",
                        "name": "jetpack_subscriptions_widget",
                        "data-amp-original-style": "font-size: 16px;padding: 15px 23px 15px 23px;margin: 0px; margin-left: 10px;border-radius: 0px;border-width: 1px;"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "block_name": "jetpack/subscriptions",
                            "post_id": 617,
                            "block_content_index": 24,
                            "block_attrs": {
                                "showSubscribersTotal": true,
                                "className": "is-style-compact"
                            },
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "extensions/blocks/subscriptions/subscriptions.php",
                            "line": 364,
                            "function": "Automattic\\Jetpack\\Extensions\\Subscriptions\\render_block"
                        }
                    ]
                },
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "div",
                    "parent_name": "body",
                    "node_attributes": {
                        "data-amp-original-style": "display:none",
                        "class": "amp-wp-cb45893"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "modules/gravatar-hovercards.php",
                            "line": 307,
                            "function": "grofiles_extra_data",
                            "hook": "wp_footer",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "link",
                    "node_attributes": {
                        "rel": "stylesheet",
                        "id": "mediaelement-css",
                        "href": "https://site.net/wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=__normalized__",
                        "media": "all"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "modules/contact-form/grunion-contact-form.php",
                            "line": 193,
                            "function": "Grunion_Contact_Form_Plugin::init",
                            "hook": "init",
                            "priority": 9,
                            "dependency_type": "style",
                            "handle": "wp-mediaelement",
                            "dependency_handle": "mediaelement"
                        },
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "modules/contact-form/grunion-contact-form.php",
                            "line": 193,
                            "function": "Grunion_Contact_Form_Plugin::init",
                            "hook": "init",
                            "priority": 9,
                            "dependency_type": "style",
                            "handle": "mediaelement"
                        }
                    ]
                }
            ],
            "stale": false
        },
        {
            "url": "https://site.net/what-are-bonds-investment/",
            "type": "is_singular[post]",
            "label": "Post",
            "amp_url": "https://site.net/what-are-bonds-investment/",
            "validation_errors": [
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "link",
                    "node_attributes": {
                        "rel": "stylesheet",
                        "id": "social-logos-css",
                        "href": "https://site.net/wp-content/plugins/jetpack/_inc/social-logos/social-logos.min.css?ver=__normalized__",
                        "media": "all"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "3rd-party/class.jetpack-amp-support.php",
                            "line": 441,
                            "function": "Jetpack_AMP_Support::amp_enqueue_sharing_css",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "style",
                            "handle": "sharedaddy-amp",
                            "dependency_handle": "social-logos"
                        },
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "class.jetpack.php",
                            "line": 1192,
                            "function": "Jetpack::register_assets",
                            "hook": "wp_loaded",
                            "priority": 10,
                            "dependency_type": "style",
                            "handle": "social-logos"
                        }
                    ]
                },
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "link",
                    "node_attributes": {
                        "rel": "stylesheet",
                        "id": "sharedaddy-amp-css",
                        "href": "https://site.net/wp-content/plugins/jetpack/modules/sharedaddy/amp-sharing.css?ver=__normalized__",
                        "media": "all"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "3rd-party/class.jetpack-amp-support.php",
                            "line": 441,
                            "function": "Jetpack_AMP_Support::amp_enqueue_sharing_css",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "style",
                            "handle": "sharedaddy-amp"
                        }
                    ]
                },
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "div",
                    "parent_name": "body",
                    "node_attributes": {
                        "data-amp-original-style": "display:none",
                        "class": "amp-wp-cb45893"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "modules/gravatar-hovercards.php",
                            "line": 307,
                            "function": "grofiles_extra_data",
                            "hook": "wp_footer",
                            "priority": 10
                        }
                    ]
                },
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "link",
                    "node_attributes": {
                        "rel": "stylesheet",
                        "id": "mediaelement-css",
                        "href": "https://site.net/wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=__normalized__",
                        "media": "all"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "modules/contact-form/grunion-contact-form.php",
                            "line": 193,
                            "function": "Grunion_Contact_Form_Plugin::init",
                            "hook": "init",
                            "priority": 9,
                            "dependency_type": "style",
                            "handle": "wp-mediaelement",
                            "dependency_handle": "mediaelement"
                        },
                        {
                            "type": "plugin",
                            "name": "jetpack",
                            "file": "modules/contact-form/grunion-contact-form.php",
                            "line": 193,
                            "function": "Grunion_Contact_Form_Plugin::init",
                            "hook": "init",
                            "priority": 9,
                            "dependency_type": "style",
                            "handle": "mediaelement"
                        }
                    ]
                }
            ],
            "stale": false
        }
    ]

    How to solve it? Please fix this issue! Thank you!

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jetpack not AMP compatible’ is closed to new replies.