The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Error Call to undefined function wp_get_current_user() (2 posts)

  1. H0bBIT
    Posted 6 years ago #

    Hello, has faced such problem. At installation on WordPressMU under the instruction on a site (version WordPress 3.0.1)? All site falls in an error:
    Fatal error: Call to undefined function wp_get_current_user () in /var/www/hobit/data/www/hob-bit.ru/wp-includes/user.php on line 223

    In lines 222-225 there is a following:

    function get_current_user_id () {
    $user = wp_get_current_user ();
    return (isset ($user-> ID)? (int) $user-> ID: 0);

    Prompt a solution of a problem.

    P.S. Forgive for broken English, I from Russia.

  2. BlaenkDenum
    Posted 6 years ago #

    Hey H0bBIT, I have submitted a fix as version Take a look at this post.

    Sorry for any inconvenience.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic