Title: AMP 1.3.0 Validation Errors
Last modified: October 2, 2019

---

# AMP 1.3.0 Validation Errors

 *  Resolved [mddsharp](https://wordpress.org/support/users/mddsharp/)
 * (@mddsharp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/)
 * I just updated to AMP 1.3.0 and discovered that all posts and categories now 
   do not validate saying that ?php is not allowed.
 * [https://ccountync.com/cedar-island-nc-wild-horses-lost-during-hurricane-dorian-2019/?amp](https://ccountync.com/cedar-island-nc-wild-horses-lost-during-hurricane-dorian-2019/?amp)

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11987950)
 * I can see this on the non-AMP version of the page as well: [https://ccountync.com/cedar-island-nc-wild-horses-lost-during-hurricane-dorian-2019/](https://ccountync.com/cedar-island-nc-wild-horses-lost-during-hurricane-dorian-2019/)
 *     ```
       <?php
       $schema = get_post_meta(get_the_ID(), 'schema', true);
       if(!empty($schema)) {
       echo $schema;
       }
       ?>
       ```
   
 * You should identify which theme/plugin is incorrectly adding that to the page.
   It appears to be a bug on your site.
 * That being said, the AMP plugin should be removing that as well as a validation
   error. But the underlying problem seems to be a bug in your theme/plugin.
 *  Thread Starter [mddsharp](https://wordpress.org/support/users/mddsharp/)
 * (@mddsharp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11987962)
 * OK, I have some digging to do. All posts and categories were AMP valid before
   the 1.3.0 update. I check all validations each time I make a post. There have
   been no theme updates in several months.
 * The only updates I have had is Yoast and AMP in the past month. Possible the 
   Yoast update could be affecting this?
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11987982)
 * Here is a workaround plugin to restore the removal of processing instructions:
   [https://gist.github.com/westonruter/96ae3cb713051aae867b874196eef910](https://gist.github.com/westonruter/96ae3cb713051aae867b874196eef910)
 * For the full fix, please follow [https://github.com/ampproject/amp-wp/issues/3409](https://github.com/ampproject/amp-wp/issues/3409)
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11987989)
 * You’ll have to search through the codebase for your theme and plugins to find
   the code above and who is responsible for adding it.
 *  Thread Starter [mddsharp](https://wordpress.org/support/users/mddsharp/)
 * (@mddsharp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11988005)
 * Just installed the workaround, cleared cache and confirm everything is now AMP
   valid.
 * This has to be an issue with Yoast SEO 12.2 since I have had ZERO plugin/theme
   updates for the past month, then today AMP 1.3.0 and Yoast 12.2
 * I have linked a support item on the Yoast page to this post.
 *  [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990160)
 * So … it isn’t safe to install AMP 1.3?
 *  Plugin Author [Pascal Birchler](https://wordpress.org/support/users/swissspidy/)
 * (@swissspidy)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990338)
 * [@the-dude-1](https://wordpress.org/support/users/the-dude-1/) It is totally 
   safe to install AMP 1.3. The issue discussed here is a very specific and rare
   issue on the respective website.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990507)
 * And if you do happen to have the issue, it is to work around by using the [extension plugin](https://gist.github.com/westonruter/96ae3cb713051aae867b874196eef910).
 *  [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990769)
 * [@swissspidy](https://wordpress.org/support/users/swissspidy/) … but i also have
   Yoast 12.2 Premium installed. ;(
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990777)
 * [@swissspidy](https://wordpress.org/support/users/swissspidy/) Does the same 
   AMP validation error occur? Then simply install this additional plugin: [https://gist.github.com/westonruter/96ae3cb713051aae867b874196eef910](https://gist.github.com/westonruter/96ae3cb713051aae867b874196eef910)
 *  [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * (@the-dude-1)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990784)
 * I’ll try. Big thx in advance 2 u [@westonruter](https://wordpress.org/support/users/westonruter/)
   🙂
    -  This reply was modified 6 years, 8 months ago by [The-Dude](https://wordpress.org/support/users/the-dude-1/).

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

The topic ‘AMP 1.3.0 Validation 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/)

 * 11 replies
 * 4 participants
 * Last reply from: [The-Dude](https://wordpress.org/support/users/the-dude-1/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/amp-1-3-0-validation-errors/#post-11990784)
 * Status: resolved