Title: Problem with AMP plugin
Last modified: October 10, 2016

---

# Problem with AMP plugin

 *  Resolved [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/)
 * Hello, after updating AMP plugin, Google considers that amp code is incorrect
   and it’s relative to All in One SEO (after desactivating All in One SEO the test
   is OK). See thread here: [https://wordpress.org/support/topic/amp-errors-since-updating-plugin/#post-8271112](https://wordpress.org/support/topic/amp-errors-since-updating-plugin/#post-8271112)
 * Error: <html amp lang=”fr-FR”
    itemscope itemtype=”[http://schema.org/Article&#8221](http://schema.org/Article&#8221);
   prefix=”og: [http://ogp.me/ns#&#8221](http://ogp.me/ns#&#8221); >
 * I had no error with previous AMP plugin version.

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

 *  [Alex Lion (阿力獅)](https://wordpress.org/support/users/alexclassroom/)
 * (@alexclassroom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8274774)
 * Hi,
 * I have same problem, the followings are the validation status from Google official
   AMP Validator.
    1. The attribute ‘prefix’ may not appear in tag ‘html ⚡ for 
   top-level html’. 2. The mandatory tag ‘html ⚡ for top-level html’ is missing
   or incorrect.
 * After disabling All in One SEO plugin, the error messages are gone.
 * Please help me to resolve this issue, thanks a lots.
 *  [Alex Lion (阿力獅)](https://wordpress.org/support/users/alexclassroom/)
 * (@alexclassroom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8276080)
 * Hi Li-An,
 * I found the default enabled option “Use Schema.org Markup” caused this issue.
 * Disabling it can resolve this, but I don’t know why.
 * I think we need developer to tell us why and he might fix it soon.
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8276309)
 * We are aware of this and are removing that code in a release due out soon. For
   now, you can just use the option for Use Schema.org Markup to remove this.
    -  This reply was modified 9 years, 7 months ago by [Steve M](https://wordpress.org/support/users/wpsmort/).
 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8276633)
 * 2.3.10.1 has been released which should fix this issue.
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8277493)
 * I’ve got still an error: The attribute ‘prefix’ may not appear in tag ‘html ⚡
   for top-level html’.
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8277791)
 * That prefix declares that the page is a rich object in a social graph. It’s required
   for the Open Graph Protocol ([http://ogp.me/](http://ogp.me/)) and is supported
   by Facebook ([https://developers.facebook.com/docs/reference/opengraph/object-type/website/](https://developers.facebook.com/docs/reference/opengraph/object-type/website/))
   and Google ([https://developers.google.com/web/fundamentals/discovery-and-monetization/social-discovery/](https://developers.google.com/web/fundamentals/discovery-and-monetization/social-discovery/)).
 * I’ve opened an issue ([https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/577](https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/577))
   to look into removing this but we’ll need to be careful in case this has an impact
   on Open Graph social sharing which is a major feature of our plugin.
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8278051)
 * In the meantime, here’s some code you can add to the functions.php file in your
   active theme that will remove the prefix on AMP pages:
 *     ```
       add_action( 'pre_get_posts', 'aio_amp_remove_my_ogp' );
       function aio_amp_remove_my_ogp(){
       	$aio_queries =	get_query_var( 'amp' );
   
       	if(!empty($aio_queries) && $aio_queries === 1){
       		add_filter( 'aiosp_opengraph_attributes', 'aio_remove_my_att' );	
       	}
       }
   
       function aio_remove_my_att( $att ){
       	$att = array();
       	return $att;
       }
       ```
   
    -  This reply was modified 9 years, 7 months ago by [Steve M](https://wordpress.org/support/users/wpsmort/).
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8280703)
 * Thanks for quick answer. In fact, I have two errors:
    _The attribute ‘prefix’
   may not appear in tag ‘html ⚡ for top-level html’. The mandatory tag ‘html ⚡
   for top-level html’ is missing or incorrect.
 *  [dnorenberg](https://wordpress.org/support/users/dnorenberg/)
 * (@dnorenberg)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8350793)
 * Experiencing the same errors here. Google Webmaster Tools shows the error for
   a second then clears but still going against my error stats and most likely publish
   status. Please update us if you can.
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8351928)
 * [@dnorenberg](https://wordpress.org/support/users/dnorenberg/): as it says, the
   problem is solved for me with last version of AMP and All in One SEO versions.
   So you have to search for another problem – clear cache plugin?

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

The topic ‘Problem with AMP plugin’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

## Tags

 * [amp html](https://wordpress.org/support/topic-tag/amp-html/)

 * 10 replies
 * 5 participants
 * Last reply from: [Li-An](https://wordpress.org/support/users/li-an/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/problem-with-amp-plugin/#post-8351928)
 * Status: resolved