Validation Error – Does AMP has anything to do with server config?
-
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!
- The topic ‘Validation Error – Does AMP has anything to do with server config?’ is closed to new replies.