• Resolved gregmud

    (@gregmud)


    Update: found a second, different example in the logs. Debug details below.

    I’ve noticed this error appearing in the logs of our server. Seems to be trying to call a function before pluggable is ready.

    Below is the stack trace from the server. It doesn’t seem to impact server performance but also worried it could impact something else.

    Thanks
    Greg

    [26-Nov-2021 04:05:43 UTC] PHP Fatal error: Uncaught Error: Call to undefined function _wp_get_current_user() in /home/website/public_html/wp-includes/pluggable.php:70
    Stack trace:
    #0 /home/website/public_html/wp-includes/pluggable.php(1072): wp_get_current_user()
    #1 /home/website/public_html/wp-content/plugins/wp-optimize-premium/cache/file-based-page-cache-functions.php(32): is_user_logged_in()
    #2 [internal function]: wpo_cache(‘<!DOCTYPE html>…’, 9)
    #3 {main}
    thrown in /home/website/public_html/wp-includes/pluggable.php on line 70

    [28-Nov-2021 22:20:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function _wp_get_current_user() in /home/website/public_html/wp-includes/pluggable.php:70
    Stack trace:
    #0 /home/website/public_html/wp-includes/pluggable.php(1072): wp_get_current_user()
    #1 /home/website/public_html/wp-content/plugins/wp-optimize-premium/cache/file-based-page-cache-functions.php(32): is_user_logged_in()
    #2 [internal function]: wpo_cache(‘<!DOCTYPE html>…’, 9)
    #3 /home/website/public_html/wp-includes/functions.php(5107): ob_end_flush()
    #4 /home/website/public_html/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all(”)
    #5 /home/website/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #6 /home/website/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #7 /home/website/public_html/wp-includes/load.php(1097): do_action(‘shutdown’)
    #8 [internal function]: shutdown_action_hook()
    #9 {main}
    thrown in /home/website/public_html/wp-includes/pluggable.php on line 70
    [28-Nov-2021 22:20:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function _wp_get_current_user() in /home/website/public_html/wp-includes/pluggable.php:70

    • This topic was modified 3 years, 3 months ago by gregmud.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function _wp_get_current_use’ is closed to new replies.