• Resolved janrussel

    (@janrussel)


    I’m running version 6.4.4 of TML and 4.4.2 of WP.

    I have the login working on my development site after upgrading the plugin and WP but I can’t seem to get the login to work on my production site.

    (fyi, this used to work before).

    I enter valid credentials for the username and password.

    It goes to the “your-profile” URL but I see a login screen instead of the user profile…

    I must be missing something but can’t seem to figure it out.

    Any ideas?

    https://www.ads-software.com/plugins/theme-my-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Can you check if the “Your Profile” page has a meta entry of _tml_action equal to profile?

    Thread Starter janrussel

    (@janrussel)

    Thanks Jeff for your reply.

    I forced the page to go to the profile by including:
    [theme-my-login default_action=”profile”]
    instead of
    [theme-my-login]
    but the format was not quite right (didn’t match dev environment).

    I logged into phpMyAdmin to check the postmeta info.

    I searched for %tml% in the meta_key field of wp_postmeta and noted the post_id for the profile action. I searched wp_posts for the id and found it.

    I repeated the process on my live site. I found a post id for the profile action record but when I looked up the id in wp_posts there was no result.

    I’m not sure what I’ve done wrong…

    Any suggestions on how to correct this?

    Thread Starter janrussel

    (@janrussel)

    Further to my previous post…

    I looked up the most recent post id (in wp_posts) of the Your Profile page and noted the ID. I replaced the post_id field in wp_postmeta (_tml_action=profile) with the post id of the Your Profile page.

    Now the profile page appears when I login.

    I noticed the other _tml_action fields were not corresponding to the latest post id (of each page).

    Is there an automatic way to update the post_id for _tml_action when the page changes?

    Thread Starter janrussel

    (@janrussel)

    I just noticed that the post_name field include the “slug” name for the 1st post and then <post_id>-revision-v1 for any updates.

    It looks like _tml_action entries are supposed to include the post_id of the original post. Somehow this got messed up for my profile page.

    I just went and changed the id to the id for the original your-profile page and now it looks good and working the same as in my dev environment.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘after login, login screen is displayed instead of user profile’ is closed to new replies.