-
Dear support team,
I am faced with the problem that during the creation of a new WordPress user the following error is thrown. Need your help in fixing this!
Ein Fehler vom Typ E_ERROR wurde in der Zeile 111 der Datei /homepages/30/d4298219308/htdocs/wordpress/wp-content/plugins/creamz-pro/modules/auth/index.php verursacht. Fehlermeldung: Uncaught ArgumentCountError: Too few arguments to function CreamzProAuth::creamz_pro_registration_mail(), 1 passed in /homepages/30/d4298219308/htdocs/wordpress/wp-includes/class-wp-hook.php on line 326 and exactly 3 expected in /homepages/30/d4298219308/htdocs/wordpress/wp-content/plugins/creamz-pro/modules/auth/index.php:111
Stack trace:
#0 /homepages/30/d4298219308/htdocs/wordpress/wp-includes/class-wp-hook.php(326): CreamzProAuth->creamz_pro_registration_mail()
#1 /homepages/30/d4298219308/htdocs/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /homepages/30/d4298219308/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /homepages/30/d4298219308/htdocs/wordpress/wp-includes/user.php(2554): do_action()
#4 /homepages/30/d4298219308/htdocs/wordpress/wp-admin/includes/user.php(235): wp_insert_user()
#5 /homepages/30/d4298219308/htdocs/wordpress/wp-admin/user-new.php(198): edit_user()
#6 {main}
thrownObviously the problem is triggered by this code in index.php:
function creamz_pro_registration_mail($user_id , $user_name , $password ) {
$creamz_pro_user = get_userdata($user_id);
$creamz_pro_user_email = $creamz_pro_user->creamz_pro_user_email;// email will send registers
$creamz_pro_to = $creamz_pro_user_email;
$creamz_pro_subject = “Hi”;
$creamz_pro_body = ‘
<p>
We have successfully registered you as a Student.
Username =’.$user_name.’;
Password =’.$password .’;
</p>
‘;
$creamz_pro_headers = array(‘Content-Type: text/html; charset=UTF-8’);
wp_mail($creamz_pro_to, $creamz_pro_subject, $creamz_pro_body, $creamz_pro_headers);}
Looking forward your answer
HolgerHi there,
Thank you for reaching out.
To resolve the issue, we would need access to your website to debug it directly.
Kindly share your WordPress login details and FTP credentials so we can access your site and investigate the issue.
Please send your credentials privately, and refer to this guide on how to send them privately:
Once we receive the details, we’ll get started on resolving the issue promptly.
Thank you for your understanding, and we look forward to assisting you!
Hi There.,
We have resolved the critical error while creating the user. Kindly check and ensure everything is working as expected.
Please have a look: https://prnt.sc/hhM2kSHMopdO
Hope you are happy with our support. Kindly rate us. Don’t forget to place your worthy ratings and leave an amazing review in ThemeForest. We are awaiting 5-star ratings from your side. Have a look at the video
for the rating process.
Hoping for a 5-star rating from your end 🙂
Hi There.,
We have made some PHP code changes to resolve the issue. Kindly refer to the image below.
Refer: https://prnt.sc/zbXRTCpRD3j2
Hope you are happy with our support. Kindly rate us. Don’t forget to place your worthy ratings and leave an amazing review in ThemeForest. We are awaiting 5-star ratings from your side. Have a look at the video
for the rating process.
Hoping for a 5-star rating from your end 🙂
You must be logged in to reply to this topic.