AMP error in debug
-
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()
(oramp_is_request()
, formerlyis_amp_endpoint()
) was called too early and so it will not work properly. WordPress is currently doing theshutdown
hook. Calling this function before thewp
action means it will not have access toWP_Query
and the queried object to determine if it is an AMP response, thus neither theamp_skip_post()
filter nor the AMP enabled toggle will be considered. It appears the plugin with slugwebp-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 5905The page I need help with: [log in to see the link]
- The topic ‘AMP error in debug’ is closed to new replies.