• I have been trying to implement AMP but its not passing through the validation process.

    These are the errors:
    1. The attribute ‘type’ in tag ‘script type=application/ld+json’ is set to the invalid value ‘text/javascript’.
    2. The parent tag of tag ‘script’ is ‘body’, but it can only be ‘head’.

    These are the various things I already tried:
    1. Checked with and without Cloudflare.
    2. Deactivated various plugins and tested but it didn’t work.
    3. Check with the webmaster tools and there are no errors found.

    Currently my website is on Ngnix-PHP5.

    So, when I tested it on a completely different server hosted on Apache Cpanel, the AMP Validation was successful.

    I contacted my server provider, he recommended to contact you directly.

    I have few questions:
    1. Does the validation have anything to do with the server hosting?
    2. If so, then will it work on my Nginx-PHP5 server?
    3. How can the issue be solved?

    Expecting a solution. Thanks!

    https://wordpress.org/plugins/amp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • validation have no server issue but you need to check the browser error console for that is that showing any error for your or conflict-ion with j query files try to use jQuery.noConflict() or $.noConflict() if using previous j query files

    or try to use use google library if its jquery issue.

    oskerlau

    (@oskerlau)

    I also have an error:

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

    <script type=’text/javascript’ src=’h/wp-includes/js/jquery/jquery.js?ver=1.11.3′></script>

    <script type=’text/javascript’ src=’/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1′></script>

    mdotk

    (@mdotk)

    I have read you need to disable any caching for AMP pages, including via Google Pagespeed.

    I have similar errors and am going to try resolve it this week.

    mdotk

    (@mdotk)

    I fixed the issue by adding this to my PageSpeed .conf file:

    pagespeed Disallow */amp/*;

    Now passing AMP validation!

    neotrope

    (@neotrope)

    Note, it may be your host needs to update their copy of mod_pagespeed to one of the versions pushed in 2016.

    Our version of mod_pagespeed on Apache/Linux, already by default does not mess with /amp/ pages — since Google makes mod_pagespeed they have been on top of that.

    MPS not causing any issues or “injecting” code into /amp/ endpoints.

    Hello Friends,

    I Tried to use AMP Plugin, but my post not showing Content. In AMP url show only Feature Image & Blob tile. Here you can check.

    Original : http://blog.softwaresuggest.com/ways-performance-management-revolutionizing-hrm

    AMP : http://blog.softwaresuggest.com/ways-performance-management-revolutionizing-hrm/amp/

    Please help or update.

    Thank you,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Validation Error – Does AMP has anything to do with server config?’ is closed to new replies.