AMP PHP error
-
Hi Marko,
I hope you’re doing well! I’ve found this in my debug.log –
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 w3tc_footer_comment 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 w3-total-cache is responsible; please contact the author. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in x/wp-includes/functions.php on line 5833
WP 6.0.3, PHP 8.0.26, official AMP plugin (using ?amp=1), W3TC AMP extension (query string, postfix “amp”)
Did add amp as accepted query string on the site, as you adviced here.
Thanks for your help,
eC
The page I need help with: [log in to see the link]
- The topic ‘AMP PHP error’ is closed to new replies.