Relevanssi and AMP conflict
-
Hi guys, I use AMP plugin https://www.ads-software.com/plugins/amp/
I’ve installed Relevanssi plugin and got this error when I navigate to Search page:Notice: is_amp_endpoint was called incorrectly. is_amp_endpoint() was called before the wp action which means it will not have access to the queried object to determine if it is an AMP response, thus neither the amp_skip_post filter nor the AMP enabled publish metabox toggle will be considered. Please see Debugging in WordPress for more information. (This message was added in version 1.0.2.) in /nas/content/live/dglofox/wp-includes/functions.php on line 5167
On the same site but without AMP all works good. And when I deactivate Relevanssi on AMP site – notice also gone (thats why I decided this is because of plugin conflict).
I wrote to amp plugin support and they said:
The Relevanssi is apparently calling the is_amp_endpoint function too early, which causes this notice.
Indeed I recommend you to contact their support to fix this in the Relevanssi plugin, as it’s not an issue in the AMP plugin itself.
https://www.ads-software.com/support/topic/relevanssi-search-conflict/#post-13092238
Have you any ideas what cause the problem?
The page I need help with: [log in to see the link]
- The topic ‘Relevanssi and AMP conflict’ is closed to new replies.