[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...', '/data/home/xyu299128...', 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(1624394320.8597)
  8. at call_user_func('create_think_token', 1624394320.8597) in Request.php line 1568
  9. at Request->token('THINK_TOKEN', 'create_think_token') in aduons.php line 640
  10. at include('/data/home/xyu299128...') in Config.php line 80
  11. at Config::load('/data/home/xyu299128...', '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('/data/home/xyu299128...') in index.php line 41

Environment Variables

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

Server/Request Data

DOCUMENT_ROOT
/usr/home/xyu2991280001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.ysahz.com
HTTP_IF_MODIFIED_SINCE
Sun, 29 Nov 2020 08:01:26 GMT
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin:/usr/bin
PATH_INFO
/vod/show/id/gangtaiju.html
PATH_TRANSLATED
/usr/home/xyu2991280001/htdocs/index.php
PHPRC
/var/www/php72/hichina_ini/xyu2991280001
QUERY_STRING
REDIRECT_STATUS
200
REMOTE_ADDR
44.192.253.106
REMOTE_PORT
53206
REQUEST_METHOD
GET
REQUEST_URI
/index.php/vod/show/id/gangtaiju.html
SCRIPT_FILENAME
/usr/home/xyu2991280001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
47.90.49.10
SERVER_ADMIN
webmaster@xyu2991280001.my3w.com
SERVER_NAME
www.ysahz.com
SERVER_PORT
443
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SSL_TLS_SNI
www.ysahz.com
UNIQUE_ID
YNJKUAocsJIAAESTJF0AAAAB
PHP_SELF
/index.php/vod/show/id/gangtaiju.html
REQUEST_TIME_FLOAT
1624394320.8597
REQUEST_TIME
1624394320
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/data/home/xyu2991280001/htdocs/
APP_PATH
/data/home/xyu2991280001/htdocs/application/
MAC_COMM
/data/home/xyu2991280001/htdocs/application/common/common/
MAC_HOME_COMM
/data/home/xyu2991280001/htdocs/application/index/common/
MAC_ADMIN_COMM
/data/home/xyu2991280001/htdocs/application/admin/common/
MAC_START_TIME
1624394320.8602
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1624394320.8607
THINK_START_MEM
385480
EXT
.php
DS
/
THINK_PATH
/data/home/xyu2991280001/htdocs/thinkphp/
LIB_PATH
/data/home/xyu2991280001/htdocs/thinkphp/library/
CORE_PATH
/data/home/xyu2991280001/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/xyu2991280001/htdocs/thinkphp/library/traits/
EXTEND_PATH
/data/home/xyu2991280001/htdocs/extend/
VENDOR_PATH
/data/home/xyu2991280001/htdocs/vendor/
RUNTIME_PATH
/data/home/xyu2991280001/htdocs/runtime/
LOG_PATH
/data/home/xyu2991280001/htdocs/runtime/log/
CACHE_PATH
/data/home/xyu2991280001/htdocs/runtime/cache/
TEMP_PATH
/data/home/xyu2991280001/htdocs/runtime/temp/
CONF_PATH
/data/home/xyu2991280001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
WEBROOT
http://www.maccmsv10.com/
ADDON_PATH
/data/home/xyu2991280001/htdocs/addons/