• Resolved ninoa

    (@ninoa)


    I want to issue an Error that is only occuring if the WP Activity Log Plugin is activated and a User wants to reset the Password via the Login Panel, as soon as you type in the User Name (or Email) of the affected User and click on “New Password” it is throwing an Critical Error.

    Current Plugin: WP Activity Log (Version 4.2.1) PHP-Version 7.4.0
    
    Error-Details
    ==============
    An Error of Type E_ERROR occurred in line 544 of the file /storage/web/web0104/web/wp-content/plugins/wp-security-audit-log/classes/Sensors/LogInOut.php
    
    Errormessage: Uncaught Argument
    CountError: Too few arguments to function WSAL_Sensors_LogInOut::event_user_requested_pw_reset(), 1 passed in /storage/web/web0104/web/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /storage/web/web0104/web/wp-content/plugins/wp-security-audit-log/classes/Sensors/LogInOut.php:544
    Stack trace:
    #0 /storage/web/web0104/web/wp-includes/class-wp-hook.php(288): WSAL_Sensors_LogInOut->event_user_requested_pw_reset(Object(WP_Error))
    #1 /storage/web/web0104/web/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #2 /storage/web/web0104/web/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /storage/web/web0104/web/wp-login.php(380): do_action('lostpassword_po...', Object(WP_Error))
    #4 /storage/web/web0104/web/wp-login.php(795): retrieve_password()
    #5 {main}
      thrown

    Could you please help me out? Thank you

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

    (@robert681)

    Hello @ninoa

    Thank you very much for using our plugin. I am sorry to read about your issue.

    Can you please advise if the login panel is custom? I.e. are you using the default WordPress login page or do you have a theme or a plugin and you are using a custom page?

    Looking forward to hearing from you.

    Thread Starter ninoa

    (@ninoa)

    Hello robertabela,

    Thanks for your response.
    THe login panel is not custom, the overall theme is custom but the login panel is not altered.

    Same issue here. Disabling the “User requested a password reset” event bypasses the issue as a temporary workaround.

    Plugin Support Danny Jones

    (@distinctivepixels)

    Hello @ninoa

    Iv been looking into this and have a question – can you confirm what version of WP you are using?

    The reason I ask is, as I can see in your error message, the error is being caused by a required argument being missing from within WPs own call to the lostpassword_post hook. This required argument was added in WP 5.4 and is used by our plugin to report this event, so if your using a version of WP older than 5.4, then this could explain why your seeing an error.

    Look forward to hearing from you.

    Kind regards, Daniel @ WP White Security

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error after User wants to Reset PW via Login Panels (“Forgot Password?”)’ is closed to new replies.