[2] ErrorException in Session.php line 106

session_start(): Cannot start session when headers already sent

  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...', '/home/dh_fkz67h/yase...', 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('THINK_TOKEN') in aduons.php line 517
  7. at create_think_token(1618859532.5237)
  8. at call_user_func('create_think_token', 1618859532.5237) in Request.php line 1568
  9. at Request->token('THINK_TOKEN', 'create_think_token') in aduons.php line 640
  10. at include('/home/dh_fkz67h/yase...') in Config.php line 80
  11. at Config::load('/home/dh_fkz67h/yase...', 'aduons') in App.php line 262
  12. at App::init() in App.php line 182
  13. at App::initCommon() in App.php line 82
  14. at App::run() in start.php line 19
  15. at require('/home/dh_fkz67h/yase...') in index.php line 40

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

PATH
/bin:/usr/bin:/sbin:/usr/sbin
CONTENT_LENGTH
0
PATH_TRANSLATED
/home/dh_fkz67h/yasee.tv/gbook/index/page/1.html
PATH_INFO
/gbook/index/page/1.html
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/gbook/index/page/1.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
54938
SCRIPT_FILENAME
/home/dh_fkz67h/yasee.tv/index.php
SERVER_ADMIN
webmaster@yasee.tv
CONTEXT_DOCUMENT_ROOT
/home/dh_fkz67h/yasee.tv
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/home/dh_fkz67h/yasee.tv
REMOTE_ADDR
3.236.228.250
SERVER_PORT
80
SERVER_ADDR
208.113.209.86
SERVER_NAME
www.yasee.tv
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
HTTP_CONNECTION
close
HTTP_HOST
www.yasee.tv
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
DH_USER
dh_fkz67h
ds_id_40872190
dsid
40872190
SCRIPT_URI
http://www.yasee.tv/index.php/gbook/index/page/1.html
SCRIPT_URL
/index.php/gbook/index/page/1.html
UNIQUE_ID
YH3WDNBx0W8AABboB8IAAABK
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/gbook/index/page/1.html
REQUEST_TIME_FLOAT
1618859532.5237
REQUEST_TIME
1618859532

Environment Variables

PATH
/bin:/usr/bin:/sbin:/usr/sbin
CONTENT_LENGTH
0
PATH_TRANSLATED
/home/dh_fkz67h/yasee.tv/gbook/index/page/1.html
PATH_INFO
/gbook/index/page/1.html
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/gbook/index/page/1.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
54938
SCRIPT_FILENAME
/home/dh_fkz67h/yasee.tv/index.php
SERVER_ADMIN
webmaster@yasee.tv
CONTEXT_DOCUMENT_ROOT
/home/dh_fkz67h/yasee.tv
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/home/dh_fkz67h/yasee.tv
REMOTE_ADDR
3.236.228.250
SERVER_PORT
80
SERVER_ADDR
208.113.209.86
SERVER_NAME
www.yasee.tv
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
HTTP_CONNECTION
close
HTTP_HOST
www.yasee.tv
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
DH_USER
dh_fkz67h
ds_id_40872190
dsid
40872190
SCRIPT_URI
http://www.yasee.tv/index.php/gbook/index/page/1.html
SCRIPT_URL
/index.php/gbook/index/page/1.html
UNIQUE_ID
YH3WDNBx0W8AABboB8IAAABK
FCGI_ROLE
RESPONDER

ThinkPHP Constants

ROOT_PATH
/home/dh_fkz67h/yasee.tv/
APP_PATH
/home/dh_fkz67h/yasee.tv/application/
MAC_COMM
/home/dh_fkz67h/yasee.tv/application/common/common/
MAC_HOME_COMM
/home/dh_fkz67h/yasee.tv/application/index/common/
MAC_ADMIN_COMM
/home/dh_fkz67h/yasee.tv/application/admin/common/
MAC_START_TIME
1618859532.524
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1618859532.5243
THINK_START_MEM
421968
EXT
.php
DS
/
THINK_PATH
/home/dh_fkz67h/yasee.tv/thinkphp/
LIB_PATH
/home/dh_fkz67h/yasee.tv/thinkphp/library/
CORE_PATH
/home/dh_fkz67h/yasee.tv/thinkphp/library/think/
TRAIT_PATH
/home/dh_fkz67h/yasee.tv/thinkphp/library/traits/
EXTEND_PATH
/home/dh_fkz67h/yasee.tv/extend/
VENDOR_PATH
/home/dh_fkz67h/yasee.tv/vendor/
RUNTIME_PATH
/home/dh_fkz67h/yasee.tv/runtime/
LOG_PATH
/home/dh_fkz67h/yasee.tv/runtime/log/
CACHE_PATH
/home/dh_fkz67h/yasee.tv/runtime/cache/
TEMP_PATH
/home/dh_fkz67h/yasee.tv/runtime/temp/
CONF_PATH
/home/dh_fkz67h/yasee.tv/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/home/dh_fkz67h/yasee.tv/addons/