System Error

[2] ErrorException in Session.php line 106

session_start(): Cannot send session cookie - headers already sent by (output started at /data/home/byu3003990001/htdocs/index.php:1)

  1. // 读取session驱动
  2. $class = false !== strpos($config['type'], '\\') ? $config['type'] : '\\think\\session\\driver\\' . ucwords($config['type']);
  3. // 检查驱动类
  4. if (!class_exists($class) || !session_set_save_handler(new $class($config))) {
  5. throw new ClassNotFoundException('error session handler:' . $class, $class);
  6. }
  7. }
  8. if ($isDoStart) {
  9. session_start();
  10. self::$init = true;
  11. } else {
  12. self::$init = false;
  13. }
  14. }
  15. /**
  16. * session自动启动或者初始化
  17. * @return void

Call Stack

  1. in Session.php line 106
  2. at Error::appError(2, 'session_start(): Can...', '/data/home/byu300399...', 106, ['config' => ['id' => '', 'var_session_id' => '', 'prefix' => 'think', ...], 'isDoStart' => true])
  3. at session_start() in Session.php line 106
  4. at Session::init() in Session.php line 120
  5. at Session::boot() in Session.php line 164
  6. at Session::get('chengzhushuo', null) in helper.php line 304
  7. at session('chengzhushuo') in Articlecontent.php line 82
  8. at Articlecontent->articlecontent()
  9. at ReflectionMethod->invokeArgs(object(Articlecontent), []) in App.php line 343
  10. at App::invokeMethod([object(Articlecontent), 'articlecontent'], []) in App.php line 611
  11. at App::module(['home', 'articlecontent', 'articlecontent'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  12. at App::exec(['type' => 'module', 'module' => ['home', 'articlecontent', 'articlecontent'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in start.php line 19
  14. at require('/data/home/byu300399...') in index.php line 17

Environment Variables

GET Data

id
947
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/byu3003990001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.czsay.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php55/hichina_ini/byu3003990001
QUERY_STRING
id=947
REDIRECT_DOCUMENT_ROOT
/usr/home/byu3003990001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
deflate, gzip
REDIRECT_HTTP_HOST
www.czsay.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_PATH
/bin:/usr/bin
REDIRECT_QUERY_STRING
id=947
REDIRECT_REMOTE_ADDR
154.208.222.233
REDIRECT_REMOTE_PORT
20001
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/articlecontent.html?id=947
REDIRECT_SCRIPT_FILENAME
/usr/home/byu3003990001/htdocs/articlecontent.html
REDIRECT_SCRIPT_NAME
/articlecontent.html
REDIRECT_SCRIPT_URI
http://www.czsay.com/articlecontent.html
REDIRECT_SCRIPT_URL
/articlecontent.html
REDIRECT_SERVER_ADDR
172.18.19.92
REDIRECT_SERVER_ADMIN
webmaster@byu3003990001.my3w.com
REDIRECT_SERVER_NAME
www.czsay.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
Xe6J-KwSE1wAAHPCFWoAAAAV
REDIRECT_URL
/articlecontent.html
REMOTE_ADDR
154.208.222.233
REMOTE_PORT
20001
REQUEST_METHOD
GET
REQUEST_URI
/articlecontent.html?id=947
SCRIPT_FILENAME
/usr/home/byu3003990001/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://www.czsay.com/articlecontent.html
SCRIPT_URL
/articlecontent.html
SERVER_ADDR
172.18.19.92
SERVER_ADMIN
webmaster@byu3003990001.my3w.com
SERVER_NAME
www.czsay.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
Xe6J-KwSE1wAAHPCFWoAAAAV
ORIG_PATH_INFO
/articlecontent.html
ORIG_PATH_TRANSLATED
/usr/home/byu3003990001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1575913980.4618
REQUEST_TIME
1575913980
PATH_INFO
/articlecontent.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/home/byu3003990001/htdocs/app/
THINK_VERSION
5.0.24
THINK_START_TIME
1575913980.4624
THINK_START_MEM
247840
EXT
.php
DS
/
THINK_PATH
/data/home/byu3003990001/htdocs/thinkphp/
LIB_PATH
/data/home/byu3003990001/htdocs/thinkphp/library/
CORE_PATH
/data/home/byu3003990001/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/byu3003990001/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/home/byu3003990001/htdocs/
EXTEND_PATH
/data/home/byu3003990001/htdocs/extend/
VENDOR_PATH
/data/home/byu3003990001/htdocs/vendor/
RUNTIME_PATH
/data/home/byu3003990001/htdocs/runtime/
LOG_PATH
/data/home/byu3003990001/htdocs/runtime/log/
CACHE_PATH
/data/home/byu3003990001/htdocs/runtime/cache/
TEMP_PATH
/data/home/byu3003990001/htdocs/runtime/temp/
CONF_PATH
/data/home/byu3003990001/htdocs/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false