error session_decode():会话未激活(nginx / php-fpm)

时间:2017-01-09 07:18:28

标签: php

在nginx日志中解码以下错误时遇到问题。我该怎么做才能获得有关此错误的更多详细信息?

2017/01/09 07:11:01 [error] 14939#14939: *137 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ErrorException: session_decode(): Session is not active. You cannot decode session data in /srv/www/forward-staging.org/current/symphony/lib/core/class.session.php:198
Stack trace:
#0 [internal function]: GenericErrorHandler::handler(2, 'session_decode(...', '/srv/www/forwar...', 198, Array)
#1 /srv/www/forward-staging.org/current/symphony/lib/core/class.session.php(198): session_decode(NULL)
#2 /srv/www/forward-staging.org/current/symphony/lib/core/class.session.php(162): Session::unserialize(NULL)
#3 [internal function]: Session::write('177b1ef34bb1346...', 'sym-|a:0:{}')
#4 [internal function]: session_write_close()
#5 {main}
  thrown in /srv/www/forward-staging.org/current/symphony/lib/core/class.session.php on line 198" while reading upstream, client: 10.128.12.7, server: forward-staging.org, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-forward.sock:", host: "forward-staging.org"

运行:
PHP 7.0.14-2 + deb.sury.org~xenial + 1
nginx版本:nginx / 1.11.8
Ubuntu 16.04.1 LTS

1 个答案:

答案 0 :(得分:0)

首先尝试修复系统日期

    #1 /srv/www/forward-staging.org/current/symphony/lib/core/class.session.php(198): session_decode(NULL)
#2 /srv/www/forward-staging.org/current/symphony/lib/core/class.session.php(162): Session::unserialize(NULL)
#3 [internal function]: Session::write('177b1ef34bb1346...', 'sym-|a:0:{}')