• Resolved danearnold

    (@danearnold)


    I have UM configured with Global Site Access set to Everyone and have posts that require a logged in user. In the UM Content Restriction area, I use Restrict Access, Logged in users, Redirect user, Login page, and Hide from queries.

    When a not logged in user hits the page, they get a 404, not the hoped for redirect to Login.

    Likewise when I use “Show access restricted message” instead of “Redirect user, Login page”, I also get the 404 instead of an access restricted message.

    If I uncheck the “hide from queries” box, I get the appropriate redirect or access restricted message, but of course the post shows up in the All Posts list for not logged in users, which I don’t want. (With actual content if redirect option is used.)

    I don’t understand why checking the “hide from queries” causes a 404. Is there a way to get the redirect to happen or the message to show while hiding my content from queries? I know I probably need to troubleshoot this some more myself, but any thoughts would be appreciated.

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi, I have the same issue. My “Private” pages go to a 404.
    I have unchecked the”Hide from queries” box and my restricted pages are still getting a 404.

    Can you help?
    Tahnks

    Thread Starter danearnold

    (@danearnold)

    I decided to leave the “hide” box checked, and find the source of the issue. In my case, I accidentally had a public page with mixed content, the private portion of which linked to my private page. I noticed it giving a 404 in my dead link scan after the last UM release. Fix was simple enough: Hide the private content on the public page, including the links, by wrapping them with Shortcode blocks — “[um_loggedin show_lock=yes]” and “[/um_loggedin]”.

    My private page still gets a 404 if you try it when not logged in, but nothing on my site points to it, so the public would have to know the url, and I’m fine with that, and so is my dead link checker.

    I’m not sure I understand the issue completely, but if I do, the UM user interface could now be changed so the “What happens when users without access tries to view the content?” disappears when the “hide” box is checked – since it is ignored when checked.

    Hi @danearnold

    Nice to hear you fixed the issue.

    On my side, your fix does not apply since my content is not a mix of protected/unprotected. The 404 error appears on a full protected page.

    Still struggle to find a fix

    Thread Starter danearnold

    (@danearnold)

    It was a natural work-around for me. Please help me understand your use case – how/why does someone access your protected page to get the 404? Are they entering the link manually into their browser, or clicking on a link, or what?

    Thanks for asking #danearnold,
    I have a page I set as protected.
    This page can be accessed by users once they have logged in through a link available on the UM user page.

    As an admin, I can access this protected page. But subscribers can’t

    I also made a conflict check with other plugins with no result.

    Thread Starter danearnold

    (@danearnold)

    Oh, so they login, click on your link, and get a 404 even though they are logged in? If so, that is totally different than what I experienced. Good luck.

    Yes this is the experience. Thanks for trying.
    Anyone with a similar experience?

    Can someone help ? This issue is critical for me. Many thanks

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kikihorse92

    Could you please provide clear steps to reproduce the issue? I’ll investigate it on our end.

    Regards,

    Hi @champsupertramp,
    Many thanks, here is the issue:

    I have Ultimate Member v2.2.0

    1) I have one page that is set as private
    2) This page should only be visible by logged-in users

    3) Login process works fine. If I log in as a subscriber, I get a specific page where I can find a link to this private page

    4) When clicking this link (being logged-in) I get a 404 instead of the private page.

    Note that it works if I set that page as not private. Does it mean UM does not support private pages anymore?

    Best,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kikihorse92

    Please try the pre-release version of Ultimate Member at the link:
    https://github.com/ultimatemember/ultimatemember/archive/refs/heads/master.zip

    Once downloaded, extract the file and then rename the folder from ultimate-member-master to ultimate-member. Manually update the UM plugin to your site via FTP.

    Ensure that you’ve created a full backup of your site before manually updating it.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Hide from Queries 404’ is closed to new replies.