Membership "Forgot Password" Leads to Protected Page

Hey guys! I had replied to a ticket here:

and they asked me to start a new ticket. On the 'log-in' page, when I click on "Forgot Your Password" I'm getting sent to a Protected Content Page.

I'd rather not set rules, in case the client creates a new page that I'm unaware of, but I'm confused why this is happening. Any help would be greatly appreciated. Thank you in advance.

  • Sumit Kumar
    • Site Builder, Child of Zeus

    Hi gunnston,

    I now see what actually you were referring in earlier post :slight_smile:
    However I couldn't replicate in my case but you can filter the link by this code here:

    function fix_lostpass_url($link){
        return str_replace($link, network_site_url('wp-login.php', 'login').'/?action=lostpassword',$link);

    You need to place these codes in your child theme's functions.php or if not created yet than you can use it in parent theme. But remember to note down this code before updating the theme, ever!

    I will however, ask for Second Level Support to check on this issue.

    Have a nice day;
    Regards, Sumit

  • gunnston
    • WPMU DEV Initiate

    Thank you Sumit. I did a quick test install of wordpress at too to see if it was the theme that was causing the issue.

    Turns out the same thing happens on the Twenty-Fourteen theme as well. You can check it out here: and then click on "Forgot Password" (obviously.)

    Not sure if it'll help with the Second Level support but I thought I'd let you know. Thanks for the help!

  • Sumit Kumar
    • Site Builder, Child of Zeus

    Hi there,

    Yes, it will help help him for sure!
    SLS will get back to this when they will be able to. I will also ping them to get back on this ASAP.

    Also, please extend the support access, so that it will be helpful for SLS to workaround there with the Dashboard. Can you also grant support access for the other test install that you setup earlier? :slight_smile:

    Thanks for your patience.

  • gunnston
    • WPMU DEV Initiate

    Cool. The first site works with that bit of function code. I extended service on the first site, and I allowed access on that second site...

    The second site may just act that way because I didn't set up membership too well on that. The guys are welcome to do whatever they'd like to that site. I set it up just for this reason (there's no content or anything on the site.)

  • gunnston
    • WPMU DEV Initiate

    Hey Ashok,

    I've extended permissions on both sites for you. I did add the code to the functions on the first site, but not on the other one.

    The second site was just put up so I could see if there was a conflict with the membership plug-in and the theme on the first site. That site will be taken down, but the same problem was happening on there. I thought to tell you guys if it would help you trouble shoot the problem.

    Thanks again!

  • Ash
    • WordPress Hacker

    Hello @gunnston

    The support access is still not working for

    The lost password link works fine in though.

    Would you please send me login and ftp details for ?

    To send me details, please use our contact form:

    Select: I have a different question
    Subject: Attn-Ash
    Details: Send all required details (admin info and ftp details) with a link of this thread, so that I can track.
    Also post a note here once you send the info.

    I will be happy to take a look :slight_smile:


  • Vinod Dalvi
    • WP Unicorn

    Hi @gunnston,

    I have tested it on my test site using latest version of Membership plugin but couldn't reproduce the issue.

    I found on my site the lost password page URL is as following

    But on your site it is as following

    instead it should be as following which works fine.

    This can be due to plugin conflict.

    You can just try on your development site using default WordPress theme like Twenty Thirteen and deactivating all other plugins as displayed in the flowchart on the following page to know which plugin is conflicting if any.

    Also it would be useful if you grant us the support staff access again on your site

    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.