Title: Amp Endpoint Error
Last modified: April 8, 2020

---

# Amp Endpoint Error

 *  Resolved [bogeymedia](https://wordpress.org/support/users/bogeymedia/)
 * (@bogeymedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/)
 * I am getting the following error on my site that occurs when using the new MS
   Edge Browser:
 * Notice: is_amp_endpoint was called incorrectly. is_amp_endpoint() was called 
   before the parse_query hook was called. Please see Debugging in WordPress for
   more information. (This message was added in version 0.4.2.) in /var/www/vhosts/
   example.us/public_html/example/wp-includes/functions.php on line 5167
 * The reported error also breaks my layout. It goes away when I deactivate AMP.
   No other plugin fixes the error. The problem doesn’t seem to occur on Firefox
   or Chrome (at least it doesn’t show as an error). No way to know if it shows 
   up on Macs.
 * Thoughts? I have no idea where to start on this. TIA
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-endpoint-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12646430)
 * Are you using Jetpack? And have you just updated to Jetpack v8.4?
 *  Thread Starter [bogeymedia](https://wordpress.org/support/users/bogeymedia/)
 * (@bogeymedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12646444)
 * Yes. It is on 8.4.1
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12646468)
 * This appears to be a regression in Jetpack. Als reported here:
 * * [https://wordpress.org/support/topic/amp-1-5-2-completely-breaks-site/](https://wordpress.org/support/topic/amp-1-5-2-completely-breaks-site/)
   *
   [https://github.com/Automattic/jetpack/issues/15353](https://github.com/Automattic/jetpack/issues/15353)
 * If you downgrade Jetpack to 8.3.x that should fix the problem until the.next 
   version of Jetpack is released.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12646472)
 * If downgrading fixes the problem, please let me know.
 *  Thread Starter [bogeymedia](https://wordpress.org/support/users/bogeymedia/)
 * (@bogeymedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12646498)
 * Thank you for your help. This is off topic, but how do I go about downgrading?
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12646630)
 * Humm, there’s probably not a good way to downgrade while keeping your Jetpack
   settings intact (if you have to use the ZIP download). Let me try to create a
   workaround plugin that will allow you to stay on 8.4
    -  This reply was modified 6 years, 2 months ago by [Weston Ruter](https://wordpress.org/support/users/westonruter/).
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12648340)
 * [@bogeymedia](https://wordpress.org/support/users/bogeymedia/) Here’s code which
   you can use to prevent that notice from happening:
 *     ```
       // Unhook the show_admin_bar filter added in Jetpack_AMP_Support::init().
       add_action(
       	'init',
       	function () {
       		remove_filter( 'show_admin_bar', [ 'Jetpack_AMP_Support', 'show_admin_bar' ] );
       	},
       	2 // Because Jetpack_AMP_Support::init() happens at priority 1.
       );
       ```
   
 * The filter will get removed in Jetpack as well in the next release, per [https://github.com/Automattic/jetpack/pull/15372](https://github.com/Automattic/jetpack/pull/15372)
 *  Thread Starter [bogeymedia](https://wordpress.org/support/users/bogeymedia/)
 * (@bogeymedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12648397)
 * Thank you!
 * And where do I insert that?
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12648447)
 * Here is that code in plugin form: [https://gist.github.com/westonruter/d168c290d6c01c107da960d48fa3dad3](https://gist.github.com/westonruter/d168c290d6c01c107da960d48fa3dad3)
 * Installation instructions: [https://gist.github.com/westonruter/6110fbc4bef0c4b8c021a112012f7e9c](https://gist.github.com/westonruter/6110fbc4bef0c4b8c021a112012f7e9c)
 *  Thread Starter [bogeymedia](https://wordpress.org/support/users/bogeymedia/)
 * (@bogeymedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12651800)
 * Thank you SO much. That fixed it!
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12678937)
 * Jetpack [v8.4.2](https://github.com/Automattic/jetpack/releases/tag/8.4.2) is
   now available which fixes this issue. Please update and uninstall [my workaround plugin](https://gist.github.com/westonruter/d168c290d6c01c107da960d48fa3dad3).
 *  Thread Starter [bogeymedia](https://wordpress.org/support/users/bogeymedia/)
 * (@bogeymedia)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12679078)
 * Thank you!!
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12679102)
 * We’d appreciate a plugin review! [https://wordpress.org/support/plugin/amp/reviews/#new-post](https://wordpress.org/support/plugin/amp/reviews/#new-post)

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

The topic ‘Amp Endpoint Error’ 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/)

 * 13 replies
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/amp-endpoint-error/#post-12679102)
 * Status: resolved