• Resolved summerhui0515

    (@summerhui0515)


    I am getting an error on my site:

    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?load_script_textdomain_relative_path 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 jetpack 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/maxc5j12129m/public_html/moshicellar.com/wp-includes/functions.php?on line 6085

    Any ideas what this error means?

    I have already use the Health Check & Triubleshooting plugin, checked all plugins and theme. But the issue is stilll here.

    Steps that I have done: https://jetpack.com/support/troubleshooting-plugin-and-theme-conflicts/

    How can I solve this issue?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Enej Bajgori?

    (@enej)

    Hi summerhui0515

    amp_is_available() function is not part of the Jetpack plugins.


    If you don’t need AMP support I would suggest disabling the AMP Plugin. The code that is generating this message can be found in the AMP Plugin – see https://github.com/ampproject/amp-wp/blob/1350e8b3d5f6dd61c0b329499f32b67a123de922/includes/amp-helper-functions.php#L375

    It sounds like there might be some other code that calls the function at the wrong time.

    Hope this is info helpful.

    Thread Starter summerhui0515

    (@summerhui0515)

    Thank you for your reply!

    I have already disabled and deleted the AMP Plugin, but the error notice still appears.

    I do not know coding and I do not understand the codes in the link you provided….

    What should I do now to get my website running? What is the next step I should do?

    Thank you so much!

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @summerhui0515,

    It looks like you have other plugins active on your site, and possibly one of them is still calling that function that’s erroring.

    Can you please temporarily deactivate all your plugins and check if the problem gets fixed that way? If it works, then reactivate each plugin one by one to find out which one is triggering the error.

    Let us know what you find out!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function amp_is_available’ is closed to new replies.