• Resolved vsapountzis

    (@vsapountzis)


    Hi,

    Password reset generates a fatal error. The error is thrown as soon as the user tries to retrieve the password upon email submission.

    Below is the error I get:

    An error of type E_ERROR was caused in line 776 of the file /wp-content/plugins/paid-memberships-pro/includes/login.php. Error message: Uncaught ArgumentCountError: Too few arguments to function pmpro_password_reset_email_filter(), 2 passed in /wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /wp-content/plugins/paid-memberships-pro/includes/login.php:776

    The password reset form works fine when the plugin is disabled and it seems like an issue with the pmpro_password_reset_email_filter function.

    Is there a way to disable or override this function? What could be the cause of this issue?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Mary Mojisola Job

    (@mariaojob)

    Hello @vsapountzis,

    Thank you for using Paid Memberships Pro.

    I am unable to replicate this issue, could you tell me what version Of Paid Memberships Pro/Add Ons, WordPress and PHP you are using please?

    Thread Starter vsapountzis

    (@vsapountzis)

    Hi Mary and thank you for your reply.

    I am running WordPress 5.5.3 on PHP 7.3.5 and PMPro 2.5.2 with Recurring Emails and Failed Payment Limit Add On.

    Any suggestions?

    Plugin Support Mary Mojisola Job

    (@mariaojob)

    Hello @vsapountzis,

    I was not able to replicate this issue, however we appreciate you for bringing this to our attention. I have created an issue for this on Github here and our development team is looking into this as soon as they can.

    If you have any additional information to share, please do not hesitate to comment on the issue on Github.

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for your patience, I’ve looked into this issue and I haven’t been able to replicate it.

    Here is the Github issue for reference – https://github.com/strangerstudios/paid-memberships-pro/issues/1520

    Please can you send through a list of all active plugins. If you feel this information may be sensitive, please can you email us on http://www.paidmembershipspro.com/contact

    I’d like to replicate this issue consistently on our end so we can troubleshoot and resolve it.

    Thread Starter vsapountzis

    (@vsapountzis)

    Hi,

    @mariaojob Thank you for creating the issue on GH.

    @andrewza I will send you the full list of the active plugins via the contact form on your website.

    I am wondering, for testing purposes, if there is a way to bypass the function with remove_action or remove_filter rather in this case as well as overriding it maybe by using if(function_exists()){}. I have to test it further on my code as well to see if it is related to the theme.

    Please advise.

    Thanks!

    • This reply was modified 5 years, 6 months ago by vsapountzis.
    Thread Starter vsapountzis

    (@vsapountzis)

    Hi,

    Just wanted to follow-up on this issue. I managed to resolve it by removing the filter:

    remove_filter('retrieve_password_message', 'pmpro_password_reset_email_filter');

    I am posting it here in case someone else finds it useful.

    Thanks for your help!

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for sharing this, I’m glad to hear you have figured this one out. I’ll pass this information onto our developers.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Password reset fatal error’ is closed to new replies.