TYPO3 error mod_fcgid: stderr: PHP Strict Standards: Non-static method

After I moved TYPO3 site from one server to another, I got the blank page with following error on error log.

mod_fcgid: stderr: PHP Strict Standards:  Non-static method t3lib_div::getClassName() should not be called statically in /var/www/vhosts/.../typo3_src-4.5.2/t3lib/class.t3lib_div.php on line 5253


The solution is to put the following line in ext/typo3conf/localconf.php

 $TYPO3_CONF_VARS['SYS']['exceptionalErrors'] = E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_USER_ERROR ^ E_USER_NOTICE ^ E_USER_WARNING ^ E_STRICT;

Hope it may helps to someone.