• Resolved venturesscot

    (@venturesscot)


    After logging in I have set UM to go to my home page https://positivepurchases.co.uk/ however no matter what settings I turn on or off it always goes to https://positivepurchases.co.uk/account/ which I don’t even want my users to be aware of. I simply want them to be able to login and logout. I’ve used the redirect options on the login page and the user roles but I always have the same outcome. Losing the will to continue with the plugin If I can’t get this sorted.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @venturesscot

    By default users are redirected to their profiles after login. You can change this.

    Verify that the “Action to be taken after login” role setting is set to “Redirect to URL” and set a page you wish to show users after login in the “Set Custom Redirect URL” setting. See Login Options.

    Verify that the “Can view default homepage?” role setting is turned on if you want to display a home page after login. See Homepage Options.

    You should also verify that the “Redirection after Login” option for the login form is set to “Default”. This option can override role settings if not default.

    Regards

    Thread Starter venturesscot

    (@venturesscot)

    Hi, thanks for the reply but I’ve done all these things and double checked again, but no matter what I get redirected to the account page. I’ve even tried setting the page as restricted content and redirecting to the home page, doesn’t work. It’s so annoying and I’m not really sure how to proceed now.

    Hi, same problem here!

    I’m trying with custom code to redirect the page using two different hooks:

    • um_browser_url_redirect_to__filter
    • um_custom_redirect_after_login

    But nothing works as aspected and return always to profile page.
    Using wp_safe_redirect instead of return $new_url works but then i have some major issue in the main navigation of the site.

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @maurodf

    Your problem differs from the one that @venturesscot described. An account and a profile (user) are different pages.

    Verify a role assigned to the user, then verify settings for this user role. Set role settings like this:

    1. Can view default homepage? – turn on.
    2. Action to be taken after login – select “Redirect to URL”.
    3. Set Custom Redirect URL – set /

    See example: https://prnt.sc/o9rog2dS5VfL

    Just in case, check that there is no redirect_to parameter in the Login page URL and the login form “Redirection after Login” option is set to “Default”. See example: https://prnt.sc/scQbd4GyB9Au

    Verify that users can access the homepage. Select “Site accessible to Everyone” in the “Global Site Access” setting. See example: https://prnt.sc/AH6eTvt1esiE

    If everything is set up correctly, but the redirect is incorrect – investigate this redirect and send the backtrace here.

    Example of backtrace:

    Debug Backtrace:
    D:\web\um\wp-includes\class-wp-hook.php line 324
    D:\web\um\wp-includes\plugin.php line 205
    D:\web\um\wp-includes\pluggable.php line 1396
    D:\web\um\wp-includes\pluggable.php line 1545
    D:\web\um\wp-content\plugins\ultimate-member\includes\um-short-functions.php line 2909
    D:\web\um\wp-content\plugins\ultimate-member\includes\core\um-actions-login.php line 266
    D:\web\um\wp-includes\class-wp-hook.php line 326
    D:\web\um\wp-includes\class-wp-hook.php line 348
    D:\web\um\wp-includes\plugin.php line 517
    D:\web\um\wp-content\plugins\ultimate-member\includes\core\um-actions-login.php line 308
    D:\web\um\wp-includes\class-wp-hook.php line 324
    D:\web\um\wp-includes\class-wp-hook.php line 348
    D:\web\um\wp-includes\plugin.php line 517
    D:\web\um\wp-content\plugins\ultimate-member\includes\core\class-form.php line 711
    D:\web\um\wp-includes\class-wp-hook.php line 324
    D:\web\um\wp-includes\class-wp-hook.php line 348
    D:\web\um\wp-includes\plugin.php line 517
    D:\web\um\wp-includes\template-loader.php line 13
    D:\web\um\wp-blog-header.php line 19
    D:\web\um\index.php line 17

    Regards

    Plugin Support andrewshu

    (@andrewshu)

    Hi @venturesscot

    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 if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.