Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter spindles7

    (@spindles7)

    Ah, now I understand why some work and others don’t! Thanks for the explanation.

    The reason I linked to a file outside the uploads folder was beacuse I had created a “site” plugin which contains custom functions I had written specifically for my website (to prevent them being overwritten by upgrades etc) and was referencing a file in that plugin. In actual fact it’s an icon file, which can quite happily sit in the uploads path. So I will move these files into the uploads path and that will resolve this issue, and save me adding the filter.

    Many thanks for your timely and expert help.

    Regards,

    Spindles7

    Thread Starter spindles7

    (@spindles7)

    Thanks for getting back to me so quickly! I use the Classic Editor, mainly in text mode.

    Thanks.

    Spindles7

    Thread Starter spindles7

    (@spindles7)

    I have just tested the site with WordPress version 5.7 and the problem does not exist, so this was introduced with version 5.7.1

    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
    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

    Thread Starter spindles7

    (@spindles7)

    Thanks for that. I did as you suggested, but then found another plugin which allowed users to submit posts using a normal page (and therefore matching the current theme) rather than the wordpress admin page. So all is now good.

    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

    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)

    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

    spindles7

    (@spindles7)

    mine too – the error log says:
    [19-Feb-2017 18:53:38 UTC] PHP Fatal error: Call to a member function is_main_query() on null in …/wordpress/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 264

    Had to revert to v6.4.7 (by copying the folder from a backup with ftp) to get the site back.

    No doubt we’ll get a fix soon?

    thanks,
    Roy

Viewing 10 replies - 1 through 10 (of 10 total)