• Resolved spindles7

    (@spindles7)


    I have two separate fully working WordPress sites on a local Debian (Jessie) linux box and decided to create a copy of the sites on a similar machine, running the same version etc. After installing Apache2, mysql-server, php and phpadmin, I installed wordpress and confirmed it was working with a vanilla installation. I then exported the database to the new box and copied all the files across, but none of the TML pages will load – all come up with Not Found error. If I log in using wp-login.php I can navigate the site with no problems, until I come to logoff. (I have the security option set which requires the user to login before using the site.)

    I have tried deleting the .htaccess file, reconfiguring permalinks and back again, and the file is re-created but the problem remains.

    I have cleared the browser cache, cookies etc with no effect. So I tried the other website – copied the files across, then the database. Same result.

    I deactivated TML, deleted it then re-installed it but that did not fix it.

    So I tried a totally different computer, this time with Ubuntu server 14.04 LTS installed. Same result as before. So I upgraded this box to Ubuntu 16.04.2 LTS which has Apache2.4.18 and php7.0.15, but the problem is the same.

    Not sure where to go now, so any help would be appreciated.

    Thanks,

    Roy

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

    (@jfarthing84)

    Do the pages actually exist, not in the trash?

    Thread Starter spindles7

    (@spindles7)

    Yes, I can see and edit the pages in the Dashboard, and the permalinks look good. I suspect it’s something to do with the setup of apache/php etc as the files and the database are identical to the live site which works fine.

    Thanks,
    Roy

    jenfilgate

    (@jenfilgate)

    I had the same issue as you when I just created a new dev site and updated TML from 6.4.7 to 6.4.9. However, I did get it to work eventually. I excluded all the TML login pages from my cache as well as my-profile page as it was getting the same result (I use W3 Total Cache); re-saved my WP Permalink settings; re-saved each of my TML Settings pages; and cleared my cache. That seemed to fix it.

    Give that a try and let me know if it resolves it for you as well.

    Edit: Oh and I also excluded “wp-users” my my database cache when I was excluding pages in W3 Total Cache.

    • This reply was modified 8 years ago by jenfilgate. Reason: forgot something
    Thread Starter spindles7

    (@spindles7)

    Thanks for that. I don’t have a cache plugin active, so don’t think that’s the problem. I tried deleting the Log In and Log Out pages and re-creating them, and interestingly the site now redirects to …/login-trashed..etc so there’s a setting somewhere which isn’t being updated. Also the dashboard logout link under your name on the top right hand menu now shows it pointing at logout-trashed. How to update that?

    If I de-activate the TML plugin it opens the home page as expected, but as soon as I re-activate TML the problem returns.

    Have tried re-saving all the TML settings pages, re-saved the permalink settings, cleared all cookies, cache from the browser, used a different computer never before used the access the site, all to no avail.

    Thread Starter spindles7

    (@spindles7)

    Have finally found out what was wrong – I had missed the configuration step to allow apache2 to use .htaccess files – editing /etc/apache2/apache2.conf to change the line: AllowOverride None
    to: AllowOverride All

    fixed the problem.

    Thanks,

    Roy

    Hi everyone. Please I need some help to resolve this, I;m having same issue too.

    It started when I tried to enable a login-logout link i.e. displays login when you are logged out and displays log out when you are logged in. Login works alright, but log out redirects to https://xxxxxxxxxxx.com/login__trashed/?loggedout=true

    What am I not doing right. I’m a beginner in these things and still learning

    I need help with a clear path to check if I also missed the configuration step as with @spindles7’s case above, or any other resolution.

    Many thanks in advance
    JJ

    Thread Starter spindles7

    (@spindles7)

    Hi,
    I never did find out how to change the error where the redirection is to the trashed page, the only way I fixed it was to delete the new page I had made, and restore the old page from the trash. However, I fear in your case, the site redirects correctly to your new page when you log in, but tries to go to the old page when you log out. Try making the Log Out redirection setting to something other than Default and then back to default to see if that fixes it.

    Good luck!

    Roy

    Hi spindles7. I couldn’t figure it out as you advised but I found this resource below in my further search for resolution:

    https://premium.wpmudev.org/blog/how-to-add-a-loginlogout-link-to-your-wordpress-menu/?utm_expid=3606929-101._J2UGKNuQ6e7Of8gblmOTA.0

    The code in the write up works perfectly without the Theme My Login plugin, which I discovered gives that error when it is active. I just went ahead and deleted Theme my Login from the site.

    Now My Account, Register and Login/Logout works very fine.

    Thanks so much
    JJ

    I’m reading through the TML plugin write up again to see if I can find what I missed out in the installation leading to the error. But I can’t seem to find information on the login/log out functionality – menu displays Login when you are logged out and changes to Log out when you have logged in. Does TML support it

    I see info redirect to custom pages when logged in, logged out and after registration but none on steps to set up login/logout.

    Please help.
    Thank you.

    Thread Starter spindles7

    (@spindles7)

    Hi @glvd656,
    I didn’t have to do anything special to get what you are asking for – I just installed TML, set it to require to be logged in before using the site so when you first type the url for the site you are presented with the log in page. This is controlled on the Security settings page – tick Require users to be logged in to view site.

    The Custom redirection settings can be left at default for Log In and Log Out – if so administrators for example go to the Dashboard after log in. So I set non-administrators to redirect to the site’s Home Page URL after log in.

    Before you log in, there is no logout link anywhere to be seen, nor would you expect one. There are links for Register, Lost Password and Reset Password. Once you log in however, a Log Out link appears on the top menu, along with the Reset Password link. When you log out, it takes you back to the Log In page, with an extra banner, saying You are now logged out. For me this behaviour is what I want.

    HTH,

    Roy

    PS. I did have to manually add the login, logout, register, lost password and reset password pages to a menu – I chose the Links (Top Menu (Right)) from my theme.

    • This reply was modified 7 years, 11 months ago by spindles7. Reason: remembered some config steps I did

    Hi spindles7. T
    hank you so much. All sorted now now. A million thanks for your time and prompt responses.
    JJ

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Login, Logout, Register, Reset & Lost Password Pages Not found’ is closed to new replies.