• Resolved preufonia

    (@preufonia)


    related Thread: https://ww.wp.xz.cn/support/topic/entire-site-redirecting-to-login/

    When im not logged in i get redirected like this:
    WP 5.6
    https://<mysite>/somePage -> https://<mysite>/?redirect_to=%2FsomePage%2F
    WP 5.8
    https://<mysite>/somePage -> https://<mysite>/?redirect_to=%2FsomePage
    If i am logged in all seems fine.

    Plugin version 2.2.1 does NOT solve this problem.
    Currently rolled back to 2.1.3

    Here are some screenshots from the “public” access level settings:
    https://nextcloud.rvp-saffonia.de/s/2pJs696sZYb5QxA
    I have one more level for “logged-in” and some for specific roles or users but i don’t think they are important here.

    Hope you can help and find the problem.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for providing the screenshots and details.

    It looks like your logged-out level is redundant as it does not have any Access Conditions or Capabilities.

    Can you take a look at all your other levels and see if their “Non-Member Action” is missing a page/URL to redirect to? As seen in this screenshot:
    https://nextcloud.rvp-saffonia.de/s/2pJs696sZYb5QxA?dir=undefined&openfile=35284

    When that is missing, unauthorized users will be redirected to the front page, which is likely what is happening here. Prior to updating to 2.2.1, what page were unauthorized/logged-out users redirected to (when trying to access restricted pages)?

    Thread Starter preufonia

    (@preufonia)

    The problem is not that the redirection is pointed to the front page. That is fine.
    The problem is that pages get redirected, that shouldn’t! All public pages were redirected …

    But i hopefully found the issue in another level which is synchronized with “logged_in”. There were suddenly a new “empty” access condition group.
    I don’t know how it appeared there, i have no screenshot and i can’t recreate it but it was a condition group without!!! a type like “authors” or so …
    My original only condition group was and now again is a “pages” condition group.

    Since i deleted this “empty” condition everything works fine again and i have no redirects on public pages.
    Seems like this “empty” condition matched all pages or so.

    This is definitely still a problem, even with the purported fix in v2.2.
    I also solved it by reverting to 2.1.3.
    Would be happy to help if any more debugging information is needed.

    Plugin Author Joachim Jensen

    (@intoxstudio)

    @preufonia

    Thank you for letting me know about the empty condition! I’m glad removing those solved it. I will look into why empty conditions are occuring; they really should only occur if you have created ab Access Condition at some point, containing a taxonomy/post type created by another plugin, and now that plugin is uninstalled/deactivated.
    Ie the content is no longer recognized, but the condition remains and now matches everything.

    @marcool04

    Could you please open a new thread and provide screenshots of your Access Conditions? That will make it easier for me to help. Can you also check if you have any empty conditions?

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

The topic ‘Entire site Redirecting’ is closed to new replies.