• Resolved dushakov

    (@dushakov)


    I am using free version of Profile Builder v3.11.4 with WP 6.4

    i have a page that is restricted and only visible to logged in users, lets call it simply “Restricted Page”.

    when user navigates to the Restricted Page via bookmark or copy&pasting link into URL bar, they get redirected to login page. login page has wppb_referer_url in URL and looks like this https://[site_url.com]/member-login/?wppb_referer_url=https%3A%2F%2F%5Bsite_url.com/Restricted_Page_url%5D

    once user logs in, they are not redirected to the Restricted Page, instead they are just redirected to the home page.

    but when user tried to access the Restricted Page again (now they are logged in), they are once again get redirected to member login page, therefore making restricted page completely unaccessible.

    i have tried following these instructions from a different support question posted here and added

    add_filter( ‘wppb_private_website_redirect_add_query_args’, ‘__return_false’ );

    but it did absolutely nothing. i tried adding it with different priorities as well.

    Here is screenshot of my Dashboard -> Profile Builder -> Settings ->Private Website

    i have no Profile Builder add-ons installed just basic free version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @dushakov,

    Could you please go to your site’s Dashboard ->Pages -> click on the page where you have this issue -> and from there send a screenshot of exactly how you’ve restricted that page (especially with the PB Content Restriction meta-box)?

    I’m asking this since from what you’ve described, most likely you’ve restricted that page so that only users with a specific user role can access it.

    Note: Regarding the code you’ve mentioned that is only for the Private Website functionality, but from what I can see you have this functionality disabled (and also would not affect the issue you encounter).

    Best regards,

    Thread Starter dushakov

    (@dushakov)

    Hello @alexandrubodea,

    Here is the requested screenshot

    Thread Starter dushakov

    (@dushakov)

    Also, here is a screenshot of default Content Restriction settings (since PB Content Restriction metabox is set to “Settings Default”)

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi?@dushakov,

    1. Do you use any caching plugins? If so, could you please exclude our pages, the pages created with our shortcodes, especially the page where you have the PB Login form ( [wppb-login] ) from it, and check if the issue persists? Please also exclude from caching the page where you have set this Login restriction.

    2. If you have any caching enabled via a plugin or from your hosting, could you please disable them temporarily and check if the issue still persists?

    3. Please create a new page on your site and on this new page add only the PB Login form and check if the issue still persists.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WPPB redirects logged in users to login page instead of showing content’ is closed to new replies.