*

Tech mind

  • *
  • 2 posts
Registration error in Patricia Theme
« on: June 19, 2024, 08:59:19 PM »
I installed patricia theme today, but when i start registering as a user there an error message appears, screenshot attached please help me.



Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/dubaisel/public_html/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php:874 Stack trace: #0 /home/dubaisel/public_html/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php(1928): PHPMailer\PHPMailer\PHPMailer->mailPassthru('Osclass <admin@...', 'Osclass - A new...', '<p>Dear Osclass...', 'Date: Wed, 19 J...', NULL) #1 /home/dubaisel/public_html/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php(1656): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Wed, 19 J...', '<p>Dear Osclass...') #2 /home/dubaisel/public_html/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php(1492): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /home/dubaisel/public_html/oc-includes/osclass/utils.php(568): PHPMailer\PHPMailer\PHPMailer->send() #4 /home/dubaisel/public_html/oc-includes/osclass/emails.php(1185): osc_sendMail(Array) #5 /home/dubaisel/public_html/oc-includes/osclass/classes/Plugins.php(42): fn_email_admin_new_user(Array) #6 /home/dubaisel/public_html/oc-includes/osclass/helpers/hPlugins.php(34): Plugins::runHook('hook_email_admi...', Array) #7 /home/dubaisel/public_html/oc-includes/osclass/UserActions.php(151): osc_run_hook('hook_email_admi...', Array) #8 /home/dubaisel/public_html/oc-includes/osclass/controller/register.php(73): UserActions->add() #9 /home/dubaisel/public_html/index.php(287): CWebRegister->doModel() #10 {main} thrown in /home/dubaisel/public_html/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 874

*

MB Themes

Re: Registration error in Patricia Theme
« Reply #1 on: June 20, 2024, 12:09:27 PM »
You use latest osclass version?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Tech mind

  • *
  • 2 posts
Re: Registration error in Patricia Theme
« Reply #2 on: June 27, 2024, 05:09:41 PM »
You use latest osclass version?

Yes

*

Rick

  • ***
  • 47 posts
Re: Registration error in Patricia Theme
« Reply #3 on: June 28, 2024, 02:48:27 PM »
create new php file..

Put this code:
Code: [Select]
<?php
if (function_exists('mail')) {
    echo 
"mail() function is available.";
} else {
    echo 
"mail() function is NOT available.";
}
?>


And see if u have phpmailer to startwith

*

MB Themes

Re: Registration error in Patricia Theme
« Reply #4 on: July 01, 2024, 02:59:55 PM »
To me it looks like you have included different PHP mailer that miss that namespace.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots