Page 1 of 1

2 Strict Standards errors on different sites have appeared

Posted: 2015-09-04 09:56
by Timespider
Hi guys, I am getting errors that are similar on 2 different sites. one site has this error

(Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in /home/earthman/public_html/includes/tng/tNG.class.php on line 168)

& another when trying to send an email from the clients site.

(Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/chevybri/public_html/includes/common/lib/email/Pear/Mail/smtp.php on line 203)

This second error still exists after I swapped the file located here at (http://www.interaktonline.info/files/61 ... ssed..html) as it didn't work I swapped it back. Does anyone know why this has just started happening? I have no idea how to fix this, can anyone help? I stressing out.

Thanks Chris

Re: 2 Strict Standards errors on different sites have appear

Posted: 2015-09-06 10:23
by Fred
Relax I have it under control.
Fixed mine a while ago but never uploaded to the site.
I will send to you ASAP as if working upload to the site.

Probably updated your php version.

Re: 2 Strict Standards errors on different sites have appear

Posted: 2015-09-09 00:59
by Timespider
With Fred's help I have a fix.

On one of the sites I put this in my connection folder connection file ini_set('display_errors','off');

In the other site I put error_reporting(0);

I'm not a great coder but presume they both do the same thing. In case this doesn't help you, here is another page with a different similar topic/answer viewtopic.php?f=49&t=325 & here is a similar patched file page http://www.interaktonline.info/files/61 ... ssed..html

Fred also recommended to save your sites before changing them which I have done. Then you can muck around till the cows come home & if needed revert to the old files.

As usual Thanks Fred