How can I solve "Non-static method xxx:xxx() should not be called statically in PHP 5.4?

后端 未结 4 757
攒了一身酷
攒了一身酷 2020-12-03 16:33

Currently using a large platform in PHP.

The server it\'s hosted on has recently been upgraded to PHP 5.4.

Since, I\'ve received many error messages like:

4条回答
  •  攒了一身酷
    2020-12-03 17:27

    I solved this with one code line, as follow: In file index.php, at your template root, after this code line:

    defined( '_JEXEC' ) or die( 'Restricted access' );

    paste this line: ini_set ('display_errors', 'Off');

    Don't worry, be happy...

    posted by Jenio.

提交回复
热议问题