• Resolved CoFOX

    (@coyotech)


    Hello I am noticing constant fatal errors in error logs recently. Any idea what is causing this. They errors all seem to show fatal errors with Calls to undefined functions in random different jetpack files. It all seems random what file and what function will show give the fatal error in the log.

    [Mon Jul 13 12:48:51 2020] [error] [client 66.249.73.249] FastCGI: server “/var/run/php73_xxx.fcgi” stderr: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/xxx.com/wp-content/plugins/jetpack/_inc/lib/core-api/load-wpcom-endpoints.php:45
    [Mon Jul 13 12:48:51 2020] [error] [client 66.249.73.249] FastCGI: server “/var/run/php73_xxx.fcgi” stderr: Stack trace:
    [Mon Jul 13 12:48:51 2020] [error] [client 66.249.73.249] FastCGI: server “/var/run/php73_xxx.fcgi” stderr: #0 {main}
    [Mon Jul 13 12:48:51 2020] [error] [client 66.249.73.249] FastCGI: server “/var/run/php73_xxx.fcgi” stderr: thrown in /home/xxx.com/wp-content/plugins/jetpack/_inc/lib/core-api/load-wpcom-endpoints.php on line 45-content/plugins/jetpack/_inc/lib/core-api/load-wpcom-endpoints.php:45

    • This topic was modified 5 years, 9 months ago by Jan Dembowski.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor James Huff

    (@macmanx)

    What is the URL of the site with the problem, and what version of PHP are you running?

    Thread Starter CoFOX

    (@coyotech)

    This the site and php version

    PHP 7.3.11

    • This reply was modified 5 years, 9 months ago by Jan Dembowski.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @coyotech Donโ€™t use short links in these forums, they get expanded when found. I have expanded yours and put it in the link field.

    Thread Starter CoFOX

    (@coyotech)

    ok thank you

    Plugin Contributor James Huff

    (@macmanx)

    Would you please repost the siteโ€™s URL?

    If you want to share it privately, you can via https://jetpack.com/contact-support/?rel=support

    Thread Starter CoFOX

    (@coyotech)

    It is in the link field in op

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    PHP Fatal error: Uncaught Error: Call to undefined function add_action()

    add_action is something that’s provided by WordPress itself. If it’s missing on your site, something wrong is happening. Since the rest of the site works just fine, that’s most likely not the issue here.

    It’s most likely that someone is trying to access this file directly, instead of accessing your site’s homepage. In that case, they get an error and you see it in your logs, but that won’t impact your site’s real visitors.

    That is something we can address in the Jetpack plugin directly, so as to avoid generating all that noise in your error log.
    We’ll avoid the error for that specific file in the next version of Jetpack, with this change:
    https://github.com/Automattic/jetpack/pull/16480

    Thread Starter CoFOX

    (@coyotech)

    Its not only that function its others as well.
    Call to undefined function wp_embed_register_handler() in /home/wp_zzzzz/xxxx.com/wp-content/plugins/jetpack/modules/shortcodes/gist.php:23
    Call to undefined function wp_embed_register_handler() in /home/wp_zzzzz/xxxx.com/wp-content/plugins/jetpack/modules/shortcodes/medium.php:1
    Call to undefined function wp_oembed_add_provider() in /home/wp_zzzzz/xxxx.com/wp-content/plugins/jetpack/modules/shortcodes/getty.php:26
    Call to undefined function Automattic\\Jetpack\\Extensions\\jetpack_register_block() in /home/wp_zzzzz/xxxx.com/wp-content/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php:34

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    Its not only that function its others as well.

    Yes, the person currently crawling your site is most likely trying to fetch multiple files in different places.

    The patch above is about the one file you mentioned in your first post, but we should be able to silence those errors for other files as well. It’s part of a larger project, which you can follow here:
    https://github.com/Automattic/jetpack/issues/3056

    Thread Starter CoFOX

    (@coyotech)

    ok thanks

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Fatal Errors’ is closed to new replies.