• Resolved fitsmartyou

    (@fitsmartyou)


    Hello, I am having a problem with this plugin in that whenever users try loging in to their accounts they are redirected to the homepage. I have seen someone else reported the problem sometime back and got a response to use a certain code here.

    My question is…where exactly I’m I supposed to use the code on my WordPress backend? I am not a coder so I need a bit of help to know where to copy paste the provided code.

    Is there a better way that you have managed to create to resolve this problem? Thanks.

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

    (@missveronicatv)

    @fitsmartyou

    You can download the zip file from the green Code button at

    https://github.com/MissVeronica/um-events-trace-log

    At WP Plugins -> Add New Plugin there is a Button “Upload Plugin”
    Clicking this button you will get an upload option.
    Select the downloaded zip file and click “Install now”
    Activate the plugin

    UM Settings -> Misc where you can select logging of Redirects and Login errors
    which will write to .../wp-content/debug.log an events log
    from which PHP function the redirects are called.

    Post the debug.log contents here in the Forum
    and we can help you explain the redirect.

    Thread Starter fitsmartyou

    (@fitsmartyou)

    Just done as directed but I can’t seem to find much inside the Debug Log file. This issue is quite frustrating.

    View post on imgur.com

    https://bizsasa.com/wp-content/debug.log

    I don’t think the Debug Log file has anything meaningful in it, or does it?

    Let me know if there’s something I have done wrong.

    1. Plugin installed & activated
    2. Went to Misc under UM and checked the “Log Redirect Events” and “Log password reset events and login errors” & clicked “Save Changes”.
    missveronica

    (@missveronicatv)

    @fitsmartyou

    Sorry my mistake, you must create a new WP page,
    where you add the shortcode [um_events_trace_log]

    Viewing this page will give a detailed list of the log.

    Thread Starter fitsmartyou

    (@fitsmartyou)

    Hello, here’s the new page: https://bizsasa.com/um-test/

    My users are actively trying to log in to their accounts. I hope the page will give you the info you need to resolve this issue. I have tried my best. Thanks.

    PAGE SAYS

    UM Events Trace Log, version 3.3.0Display of last 0 log entries in reverse order 2024-09-17 09:22:30If refresh of this page will not display new values during your test: Turn off WP Plugin and Web Hosting caching for the UM Pages and Clear Browser cache.

    View post on imgur.com

    • This reply was modified 2 months ago by fitsmartyou. Reason: additional comments
    • This reply was modified 2 months ago by fitsmartyou. Reason: addition of image
    missveronica

    (@missveronicatv)

    @fitsmartyou

    Yes there are two settings missing and you get no log entries:

    Enter a @ for “Events Trace Log User ID’s or @”
    Enter 50 for “Events Trace Log max number of log entries”

    Thread Starter fitsmartyou

    (@fitsmartyou)

    Changes done, here you go: https://imgur.com/a/jr7UayQ

    Time

    ID

    User

    IP

    Status

    Redirect URL / Nonce / Reset pwd / Activation Hash / Login

    Redirect by script: line

    HTML Code

    Priority Role

    11:13:24

    3

    [Username Redacted]

    X08.233.172

    wp_redirect

    https://bizsasa.com

    ultimate-member/includes/um-short-functions.php:608, ultimate-member/includes/core/um-actions-wpadmin.php:21

    302

    subscriber

    11:13:24

    3

    [Username Redacted]

    X08.233.172

    wp_redirect

    https://bizsasa.com/wp-admin/profile.php

    302

    subscriber

    11:13:06

    3

    [Username Redacted]

    X08.233.172

    wp_redirect

    https://bizsasa.com

    ultimate-member/includes/um-short-functions.php:608, ultimate-member/includes/core/um-actions-wpadmin.php:21

    302

    subscriber

    11:12:31

    11

    [Username Redacted][Username Redacted]

    X08.233.172

    wp_redirect

    https://bizsasa.com

    ultimate-member/includes/um-short-functions.php:608, ultimate-member/includes/core/um-actions-wpadmin.php:21

    302

    author

    11:12:30

    11

    [Username Redacted]

    X08.233.172

    wp_redirect

    https://bizsasa.com/wp-admin/

    302

    author

    11:09:50

    1

    [Username Redacted]

    X08.233.172

    wp_redirect

    https://bizsasa.com/wp-admin/admin.php?page=um_options&update=um_settings_updated&tab=misc

    ultimate-member/includes/um-short-functions.php:637, ultimate-member/includes/admin/core/class-admin-settings.php:2603

    302

    administrator
    missveronica

    (@missveronicatv)

    @fitsmartyou

    The UM function um_block_wpadmin_by_user_role is testing the roles
    Subscriber and Author for can_access_wpadmin
    which fails and the User is redirected to the Home page.

    Thread Starter fitsmartyou

    (@fitsmartyou)

    Yes, that seems like the problem, so what’s the solution? What actions should I take to fix it given that I am not a coder or developer?

    missveronica

    (@missveronicatv)

    @fitsmartyou

    How is your settings at UM User Roles -> Edit (Subscriber and Author) -> Login Options?

    Thread Starter fitsmartyou

    (@fitsmartyou)

    Thank you, went under Ultimate Member > User Roles and switched WP-Admin Access from NO to YES for all users.

    The problem seems to have vanished.

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