• Resolved rickyrt

    (@rickyrt)


    getting this error on my debug log also having issues with AMP pages sometimes AMP pages are getting served on desktop sometimes not. Often the AMP page is stretched to fit the desktop screen.

    [02-Sep-2023 21:19:06 UTC] PHP Notice: Function 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. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /home/livingun/public_html/wp-includes/functions.php on line 5905

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @rickyrt

    Thank you for contacting us, As the message suggests the issue is with WebP Express plugin that they are using is_amp_endpoint() function incorrectly to work it correctly it should be called after the wp hook

    Additionally, the function is_amp_endpoint() has been deprecated the plugin should have used amp_is_request() function instead.

    We recommend contacting Webp Express plugin support as they can help you with a fix for the warning.

    Sorry, we can’t be more of assistance on this one as the issue is with another plugin.

    Plugin Support Milind More

    (@milindmore22)

    @rickyrt
    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP error in debug’ is closed to new replies.