• Resolved johnatthepaper

    (@johnatthepaper)


    Anything to be concerned about? Turned on the debug log and I see this:

    PHP Notice: amp_is_available was called <strong>incorrectly</strong>. '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 'plugins_loaded' 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 'nextend-facebook-connect' is responsible; please contact the author.

    • This topic was modified 5 years, 6 months ago by johnatthepaper. Reason: backquotes in error message make it look terrible here
    • This topic was modified 5 years, 6 months ago by johnatthepaper.
Viewing 1 replies (of 1 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @johnatthepaper

    Thanks for reporting this problem.

    The AMP plugin has a reader mode, where they don’t call the actions where plugins usually call in their styles. So since the styles of our social buttons would not be called in, we needed to create a custom integration for them, otherwise the buttons would appear broken on AMP reader mode pages.

    It seems they made some changes in their code, so in our latest build we also needed to update our codes according to their modifications. This means in the next release this problem won’t occur anymore.

    Anyways this is just a notice, so it won’t really cause any problems on your site, but if you would like to fix it, then I uploaded the installer of our latest Nextend Social Login build here for you:

    This build already contains the mentioned fix. To install it you should go to your plugins list, delete your current Nextend Social Login plugin, and install this one at Plugins > Add new > Upload plugin.

    If you are a Pro Addon user, then please get in touch with us directly at:
    https://nextendweb.com/contact-us/nextend-social-login-support/?ref=https://wordpress.org/support/topic/amp_is_avilable-was-called-incorrectly/

    Best regards,
    Laszlo.

Viewing 1 replies (of 1 total)

The topic ‘amp_is_available was called incorrectly’ is closed to new replies.