Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator threadi

    (@threadi)

    When I call up the page, I am not logged in. What makes you think you are always logged in? Do you see the admin bar on every page above?

    Thread Starter royalikor

    (@royalikor)

    Hello, thanks @threadi i was attempting to connect to fresh database when you visited, didn’t work. Please kindly check it again. The problem persists.

    Moderator threadi

    (@threadi)

    Now I see it too. Amazing. My recommendation would be to deactivate the only plugin that is active (Loginizer). Also, you should definitely install all pending updates, both from WordPress and the plugin.

    Thread Starter royalikor

    (@royalikor)

    I have done that, i have disable all plugins, themes, i was already upgraded to latest wordpress i just had to downgrade for troubleshooting purpose, so far on all versions of wordpress down to 5.0 the problem still persists. I have also tried downgrade my PHP version ( just trying anything) no caches plugins are active and i have checked my cache rules on Htaccess, even had to delete and recreate with default rules. Still cant logout.

    Moderator threadi

    (@threadi)

    My guess is that some malicious code has nested in a central WordPress file. You have Wordfence on it – have you ever done a scan with it?

    I can only see 2 possibilities:
    * You check every WordPress PHP file for anomalies. For example, is there something in wp-config.php that doesn’t belong there? If any file is loaded that does not belong there. You would have to check this at the file level in the hosting. I would also recommend debugging: https://wordpress.org/support/article/debugging-in-wordpress/
    * You reinstall everything. If necessary in a parallel installation, so that you can then take over the contents.

    Either way, my advice would be to change the accessibility of the site quickly, because currently anyone could take over your website and cause you even more work.

    Thread Starter royalikor

    (@royalikor)

    @threadi Thanks so much, i followed tiur advice and inspected my files. I found this in my Wp-config file, removed and it worked. define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );

    function wp_validate_auth_cookie($cookie=”,$scheme=”) {
    return 1; // admin user id
    } any ideas how it could have gotten there? Any tips on what i should do next? Thanks soo much!

    Moderator threadi

    (@threadi)

    Great that you were able to find it and solve it. The wp-config.php is actually only edited by hand after installation. Therefore, as an admin, you should also know who did what and when. It is also possible that malware has or has had a foothold in your project. Or someone has changed the access data to your hosting and the file.

    I would therefore strongly advise you to change all access data right now. To the hosting, to WordPress. Everything where you have set passwords.

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

The topic ‘Unable to logout Admin from wordpress’ is closed to new replies.