kisun 2016-04-06 10:33:20 3401次浏览 1条回复 0 0 0
部署网站到Nginx服务器上面,却报这个错误,不知如何解决,求大神指点,在线等~,谢谢
PHP Warning – yii\base\ErrorException
register_shutdown_function(): Invalid shutdown callback '' passed

 public function init()
    {
        parent::init();
        register_shutdown_function(function () {
            // make regular flush before other shutdown functions, which allows session data collection and so on
            $this->flush();
            // make sure log entries written by shutdown functions are also flushed
            // ensure "flush()" is called last when there are multiple shutdown functions
            register_shutdown_function([$this, 'flush'], true);
        });
    }
  • 回复于 2016-04-06 15:13 举报

    跟nginx 无关吧,目测应该是 php版本的的问题,之前有一个帖子 可以看看 传送门

    1 条回复
    回复于 2016-04-07 09:01 回复

    好的,我看下,谢谢

您需要登录后才可以回复。登录 | 立即注册