• Resolved Toshi Yoshida

    (@mikeg9999)


    Hi Mark,
    Sorry about initially logging this in the wrong place.

    I’ve just installed 5.0.1 free version and it’s causing a failure trying to log out. I haven’t yet done any investigation for this, it may be a problem specific to me.

    I have just moved the site the failure occurs on to new host SiteGround so this would be the first Wordfence update there.

    Can I get a version of 4.0.3 from somewhere so I can get Wordfence running again. Once that’s done I’ll clone my site and look at 5.0.1 there tomorrow morning (as my ISP data peak period limits are running out, morning is offpeak).

    This error reported logging out is:-

    Fatal error: Call to undefined function wp_get_current_user() in …../wp-includes/user.php on line 209

    Thanks,
    Mike.

    https://wordpress.org/plugins/wordfence/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Toshi Yoshida

    (@mikeg9999)

    I’ve found the previous version at http://downloads.wordpress.org/plugin/wordfence.4.0.3.zip so will try reinstalling that.

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    I’ve installed 4.0.3 and don’t have the log out failure anymore.

    I’ll try 5.0.1 in a cloned service tomorrow and if it’s still occurring will raise the error with my hosting support team.

    michaelruk

    (@michaelruk)

    After installing the latest version and logging out, I am no longer able to log back in again. The error message says

    Fatal error: Call to undefined function wp_get_current_user() in /websites/123reg/LinuxPackage21/ec/cl/es/ecclesfield-school.com/public_html/news/wp-includes/user.php on line 227

    line 227 is
    $user = wp_get_current_user();

    as part of the function

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

    Is this an issue with the plugin update itself? I can’t login now to disable it and test if this is the case though?

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    @michaeruk

    In case your very concerned about your site. This sort of issue can normally be easily fixed by using ftp to connect to your server and deleting the folder in which problem plugin resides. Possibly just a folder rename would work?

    I’m not recommending you do this I’m just letting you know there’s usually a simple way out. Wait and see what Wordfence support say.

    formulaclick

    (@formulaclick)

    Same issue here. After uprading and wp_debug enabled, shows following error:
    “Fatal error: Call to undefined function wp_get_current_user() in …./public_html/wp-includes/user.php on line 227”

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    This particular error regarding the “Call to undefined function wp_get_current_user()” was fixed in WordPress 3.7.1.

    Are you all running older versions of WordPress? The latest version is 3.8.1, and you should upgrade your WordPress if you are running an older version.

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    Hi Samuel,
    I’m certainly on an old version.
    I’ve been reluctant/unable to upgrade since something at HostGator changed and I’ve been unable to refresh my testing services since then.

    I’ve just changed hosts in the last week and I now have ‘1 click’ test site creation available so I’ll generate a test site tomorrow, upgrade WP then update Wordfence and see how that goes.
    Thanks for the info.
    Mike.

    Plugin Author Wordfence Security

    (@mmaunder)

    Hi,

    We’ll have a fix out shortly for this. This was also caused by us changing the order of access logging which caused the is_404() warning which many have reported. The is_404() fix will also fix this issue. The fix will be released within the next couple of hours.

    Regards,

    Mark.

    Plugin Author Wordfence Security

    (@mmaunder)

    Wordfence 5.0.2 has been released as a hotfix.

    This includes a fix for the warning you’re seeing above. Please upgrade and let me know if it resolves the issue.

    Regards,

    Mark.

    formulaclick

    (@formulaclick)

    Is this fix also resolve the “Fatal error: Call to undefined function wp_get_current_user()” error? Or just the is_404 warnings? Thank you

    Plugin Author Wordfence Security

    (@mmaunder)

    formulaclick: Yes it resolves that too.

    Regards,

    Mark.

    formulaclick

    (@formulaclick)

    Upgraded and now it works. Thank you!

    Plugin Author Wordfence Security

    (@mmaunder)

    Thanks very much for the feedback.

    Regards,

    Mark.

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    Hi Mark,
    I’ve cloned my site (running WordPress 3.6) installed Wordfence 5.0.2 and the log out issue from 5.0.1 is fixed.

    Thanks very much for your quick response to this problem.
    Regards,
    Mike.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Failure message on logout after 5.0.1 installed.’ is closed to new replies.