• I’m getting this error whenever I update a password.
    It raises in woocommerce –> MyAccount –> Account Details, and also in the wp-admin site.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function EWD_UWPM_Send_On_User_Password_Reset(), 1 passed in /home/hocpwzke/public_html/testing/wp-includes/class-wp-hook.php on line 289 and exactly 3 expected in /home/hocpwzke/public_html/testing/wp-content/plugins/ultimate-wp-mail/Functions/EWD_UWPM_Send_On_Actions.php:33 Stack trace: #0 /home/hocpwzke/public_html/testing/wp-includes/class-wp-hook.php(289): EWD_UWPM_Send_On_User_Password_Reset(Array) #1 /home/hocpwzke/public_html/testing/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /home/hocpwzke/public_html/testing/wp-includes/user.php(2052): apply_filters(‘password_change…’, Array, Array, Array) #3 /home/hocpwzke/public_html/testing/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(308): wp_update_user(Array) #4 /home/hocpwzke/public_html/testing/wp-includes/class-wp-hook.php(287): WC_Form_Handler::save_account_details(”) #5 /home/hocpwzke/public_html/testing/wp-includes/class-wp-hook.php(311): WP_Hook->apply_fi in /home/hocpwzke/public_html/testing/wp-content/plugins/ultimate-wp-mail/Functions/EWD_UWPM_Send_On_Actions.php on line 33

    I need support please.

    Let me know if you need any further information

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi martin,

    Sorry about the issue you’re facing. The file/line you reference is part of the feature in our plugin to send email notifications for password changes. Have you set up a Send Event (in our plugin options) for when a password change. If not, then there should definitely be no way it could throw an error if you’re not using that feature. But, if it is, then it’s likely that another plugin is conflicting. Do you have any other plugin that does anything related to users, members, accounts, passwords, etc.? If so, it could be something is conflicting between one of their features and our password email feature, even if you’re not using it. You could try deactivating that other plugin to see if that is indeed the case. Or, even simpler, you could deactivate all other plugins, to see if the error stops, and then, if it does, reactivate them, one by one, to see which is conflicting, and then let us know.

    That being said, any conflict caused by you changing a password is probably related to the functionality we have in our plugin to automatically send an email on password change. The file, in our plugin, that has the code for this is EWD_UWPM_Send_On_Actions.php (in the Functions folder). You can see in there that there is a function called “EWD_UWPM_Send_On_User_Password_Reset”. If you don’t need that feature at all, then, if you were to comment out the filter that hooks this function into WordPress, it should remove that functionality from the plugin and hopefully the conflict you are facing. The line you would want to comment out/remove is the following:

    add_filter('password_change_email', 'EWD_UWPM_Send_On_User_Password_Reset');

    Thread Starter martinmazurski

    (@martinmazurski)

    Hi, I don’t seem to have another plugin that could be messing up with this functionality.
    I’ve already tried disabling the core woocommerce functionality that sends emails when a user requests for password reset, and also a plugin that checks for Password Strength, but there’s nothing else.

    I’ve sent you the full error message. It would be great if you parse that error or at least ask me for any other information that you may need like logs or something like that, to investigate that error and let me know where’s the source of that error.

    It could be an error of your plugin.

    Awaiting response,
    Martin

    Running into this exact issues on 2 of my sites. When I try to remove “add_filter(‘password_change_email’, ‘EWD_UWPM_Send_On_User_Password_Reset’);” or comment out the site gets locked to the point I have to remove plugin via FTP so I can get back into WP dashboard.

    This is the error that gets sent to my email about the critical error:
    Error Details
    =============
    An error of type E_ERROR was caused in line 33 of the file /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/ultimate-wp-mail/Functions/EWD_UWPM_Send_On_Actions.php. Error message: Uncaught ArgumentCountError: Too few arguments to function EWD_UWPM_Send_On_User_Password_Reset(), 1 passed in /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php on line 289 and exactly 3 expected in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/ultimate-wp-mail/Functions/EWD_UWPM_Send_On_Actions.php:33
    Stack trace:
    #0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(289): EWD_UWPM_Send_On_User_Password_Reset()
    #1 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters()
    #2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/user.php(2067): apply_filters()
    #3 /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/user.php(227): wp_update_user()
    #4 /opt/bitnami/apps/wordpress/htdocs/wp-admin/user-edit.php(160): edit_user()
    #5 {main}
    thrown

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting an error when updating password’ is closed to new replies.