#309 Error when configure mail sending!

open
nobody
None
1
2014-08-14
2012-11-15
Anonymous
No

I configure send email notification but it show error. How i fix it?

DEBUG] Preparing email for new or changed booking ...
[DEBUG] Preparing to send email ...

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail\mimePart.php on line 307

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail\mimePart.php on line 307
[DEBUG] Using backend 'smtp'
[DEBUG] Recipients: 'hung-vuquang@unicharm.com'

Strict Standards: Non-static method Mail::factory() should not be called statically in C:\xampp\htdocs\mrbs\web\functions_mail.inc on line 1246

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail\smtp.php on line 365

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 386

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 391

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 398

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 441

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 445

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail\smtp.php on line 376

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 550

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 605

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 609

Strict Standards: Non-static method Auth_SASL::factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 618

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 622

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 626

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 633

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 637

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 584

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail\smtp.php on line 249

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail\smtp.php on line 285

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 837

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 840

Strict Standards: Non-static method Mail_RFC822::parseAddressList() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Mail.php on line 253

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 867

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 870

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 948

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 951

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 1002

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 1012

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 1017

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 415

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 230

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 418

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mrbs\web\Net\SMTP.php on line 421
[DEBUG] Email sent successfully

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mrbs\web\Net\SMTP.php:626) in C:\xampp\htdocs\mrbs\web\edit_entry_handler.php on line 605

Discussion

  • The "Preparing to send mail .." messages are there because you must have

    $mail_settings['debug'] = TRUE;
    

    in your config file. You should set it to FALSE unless you are trying to debug mail sending.

    The other messages are there because you must have E_NOTICE errors turned on. Make sure that error reporting is something like

    // Make sure notice errors are not reported, they can break mrbs code:
    $error_level = E_ALL ^ E_NOTICE ^ E_USER_NOTICE;
    if (defined("E_DEPRECATED"))
    {
      $error_level = $error_level ^ E_DEPRECATED;
    }
    error_reporting ($error_level);
    

    Campbell

     

  • Anonymous
    2012-11-15

    Thank you!

    But i turn off debug mode and remove this code in internalconfig.inc.php but error is not disappear.

     


Anonymous


Cancel   Add attachments