• Resolved reeteshch31

    (@reeteshch31)


    i am not a technical
    and some pages showing this error please help me.

    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 thewp_print_scriptshook. Calling this function before thewpaction means it will not have access toWP_Queryand 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 slugjetpackis responsible; please contact the author. कृपया अधिक जानकारी हेतु वर्डप्रेस में डिबगिंग देखें। (इस संदेश 2.0.0 संस्करण में जोड़ा गया.) in /home/u259700484/domains/domain.in/public_html/wp-includes/functions.php on line 5835

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

    (@milindmore22)

    Hello @reeteshch31

    It seems you are using a plugin or theme or custom code that might be using amp_is_available incorrectly.

    As the deprecation message states that you need to use it after wp action. read

    We will recommend checking your plugins or themes that are responsible for it and contacting it’s author to make changes so that amp_is_avilable is called post wp action

    eg:

    add_action( 'wp', function() {
         if ( amp_is_available() ) {
              // do something if the AMP version of the page exists.
         }
    } );

    Hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @reeteshch31 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 ‘[NSFW] Function amp_is_available was called incorrectly’ is closed to new replies.