• estoespersonal

    (@estoespersonal)


    Hi, I recently moved my site to a new server in a private network (no internet visibility) I fixed some issues with my database but some still survive. Right now I found that when a users of a customized role (let’s day roleCalculator) ties to logout it erases the information in usersemeta about all the users except from the user administrator (which in my case is called admin). Other customized roles like (role1 and rolHead) work perfectly and don’t have this problem.
    There is also a something I’ve noticed, when I click on logout the page redirects me to my old domain that was :
    https://tool.org.lmg instead of the new domain which is https://porta.org.lmg.

    —–EDIT1————–
    Explaining better what I’m doing maybe helps I’m calling a function Redirect wp_login that is called when I click this button.

    The server is a redhat 7.5
    Database server: version 5.5.56-MAriaDB
    ServerCharset UTF8-UnicodePHP version 7.2.3
    phpmyadmin 4.7.9

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter estoespersonal

    (@estoespersonal)

    Hi people the code where I exit the page is the following:

    <?php get_footer(); ?>
    </body>

    <?php
    } else {
    wp_redirect(wp_login_url());
    exit;
    }} ?>
    What causes is the loss of information of my users in the table wp_usermeta, basically if I have information of the user with id 2 Uuser_test2) and the role of administrator or whatever role is identified it is automatically erased of the table. Do you know why is this happening?

    Thread Starter estoespersonal

    (@estoespersonal)

    Sorry but my previous post is wrong, the line where the button redirects the user to the login page is the following.

    <li id=”wp-admin-bar-logout” class=”menuNav”>

    “>Logout

    I apologize for the confusion, the code is not mine and I’m trying to investigate about it, because each time that a user logs out all his information (and the other users) is deleted from the table wp_usermeta. Thanks in advice and sorry for the confusion

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Logout button erases (deletes) wp_usermeta content’ is closed to new replies.