Title: PHP Error with amp compatibility
Last modified: February 16, 2021

---

# PHP Error with amp compatibility

 *  [ac3master](https://wordpress.org/support/users/ac3master/)
 * (@ac3master)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-amp-compatibility/)
 * Hi there,
    I’m getting this error every couple of seconds in my debug.log file.
   Can anyone help me with how to fix it?
 * `PHP Notice amp_is_available was called incorrectly.`amp_is_available()`(or`amp_is_request()`,
   formerly`is_amp_endpoint()`) was called too early and so it will not work properly.
   WordPress is currently doing the`shutdown`hook. Calling this function before 
   the`wp`action means it will not have access to`WP_Query`and the queried object
   to determine if it is an AMP response, thus neither the`amp_skip_post()`filter
   nor the AMP enabled toggle will be considered. It appears the plugin with slug`
   webp-express`is responsible; please contact the author. Pl`

The topic ‘PHP Error with amp compatibility’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [ac3master](https://wordpress.org/support/users/ac3master/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-amp-compatibility/)
 * Status: not resolved