• Hi,

    When I change my website’s theme WordPress logges me out and I need to login again. When I want to make changes to the menu of my website I select the menu, but before I can make any changes I’m logged out again. This way I am not able to change any menu’s! I tried to create a new menu, but then I’m logged out again and I’m not able to change or delete any menu.

    I tried changing to the default theme, but it doesn’t work.

    Any help is appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Double check that you have cookies enabled and that they are not being emptied on each page load. Usually, when your cookies get deleted you get signed out of WordPress as it heavily relies on cookies to read user permissions etc.

    Thread Starter Enna123

    (@enna123)

    Thanks for your reply.

    The problem is solved now. It turnes out there was a conflict between the WP_SITEURL and WP_HOME in wp-config.php and my settings in Dashboard -> Settings.

    I’m a little late to the party I realise, but can you explain how you repaired the conflict between wp-config.php and your WP settings please?

    This problem has just occurred for me, but it’s now impossible to do any work on the site because each time I try to make a change, including in WP settings, I’m immediately logged out.

    Thanks…

    Thread Starter Enna123

    (@enna123)

    In the wp-config.php file it says somewhere:
    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);

    When you go to Dashboard –> Settings there’s also a field for the “WordPress address (URL)” and “Site address (URL)”.

    If I remember correctly the problem was that the settings at WP-admin didn’t match the URL in the wp-config.php file or something like that. Maybe I forgot the “www” somewhere or added a “/” at the end, I don’t know anymore..

    Hope this helps!

    Thanks Enna. I’ve actually fixed the problem, but still not sure how or why.

    I think there must have been some corruption of phpmyadmin, because some weeks ago I’d changed my WP username from the ubiquitous “admin” to something more unique. For some reason, all of a sudden, this new username started playing up by allowing me to login, but then log me out each time I tried to change pages or do an update. As a last report, I tried the old “admin” username, and it worked!

    I’ll check out your suggestion though,

    Cheers

    i would make sure that there isn’t a outdated plugin or theme that maybe causing a issue?

    most things that are outdated can actually leave back doors open.

    No, I’m very diligent in keeping everything up-to-date. With the update to WP V4.0, there may have been some unexpected activity in phpmyadmin, which is where the username change was implemented.

    Anyway, all good. The ‘catch-all’ admin username is working perfectly, for the time being at least.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress keeps logging me out’ is closed to new replies.