• cwhlin

    (@cwhlin)


    I disabled the wp-login site for my live site but for the staging site, I turned it off but I still cannot access the wp-login.php link when TML is activated (as it redirects the page to the staging site’s /login page, which then requests that I log in before I can access that page, throwing me into a loop of not being able to log in.

    Any solution besides disabling TML every time I need to log in?

    The page I need help with: [log in to see the link]

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

    (@jfarthing84)

    Maybe I am misunderstanding, but why can’t you log in via TML’s login page? Also, have you tried simply typing /wp-login.php?

    Thread Starter cwhlin

    (@cwhlin)

    Because TML’s login page (on the staging site) is blocked (per the staging site’s security) until one logs in as admin to the staging site. When I set up the staging site (by copying my live site), I had disabled access to wp-login.php so now when I access the staging site’s /wp-login.php, it redirects me to the staging TML login page (which as explained above is blocked).

    So far the work-around has been to disable TML, log in via staging site’s wp-login.php and then activate TML to test features with TML. I know the solution is to stop the redirect from wp-login.php to TML’s login page on the staging site, but I can’t quite figure out which file is triggering that redirect.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    TML doesn’t redirect wp-login.php to it’s pages. It only changes links to it.

    Hey Jeff,

    Since a few months, when I activate TML I cant use wp-login.php on my website: it just redirects to mysite.com/login/ (that’s the page used by TML). I would like to have both the TML Login Page (for my subscribers) and wp-login.php (fo my personal use).

    I’ve tested my Staging site with only my Theme and TML, so I assume that something was changed in my Theme (X-Theme by Themeco). It used to work before a few updates they’ve made months ago. But anyway if you have any clue I would be glad to listen.

    Please let me know if is there something I can do to re-enable wp-login.php.

    Thank you very much (for this amazing plugin TML) and best regards.

    I’m having the same problem. Is there a fix? Perhaps a database setting that can be changed manually? Note that both login forms could be accessed until I enabled security and checked the option to disable the wp-login. Now, no matter what settings I select, the wp-login cannot be accessed. The only way to access wp-login is to completely disable TML.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Uncheck the option in the Security module?

    If you’ve enable this option once, it always redirects to the TML login page. At least with my Theme (X by Themeco). Changing to TwentySeventeen wp-login.php works, but I use this theme (X) since a long ago, but until last year I could use wp-login.php as well but now I just can’t.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Sounds like the 301 redirect could be cached.

    The browser cache has been cleared. Does TML have it’s own cache (note that wp-login can be accessed with TML disabled)? And yes, the ‘Disable wp-login.php’ option has been un-checked; and I have also tried un-checking the ‘Enable Security’ option. I am using the ‘Oshine’ theme, and the TML plugin on the recommendation of PMPro. I have not tested this with other themes, but need to get it working with this theme in any case. Do you know where I would find this setting in the database? I want to check if it is switching, but haven’t been able to locate it. Thanks in advance for any assistance/feedback. Other than this one issue, I agree this a fantastic plugin!

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Does the checkbox stay unchecked after you save it after unchecking it?

    Good point; yes, it does.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Have you tried disabling the Security module?

    Ok, in my situation it appears to be related to Paid Memberships Pro. Disabling the PMPro plugin resolves the issue. I have made several customizations, so it may very well be something I introduced myself. I will dig deeper. Sorry to have wasted your time!

    FYI, it appears PMPro redirects to the TML login regardless of the ‘Disable wp-login.php’ security setting. I’ve been able to correct the problem by commenting out line 114 in the PMPro login.php file:

    //$link = Theme_My_Login::get_page_link(“login”);

    The TML options work as intended with this line commented out; but I still need to test to see if doing this affects anything else.

    Thanks again for your time, and for TML!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Turning on wp-login.php access for staging site not working’ is closed to new replies.