THT Community

Full Version: SMTP error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Trying to use the smtp function in the script i get this error

PHP Code:
Strict StandardsNon-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Mail/smtp.php on line 365

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 448

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 465

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 472

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 515

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 519

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Mail/smtp.php on line 376

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 597

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 600

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 603

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 515

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 519

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 621

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 802

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 806

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 814

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 818

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 822

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 827

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 649

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Mail/smtp.php on line 249

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Mail/smtp.php on line 285

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 945

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 948

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 975

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 978

Strict Standards
Non-static method PEAR::raiseError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 371

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 1266

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 263

Strict Standards
Non-static method PEAR::isError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Net/SMTP.php on line 1269

Strict Standards
Non-static method PEAR::raiseError() should not be called staticallyassuming $this from incompatible context in /usr/local/lib/php/Mail/smtp.php on line 302
/////////////////THT ERROR 
Would you mind linking us to a phpinfo() so I could take a better look at your PHP setup?

Also, please try this fix if it suits your issue: http://stackoverflow.com/a/22052063

Please do note to make a backup of any file you will be editing. In THT's case, Mail.php is in /includes/pear/
Alternatively disable strict error reporting. Replace the error_reporting call in compiler.php with this:

PHP Code:
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); 
(05-03-2014, 11:35 PM)Kevin Wrote: [ -> ]Alternatively disable strict error reporting. Replace the error_reporting call in compiler.php with this:

PHP Code:
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); 


works like a charm thank you.