• Hi.

    Since last version of AMP (19/09), all my pages have two problems:

    The mandatory tag ‘html doctype’ is missing or incorrect.
    The mandatory tag ‘body’ is missing or incorrect.

    The first solve included <!doctype html> in the plugin, but second i don’t know. All post have body tag, and i think that all its ok.

    Are you working in these problems, or i would change to hand the plugin?

    Thanks!

    • This topic was modified 8 years, 5 months ago by PabloYglesias.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Same issue here but more of them. Not sure who should be looking at this. The AMP plugin team or the theme developers.

    As reported by Search Console

    AMP markup missing or incorrect

    The property ‘minimum-scale’ is missing from attribute ‘content’ in tag ‘meta name=viewport’.
    The mandatory text (CDATA) inside tag ‘head > style[amp-boilerplate] – old variant’ is missing or incorrect.

    Prohibited HTML Tag with AMP equivalent

    The tag ‘img’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-img’?

    Prohibited or invalid use of HTML Tag

    Invalid URL protocol ‘http:’ for attribute ‘src’ in tag ‘img’.
    The parent tag of tag ‘noscript > style[amp-boilerplate] – old variant’ is ‘head’, but it can only be ‘noscript’.
    The attribute ‘onclick’ may not appear in tag ‘a’.
    The mandatory attribute ‘amp-custom’ is missing in tag ‘style amp-custom’.

    Info: Missing structured data element

    Invalid CSS stylesheet

    The attribute ‘href’ in tag ‘link rel=stylesheet for fonts’ is set to the invalid value

    User-authored JavaScript found on page

    The tag ‘script’ is disallowed except in specific forms.

    Try to use this Toolbox plugin with AMP, it has support for alot of validation issues: https://www.ads-software.com/plugins/accelerated-mobile-pages/

    Thread Starter PabloYglesias

    (@pabloyglesias)

    I find the problem.

    I use Easy Social Share Buttons for WordPress AMP Toolbox, and this plugin include a script top of doctype tag.

    Delete plugin and all its find. Now waiting Google crawlers return again :).

    And testing your plugin Ahmed. Good job, but i think that your Facebook share button API doesn’t works.

    When include traslation into spanish (or manually by wp-admin)?

    Hello!!

    I am getting so many errors in serach console and I do not know what to do, could you please help me?

    Hello!!

    I am getting so many errors in serach console and I do not know what to do, could you please help me?

    4,030 AMP pages with errors (excludes info issues)

    Issue Pages with issues
    1 Prohibited or invalid use of HTML Tag 4,030
    2 User-authored JavaScript found on page 4,029
    3 Invalid CSS stylesheet 3,975
    4 Info: Invalid structured data element 231
    5 Invalid usage of AMP tags 12
    6 AMP markup missing or incorrect 10
    7 Info: Missing structured data element 9
    8 Prohibited HTML Tag with AMP equivalent 9
    9 Invalid layout property found in AMP tag 6

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search console errors’ is closed to new replies.