Error when debugging is on, and AMP active
-
The following error occurs whenever I activate AMP, with debugging on.
Notice: amp_is_available was called incorrectly. <code>amp_is_available()</code> (or <code>amp_is_request()</code>, formerly <code>is_amp_endpoint()</code>) was called too early and so it will not work properly. WordPress is currently doing the <code>the_content</code> hook. Calling this function before the <code>wp</code> action means it will not have access to <code>WP_Query</code> and the queried object to determine if it is an AMP response, thus neither the <code>amp_skip_post()</code> filter nor the AMP enabled toggle will be considered. It appears the plugin with slug <code>jetpack</code> is responsible; please contact the author. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /data/blog/wp-includes/functions.php on line 5311
I’ve shared it with Jetpack support, and they stated the following:
For spera.hope.edu, it looks like your xmlrpc.php file (which is needed for Jetpack to work properly) is being redirected or blocked by something:
https://spera.hope.edu/xmlrpc.php?for=jetpack
As you can see, it just immediately sends you to https://127.0.0.1 instead of loading. This file is used by Jetpack and other plugins and apps to connect to your site. It must return the following exact message:
XML-RPC server accepts POST requests only.
You can see a working example here: https://jetpack.com/xmlrpc.phpTo which we replied that we currently “allow” xmlrpc.php access from the Jetpack whitelist ips shown here: https://jetpack.com/support/hosting-faq/
I wanted to bring this to your attention, since it’s actually coming from AMP.
Any insights? Thoughts?
Thx
CT
- The topic ‘Error when debugging is on, and AMP active’ is closed to new replies.