Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wp Enhanced

    (@wpenhanced)

    Hi sorry for the delay

    Are you getting an error about this – where are you seeing the error so I can check and fix/confirm it is fixed

    Thanks

    Hi there,

    I’m facing same issue on front end side when we click on Reset button it showing the same error.

    https://prnt.sc/aHYH_l4xDCvL

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP2FA\Authenticator\Reset_Password::lostpassword_post(), 1 passed in /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-reset-passord.php:47 Stack trace: #0 /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-includes/class-wp-hook.php(324): WP2FA\Authenticator\Reset_Password::lostpassword_post() #1 /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-content/plugins/frontend-reset-password/includes/somfrp-functions.php(343): do_action() #4 /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-includes/class-wp-hook.php(324): somfrp_l in /home/652850.cloudwaysapps.com/uqyxqwmmqu/public_html/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-reset-passord.php on line 47

    Please help on that asap.

    Thanks

    Hey there,

    I have sent the above error showing the wp-2fa plugin has an error but it’s not like that. The error is in the Frontend Reset Password plugin only. I can say that because I’m using other plugins that are using the lostpassword_post hook with 2 arguments. Those plugins are Wordfence Security, New User Approve, WP 2FA – Two-factor authentication for WordPress.

    Thread Starter takuyanagatomo

    (@takuyanagatomo)

    @wpenhanced

    Hi, sorry for the delay in noticing.

    I’m not seeing the error on my end either with Frontend Reset Password by itself, but the do_action( 'lostpassword_post' ); tag I shared when I commented last time requires two arguments, so this action is not working when calling frontend-reset-password/ include/somfrp-functions.php:L343 , the error seems to be caused by a function set up by another plugin that expects two arguments.

    In my case, the plugin New User Approve sets a function in the above hook, so the error is caused in the processing of this plugin.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function pw_new_user_approve::lost_password(), 1 passed in /home/www/wp/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /home/www/wp/wp-content/plugins/new-user-approve/new-user-approve.php:813 Stack trace: #0 /home/www/wp/wp-includes/class-wp-hook.php(307): pw_new_user_approve->lost_password('') #1 /home/www/wp/home/www/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /home/www/wp/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/oikaze-test-sv3/www/test-let-kids/wp-content/plugins/frontend-reset-password/includes/somfrp-functions.php(343): do_action('lostpassword_po...') #4 /home/www/wp/wp-includes/class-wp-hook.php(307): somfrp_lost_pass_callback('tnagatomo+test@...') #5 /home/www/wp/wp-includes/class-wp-hook.php(331): WP_H in /home/www/wp/wp-content/plugins/new-user-approve/new-user-approve.php on line 813

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘lostpassword_post action needs two arguments.’ is closed to new replies.