• Resolved ashimasukhija

    (@ashimasukhija)


    Hi,
    I’m working with WordPress version 6.4.3 and PHP 8.1. I’m using WP-2FA (Version 2.7.0) plugin, which seems to be conflicting with the Theme My Login (version 6.4.17) 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 47

    Please help me to resolve this issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor robertabela

    (@robert681)

    Hello ashimasukhija,

    Thank you for using our plugin.

    Sorry for the late reply on this one. The last few days we were busy wrapping up the latest release of WP 2FA. Can you please try the latest version (2.8) and advise if the issue persists?

    Looking forward to hearing from you.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello again, Ashimasukhija!

    We’ve had a chance to analyze the error you reported and have drawn some initial conclusions that might aid in further investigation and troubleshooting:

    Upon closer examination of the error code, it appears that the “Theme My Login” plugin (or theme) does not fully comply with the recent changes to the WordPress core, starting from version 5.x and above.

    Specifically, according to the current WordPress core standards, two parameters are expected to be returned in this section: plugins\theme-my-login\includes\class-theme-my-login.php(1286). However, only one parameter is being sent, which is causing the error in our plugin.

    We recommend reaching out to the developers of “Theme My Login” to discuss this issue and seek their assistance based on the information we’ve gathered so far.

    We look forward to hearing back from you with any new details!

    Best regards,
    Lucian
    QA & Support Engineer @ Melapress

    Thread Starter ashimasukhija

    (@ashimasukhija)

    Thanks, Rober and Lucian,

    @robert681 , the latest release of WP 2FA (2.8) unfortunately won’t solve my issue.

    @lucianwpwhite , you’re right! I’ve noticed that Theme My Login versions 5.x and above aren’t compatible with WordPress. That’s why I’m using Theme My Login version 6.4.17, which works with WordPress 6.4.3.

    I’ve also reported this same issue to the Theme My Login developers but haven’t received a response yet. I’ve attached the link Fatal error: Uncaught ArgumentCountError: lostpassword_post() | www.remarpro.com.

    It would be fantastic if we could find a solution for this.

    Thread Starter ashimasukhija

    (@ashimasukhija)

    Hi,
    I have solved this issue. Thanks! @lucianwpwhite @robert681

    Plugin Contributor robertabela

    (@robert681)

    I am glad to read that you have solved the issue @ashimasukhija

    May I ask what was the solution please?

    Same Issue, WordPress 6.6.1, PHP 8.2, WP-2FA (Version 2.8.0)

    My Frontend Password Reset gives out critical Error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP2FA\Authenticator\Reset_Password::lostpassword_post(), 1 passed in /html/wordpress/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /html/wordpress/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-reset-passord.php:47 Stack trace: #0 /html/wordpress/wp-includes/class-wp-hook.php(324): WP2FA\Authenticator\Reset_Password::lostpassword_post(”) #1 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /html/wordpress/wp-content/plugins/frontend-reset-password/includes/somfrp-functions.php(343): do_action(‘…’) #4 /html/wordpress/wp-includes/class-wp-hook.php(324): somfrp_lost_pass_callback(‘…’) #5 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #6 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /html/wordpress/wp-content/plugins/frontend-reset-password/includes/somfrp-functions.php(297): do_action(‘…’, ‘…’) #8 /html/wordpress/wp-includes/class-wp-hook.php(324): somfrp_lost_pass_handler(‘…’) #9 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /html/wordpress/wp-content/plugins/frontend-reset-password/includes/somfrp-functions.php(254): do_action(‘…’, ‘…’) #12 /html/wordpress/wp-includes/class-wp-hook.php(324): somfrp_post_request(”) #13 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #14 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /html/wordpress/wp-includes/template-loader.php(13): do_action(‘…’) #16 /html/wordpress/wp-blog-header.php(19): require_once(‘…’) #17 /html/wordpress/index.php(17): require(‘…’) #18 {main} thrown in /html/wordpress/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-reset-passord.php on line 47

    Any Advice on how to fix this? Help would be much appriciated.

    Plugin Contributor robertabela

    (@robert681)

    Hello Alex,

    If you are encoutering an issue with our plugin and you need support please open your own forum thread or send us an email at [email protected].

    Thank you for your understanding and cooperation.

    We look forward to hearing from you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Uncaught ArgumentCountError: lostpassword_post()’ is closed to new replies.