HTTP 500 after user registration

I was having trouble enabling Captcha on the above website, so Adam Czajczyk help me replace my sign up page for a pop-up created by Hustle plugin. It resolve the issue and now I have the captcha in the sign up form, but after clicking "Register" I get a HTTP 500. The user is created though. Looking at the apache log, I can see the following error: "[Mon Apr 15 14:05:33.925582 2019] [php7:error] [pid 3469] [client] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wp_custom_user_redirect(), 1 passed in /var/www/ on line 286 and exactly 2 expected in /var/www/\nStack trace:\n#0 /var/www/ wp_custom_user_redirect('/':wink:\n#1 /var/www/ WP_Hook->apply_filters('/', Array)\n#2 /var/www/ apply_filters('woocommerce_reg...', '/':wink:\n#3 /var/www/ WC_Form_Handler::process_registration('':wink:\n#4 /var/www/ WP_Hook->apply_filters(NULL, Array)\n#5 /var/www/jobsultin in /var/www/ on line 251, referer:"
So I need help trying to figure it out.
I already tried to remove the custom code suggest by Adam and also disabled the captcha plugin, but the HTTP 500 is still there. So it's no related to that.

Thank you.