• Resolved nothingbutstars

    (@nothingbutstars)


    I just checked my PHP error log and noticed several occurrences of this error:

    PHP Fatal error: Uncaught Error: Call to undefined function get_core_updates() in D:\mysite\wp-content\plugins\my-wp-health-check\php\class-wphc-checks.php:105

    I’m on WP 4.7.3 and version 1.4.0 of this plugin. I’m not sure exactly when this error is getting triggered.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Corso

    (@fpcorso)

    Hey @nothingbutstars

    Hmm… that is interesting. That function is called inside the check that checks to see if WordPress is up to date. That is a built-in WordPress function so I couldn’t imagine a scenario where that is undefined.

    Let me look into this and see if I can find a cause. Thanks for reporting this!

    Thread Starter nothingbutstars

    (@nothingbutstars)

    Thanks! If it helps, it’s only been running for a few days, but the earliest log entry is at 15:54:28 UTC. Our offset is the Central timezone (currently UTC -6h). I’m totally speculating, but I wonder if it’s something that only occurs while admin users are logged in to WordPress.

    Here are the times of all of today’s occurrences so far today.

    [09-Mar-2017 16:02:49 UTC]
    [09-Mar-2017 16:03:22 UTC]
    [09-Mar-2017 16:03:28 UTC]
    [09-Mar-2017 16:03:37 UTC]
    [09-Mar-2017 16:03:42 UTC]
    [09-Mar-2017 16:14:33 UTC]
    [09-Mar-2017 16:14:38 UTC]
    [09-Mar-2017 16:14:45 UTC]
    [09-Mar-2017 16:14:49 UTC]
    [09-Mar-2017 16:19:48 UTC]
    [09-Mar-2017 16:19:52 UTC]
    [09-Mar-2017 16:21:31 UTC]
    [09-Mar-2017 16:21:45 UTC]
    [09-Mar-2017 16:21:59 UTC]
    [09-Mar-2017 17:33:37 UTC]
    [09-Mar-2017 17:33:42 UTC]

    Here is a full stack trace.

    [09-Mar-2017 17:33:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_core_updates() in D:\mysite\wp-content\plugins\my-wp-health-check\php\class-wphc-checks.php:105
    Stack trace:
    #0 D:\mysite\wp-content\plugins\my-wp-health-check\php\class-wphc-checks.php(49): WPHC_Checks->wordpress_version_check()
    #1 D:\mysite\wp-content\plugins\my-wp-health-check\php\class-wphc-checks.php(21): WPHC_Checks->wp_checks()
    #2 D:\mysite\wp-content\plugins\my-wp-health-check\php\functions.php(17): WPHC_Checks->all_checks()
    #3 D:\mysite\wp-content\plugins\my-wp-health-check\mlw_health_check.php(76): wphc_get_total_checks()
    #4 D:\mysite\wp-includes\class-wp-hook.php(298): My_WP_Health_Check->admin_bar(Object(WP_Admin_Bar))
    #5 D:\mysite\wp-includes\class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #6 D:\mysite\wp-includes\plugin.php(515): WP_Hook->do_action(Array)
    #7 D:\mysite\wp-includes\admin-bar.php(83): do_action_ref_array(‘admin_bar_menu’, Array)
    #8 D:\mysite\wp-includes\class-wp-hook.php(298 in D:\mysite\wp-content\plugins\my-wp-health-check\php\class-wphc-checks.php on line 105

    Hey guys, I have also been seeing this error for the last week. Could not figure it out for the life of me (since it took a few weeks after I installed WordPress Health Check.)

    For what it’s worth here is the error I am seeing (however other people I have chatted do not get the error, so maybe it’s related to my IP, i dunno).

    I will disable it for now, let me know if you guys get to the bottom of it,
    Mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined function get_core_updates()’ is closed to new replies.