• Hello, I am an intermediate web developer and I am working on a multi-vendor eCommerce site.
    So while I was test running it I discovered a (Fatal Error) whenever I try registering as a vendor on my site.Kindly help me look into it

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Please post the details of the fatal error, available in your error logs.

    Thread Starter muqsitgiwa

    (@muqsitgiwa)

    Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/wearnaij/public_html/wp-includes/PHPMailer/PHPMailer.php:874 Stack trace: #0 /home/wearnaij/public_html/wp-includes/PHPMailer/PHPMailer.php(1930): PHPMailer\PHPMailer\PHPMailer->mailPassthru(‘muhkhseet@gmail…’, ‘[Wear Naija] A …’, ‘<!DOCTYPE html>…’, ‘Date: Wed, 28 S…’, NULL) #1 /home/wearnaij/public_html/wp-includes/PHPMailer/PHPMailer.php(1658): PHPMailer\PHPMailer\PHPMailer->mailSend(‘Date: Wed, 28 S…’, ‘<!DOCTYPE html>…’) #2 /home/wearnaij/public_html/wp-includes/PHPMailer/PHPMailer.php(1494): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /home/wearnaij/public_html/wp-includes/pluggable.php(548): PHPMailer\PHPMailer\PHPMailer->send() #4 /home/wearnaij/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(690): wp_mail(Array, ‘[Wear Naija] A …’, ‘<!DOCTYPE html>…’, Array, Array) #5 /home/wearnaij/public_html/wp-content/plugins/dokan-lite/includes/Emails/NewSeller.php(86): WC_Email->send(‘muhkhseet@gmail…’, ‘[Wear Naija] A …’, ‘<!DOCTYPE html>…’, ‘Content-Type: t…’, Array) #6 /home/wearnaij/public_html/wp-includes/class-wp-hook.php(307): WeDevs\Dokan\Emails\NewSeller->trigger(13, Array) #7 /home/wearnaij/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #8 /home/wearnaij/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #9 /home/wearnaij/public_html/wp-content/plugins/dokan-lite/includes/Registration.php(174): do_action(‘dokan_new_selle…’, 13, Array) #10 /home/wearnaij/public_html/wp-includes/class-wp-hook.php(309): WeDevs\Dokan\Registration->save_vendor_info(13, Array) #11 /home/wearnaij/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array) #12 /home/wearnaij/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #13 /home/wearnaij/public_html/wp-content/plugins/woocommerce/includes/wc-user-functions.php(105): do_action(‘woocommerce_cre…’, 13, Array, false) #14 /home/wearnaij/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(1092): wc_create_new_customer(‘reallytryings@g…’, ‘reallytryings’, ‘reallytryings@g…’) #15 /home/wearnaij/public_html/wp-includes/class-wp-hook.php(307): WC_Form_Handler::process_registration(”) #16 /home/wearnaij/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #17 /home/wearnaij/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #18 /home/wearnaij/public_html/wp-settings.php(620): do_action(‘wp_loaded’) #19 /home/wearnaij/public_html/wp-config.php(96): require_once(‘/home/wearnaij/…’) #20 /home/wearnaij/public_html/wp-load.php(50): require_once(‘/home/wearnaij/…’) #21 /home/wearnaij/public_html/wp-blog-header.php(13): require_once(‘/home/wearnaij/…’) #22 /home/wearnaij/public_html/index.php(17): require(‘/home/wearnaij/…’) #23 {main} thrown in /home/wearnaij/public_html/wp-includes/PHPMailer/PHPMailer.php on line 874

    Thread Starter muqsitgiwa

    (@muqsitgiwa)

    There it is. I’ll be expecting your response..

    Dion

    (@diondesigns)

    That error will occur if the mail() function is disabled in PHP 8.0+. This is IMO a bug in the PHPMailer code…it should check whether the mail() function is available before attempting to use it.

    Thread Starter muqsitgiwa

    (@muqsitgiwa)

    How do I do that?

    Dion

    (@diondesigns)

    You should check the output from phpinfo() and find the values for the disable_functions setting. If the mail function is listed, then you must use SMTP for sending email.

    If you do not know how to locate or generate the phpinfo() page, then contact your host and ask them whether they have disabled the PHP mail function.

    Thread Starter muqsitgiwa

    (@muqsitgiwa)

    Thanks a lot I’ll do that and get back to you

    Thread Starter muqsitgiwa

    (@muqsitgiwa)

    Hello Dion, I mail my hosting provider asking them if the PHP mail function was disabled or if they can check it out and help but I got no response from them.

    so I copied the PHP mail file from my Cpanel but I’m confused because I couldn’t find the error in the code.
    Do you mind sharing your email address so I can share it with you to help me check it out?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP mailer Fatal Error message’ is closed to new replies.