Error on 2Checkout payment redirect: Uncaught ArgumentCountError
-
I have been using Paid memberships pro for quite a while now and it has been working great. But after updating it to latest version, I am getting following error after payment is submitted using 2Checkout payment gateway:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function pmpro_after_checkout_update_consent(), 1 passed in /home/mydomain.com/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/mydomain.com/wp-content/plugins/paid-memberships-pro/includes/privacy.php:483 [26-Dec-2018 04:37:26 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function pmpro_after_checkout_update_consent(), 1 passed in /home/mydomain.com/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/mydomain.com/wp-content/plugins/paid-memberships-pro/includes/privacy.php:483 Stack trace: #0 /home/mydomain.com/wp-includes/class-wp-hook.php(286): pmpro_after_checkout_update_consent('4810') #1 /home/mydomain.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/mydomain.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/mydomain.com/wp-content/plugins/paid-memberships-pro/services/twocheckout-ins.php(354): do_action('pmpro_after_che...', '4810') #4 /home/mydomain.com/wp-content/plugins/paid-memberships-pro/services/twocheckout-ins.php(62): pmpro_insChangeMembershipLevel('250099241612', Object(MemberOrder)) #5 /home/mydomain.com/wp-content/plugins/pai in /home/mydomain.com/wp-content/plugins/paid-memberships-pro/includes/privacy.php on line 483
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error on 2Checkout payment redirect: Uncaught ArgumentCountError’ is closed to new replies.