Fatal error: Uncaught ArgumentCountError: lostpassword_post()
-
Hi,
I’m working with WordPress version 6.4.3 and PHP 8.1. After updating the Theme My Login plugin to version 7.1.7, it stopped functioning correctly. All text fields disappeared, but no error message was displayed. Currently, I’m using Theme My Login version 6.4.17, which seems to be conflicting with the WP-2FA (Version 2.7.0) plugin. Here’s the fatal error I’m encountering:PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP2FA\Authenticator\Reset_Password::lostpassword_post(), 1 passed in C:\xampp\htdocs\xxxxxxxxx\wp-includes\class-wp-hook.php on line 324 and exactly 2 expected in C:\xampp\htdocs\xxxxxxxxx\wp-content\plugins\wp-2fa\includes\classes\Authenticator\class-reset-passord.php:47
Stack trace: 0 C:\xampp\htdocs\xxxxxxxxx\wp-includes\class-wp-hook.php(324): WP2FA\Authenticator\Reset_Password::lostpassword_post(Object(WP_Error)) 1 C:\xampp\htdocs\xxxxxxxxx\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 2 C:\xampp\htdocs\xxxxxxxxx\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 3 C:\xampp\htdocs\xxxxxxxxx\wp-content\plugins\theme-my-login\includes\class-theme-my-login.php(1286): do_action(‘lostpassword_po…’, Object(WP_Error)) 4 C:\xampp\htdocs\xxxxxxxxx\wp-content\plugins\theme-my-login\includes\class-theme-my-login.php(384): Theme_My_Login::retrieve_password() 5 C:\xampp\htdocs\xxxxxxxxx\wp-includes\class-wp-hook.php(324): Theme_My_Login->template_redirect(”) 6 C:\xampp\htdocs\xxxxxxxxx\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 7 C:\xampp\htdocs\xxxxxxxxx\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 8 C:\xampp\htdocs\xxxxxxxxx\wp-includes\template-loader.php(13): do_action(‘template_redire…’) 9 C:\xampp\htdocs\xxxxxxxxx\wp-blog-header.php(19): require_once(‘C:\xampp\htdocs…’) 10 C:\xampp\htdocs\xxxxxxxxx\index.php(17): require(‘C:\xampp\htdocs…’) 11 {main} thrown in C:\xampp\htdocs\xxxxxxxxx\wp-content\plugins\wp-2fa\includes\classes\Authenticator\class-reset-passord.php on line 47Please help me to resolve this issue.
- You must be logged in to reply to this topic.