Title: URL validated and several errors
Last modified: November 8, 2019

---

# URL validated and several errors

 *  Resolved [chitrag135](https://wordpress.org/support/users/chitrag135/)
 * (@chitrag135)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/)
 * I got several errors in my site using AMP plugin I could not find solution to
   fix it.
    Sample error screenshot is in the link [https://ibb.co/6BKcZYr](https://ibb.co/6BKcZYr)
   [https://ibb.co/6J8Zcyg](https://ibb.co/6J8Zcyg)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Furl-validated-and-several-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12113992)
 * You are getting those validation errors because the theme and/or plugins on your
   site are not apparently AMP-compatible.
 * The AMP plugin removes markup that does not confirm to its [specification](https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/),
   and that includes CSS that goes above the 50KB limit (after the plugin tries 
   to minify it) and any custom JS scripts. Removal of JS can still result in an
   acceptable AMP experience as long as the theme/plugins are designed to gracefully
   degrade when JS is turned off in the browser. So it’s up to you to look at the
   site in AMP and decide whether the removal of the invalid markup is acceptable.
   If not, then you have three options:
    1. Switch to [AMP-compatible theme/plugins](https://amp-wp.org/ecosystem/).
    2. Create a child theme and/or custom plugins which prevent the output of invalid
       markup in favor of adding [AMP components](https://amp.dev/documentation/components/).
       As an example of this, see [this child theme](https://gist.github.com/westonruter/b904977a296da091584a7a2264df2882)
       of Noto Simple which adds AMP-compatibility. See [developer documentation](https://amp-wp.org/documentation/getting-started/getting-started-developers/).
    3. Lastly, switch to Reader mode. This will result in AMP pages that do not look
       the same as the rest of your site, but you shouldn’t have to do any work to 
       make it compatible.
 * The ecosystem of AMP-compatible themes and plugins is growing but it is still
   relatively small. So unless you are a developer, switching to Reader mode will
   likely be the best option for you unless you are able to switch theme/plugins.
 *  Thread Starter [chitrag135](https://wordpress.org/support/users/chitrag135/)
 * (@chitrag135)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12118962)
 * As I noticed my theme is not supporting AMP how can use this plugin
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12118975)
 * You can use Reader mode, if you want to use the Website experience.
 * Or if you don’t want to AMP for your Website, you can just enable the Stories
   experience. This is independent of your theme.
 *  [ellen413](https://wordpress.org/support/users/ellen413/)
 * (@ellen413)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12257453)
 * Hello,
    My site health is ‘good’ with only one recommendation for improvement,
   unrelated to AMP.
 * I started fooling around with AMP several weeks ago. I had several errors, but
   they all could be removed without consequence. However, I decided to switch themes
   from one that was not listed on the ‘ecosystem’ ([https://amp-wp.org/ecosystem/](https://amp-wp.org/ecosystem/))–
   to one that was on the list. Right after the theme switch, I got a new message:
 * URL validation failed to due to the absence of the expected JSON-containing AMP_VALIDATION
   HTML comment after </body>. This is often due to a PHP fatal error occurring.
   Please check your server PHP error logs; to do this you may need to enable WP_DEBUG_LOG.
   If you are stuck, please search the support forum for possible related topics,
   or otherwise start a new support topic including the error message, the URL to
   your site, and your active theme/plugins. Please include your Site Health Info.
 * My active theme is Zakra. I switched from OceanWP.
 * Active plugins:
    AMP Accelerated Mobile Pages (Addon mode) Site Kit by Google
   Akismet Share Buttons by AddThis Jetpack by WordPress MC4WP: Mailchimp for WordPress
   Rank Math SEO Smush Ultimate Blocks Updraft Plus
 * *I disabled W3 Total Cache based on older support forum threads, but I don’t 
   think that’s the problem.
 * Then again, I don’t know what I’m doing. I read the php debug stuff and I started
   to get a headache.
 * Thanks for any help/guidance you can give.
    Regards, Ellen
 *  [chakravarthi334](https://wordpress.org/support/users/chakravarthi334/)
 * (@chakravarthi334)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12257664)
 * Hello all recently all posts in my website are not showing properly and errors
   are showing for every post with this message and my website vigilant360.in and
   here is google search result link [https://www.google.com/amp/s/vigilant360.in/%3famp](https://www.google.com/amp/s/vigilant360.in/%3famp)
   
   There is content which fails AMP validation. Nevertheless, the invalid markup
   has been automatically removed. Review issues
 * Invalid elements: script (26)
 * Invalid attributes: onfocus, onblur, onclick (5)
    Please help me with this
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12257781)
 * [@chakravarthi334](https://wordpress.org/support/users/chakravarthi334/) [@ellen413](https://wordpress.org/support/users/ellen413/)
   Can you [create a new support topic](https://wordpress.org/support/plugin/amp#new-post)
   and we can assist from there?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘URL validated and several errors’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/url-validated-and-several-errors/#post-12257781)
 * Status: resolved