• Resolved egyft

    (@egyft)


    Hello,

    I have installed the WP plugin ‘AMP’ on my website kingfut.com, and it seems to be working fine if I add /amp/ at the end of the URL via mobile, but I have a couple concerns.

    1) When I enter my URL in https://validator.ampproject.org/ it shows me that the AMP status is a FAIL. I’m not sure what the error messages mean, how do I solve them?

    2) When I search via google for my content it doesn’t appear in AMP format (I’m assuming this is just something that takes time, just making sure).

    Thanks,
    Adam

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Adam,

    Could you add more info about the errors shown in the console? Each type of error give you a link with related info about itself.

    Regards!

    Thread Starter egyft

    (@egyft)

    Hi David,

    Thanks for the speedy reply. I’ve listed some of the various errors below:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    The attribute ‘public’ may not appear in tag ‘html doctype’. Learn more.
    The attribute ‘”-//w3c//dtd’ may not appear in tag ‘html doctype’. Learn more.
    The attribute ‘xhtml’ may not appear in tag ‘html doctype’. Learn more.
    The attribute ‘1.0’ may not appear in tag ‘html doctype’. Learn more.
    The attribute ‘transitional//en”‘ may not appear in tag ‘html doctype’. Learn more.

    The attribute ‘”https://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd”&#8216; may not appear in tag ‘html doctype’. Learn more.

    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; lang=”en-GB” prefix=”og: https://ogp.me/ns# fb: https://ogp.me/ns/fb#”&gt;
    The attribute ‘xmlns’ may not appear in tag ‘html ? for top-level html’. Learn more.

    <head>
    <meta name=”google-site-verification” content=”opNMJt7OZ61bRS2-yzuYOpCJo6YwvvJRY7AZQ34kaXY” />
    <meta name=”msvalidate.01″ content=”314A11C1160A0F9101ED0CF2F8DE5DEF” />
    <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
    <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″ />
    The property ‘minimum-scale’ is missing from attribute ‘content’ in tag ‘meta name=viewport’. Learn more.

    For addional info, here is the link of a sample test: https://validator.ampproject.org/#url=http%3A%2F%2Fwww.kingfut.com%2F2017%2F08%2F04%2Fphil-thompson-salah-liverpool%2F

    Best Regards,
    Adam

    Hi again Adam,

    are you sure you are validating the right URL? I just tried with this post and the validator passes without errors, as you can see here.

    Please notice that you should put the amp/ part at the end of your regular URL.

    Regards,
    David

    Thread Starter egyft

    (@egyft)

    Hi David,

    Thank you for the clarification, I did not realize I needed to add the amp/ at the end for the validator to confirm it’s working correctly.

    Is this the only way to view AMP URLs? I tried searching for some of my content on google search via mobile after installing the plugin but none are automatically displaying in AMP format.

    Best Regards,
    Adam

    Howdy!

    Answering your question, that is the only way you can see your AMP-formatted content. But that does not mean you wasted your time.

    In a few days, Google’s engine should index the AMP version of your posts and show it in the mobile search page when is relevant. Anyway, if you use Google Search Console you will be able to know which AMP pages of your site are being indexed by Google.

    Please check this and this.

    If you are satisfied, please mark this topic as resolved.

    Best regards,
    David.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘AMP Validator Fail’ is closed to new replies.