Error Strict Standard: Non-Static method tNG_log::log()

Any tips and tricks that has to with the interakt extensions that doesn't fit into one of the other categories
ZanePaul
Posts: 2
Joined: 2013-11-30 04:42

Error Strict Standard: Non-Static method tNG_log::log()

Post by ZanePaul » 2013-11-30 04:48

Hello fellow InterAKT users,

I have been tearing my hair out due to a hosting provider upgrade to PHP 5.3 and later.

You may get this error at the top of the page after the PHP upgrade:

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

RESOLUTION:
For users trying to solve this problem, it turns out newer versions of php (as of 5.3 and later) will not work without a slightly different value for error_reporting in php.ini.

Older versions of php would work with the following settings in php.ini:
error_reporting = E_ALL & ~E_NOTICE

To fix this problem in php version 5.3 and later, use these settings in php.ini:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

Change your code to the above line in your PHP.ini file it will fix the issue.

Hope this helps