Support » Plugin: WP Activity Log » Fatal Error on Password Reset in 4.2.0.1

  • Resolved simonbbs

    (@simonbbs)


    Hey Guys,

    We’ve discovered an issue that appears to be related to the latest version of the plugin.

    When users enter their email address in the Reset Password form and hit the “Reset Password” button, it immediately throws this fatal error:

    Line 540
    Message Uncaught ArgumentCountError: Too few arguments to function WSAL_Sensors_LogInOut::event_user_requested_pw_reset(), 1 passed in /nas/content/live/dvpstaging/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /nas/content/live/dvpstaging/wp-content/plugins/wp-security-audit-log/classes/Sensors/LogInOut.php:540 Stack trace: #0 /nas/content/live/dvpstaging/wp-includes/class-wp-hook.php(287): WSAL_Sensors_LogInOut->event_user_requested_pw_reset(Object(WP_Error)) #1 /nas/content/live/dvpstaging/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #2 /nas/content/live/dvpstaging/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /nas/content/live/dvpstaging/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(296): do_action('lostpassword_po...', Object(WP_Error)) #4 /nas/content/live/dvpstaging/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(998): WC_Shortcode_My_Account::retrieve_password() #5 /nas/content/live/dvpstaging/wp
    File /nas/content/live/dvpstaging/wp-content/plugins/wp-security-audit-log/classes/Sensors/LogInOut.php

    As soon as we rollback the plugin to version 4.1.5.2 things work as expected.

    Thanks!

    -Simon

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

    (@robert681)

    Hello @simonbbs

    I am sorry to read about your issue. By any chance do you have a test / staging website? If you do, please do the following test and let us know of the outcome:

    1) Deactivate all plugins
    2) Try to reproduce the issue
    3) Start activating the plugins one by one until we find out with which plugin we have a conflict / issue. Please start with WooCommerce first, then activate the extensions one by one afterwards.

    Once we know which plugin is causing the issue, we can look specifically into it or reproduce the issue on our end, which would allow us to troubleshoot the issue.

    Looking forward to hearing from you.

    Hi, I have reproduced the error on my site as well. Similar to @simonbbs, our users encounter the same issue when they click the ‘Lost Password’ link and throws up the following error:

    Fatal error: Uncaught ArgumentCount
    
    Error: Too few arguments to function WSAL_Sensors_LogInOut::event_user_requested_pw_reset(), 1 passed in /home2/litbooks/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home2/litbooks/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/Sensors/LogInOut.php:540

    Deactivating WP Activity Log solved the issue. I haven’t had the time yet to do a plugin-by-plugin check but will try to do so when I can.

    FMH

    Thread Starter simonbbs

    (@simonbbs)

    Hey @robert681

    Update on this for you.

    We were able to test things on the default twenty twenty one theme and we discovered this was a conflict between version 4.2.0.1 and WooCommerce version 4.8.0

    If we update WooCommerce to version 5.0 it works as expected with the latest version of the Activity Log.

    Thanks!

    Plugin Contributor robertabela

    (@robert681)

    Thank you for the confirmation @simonbbs

    @fongmh can you please confirm if you have WooCommerce? And if you do, if you update WooCommerce to the latest version is the issue resolved?

    Looking forward to hearing from you.

    Hello!

    Mine seems to be related to WooCommerce too. I’m not able to update WooCommerce at the moment though.

    Here is my details:
    A custom theme
    – WordPress 5.6
    – WooCommerce 4.8.0
    – WP Activity Log 4.2.0.1

    Thanks!

    Hi @robert681

    Yes, I am running WooCommerce 4.8.0 as well. As with @becarlos I cannot update to WooCommerce 5.0 for the time being. Will try to do so this weekend and update.

    Thanks!

    Plugin Contributor robertabela

    (@robert681)

    Thank you for the details @fongmh

    We are currently testing this and will post an update shortly. As such you should not have a problem running the plugin alongside WooCommerce 4.8.0, after all it is just a few months old.

    We will keep you all posted. Thank you for reporting this issue and for your patience, and sorry for the inconvenience this issue might have caused.

    Hi @robert681

    We updated WooCommerce to version 5.1 and everything works as expected. Hope this helps others facing the same problem.

    Plugin Contributor robertabela

    (@robert681)

    Thank you for taking the time to update the thread @fongmh

    Indeed, updating to the latest version of WooCommerce solves the issue. By the way, please don’t forget to rate our plugin. These reviews really help us.

    Should you have any more questions please do not hesitate to ask.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    Moderator note: @robert681 Please do not include /?filter=5 in the review link. It’s not proper to pre-fill the star rating for your reviewers.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.