[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...', '/usr/home/byu7680070...', 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(1711640986.0817)
  8. at call_user_func('create_think_token', 1711640986.0817) in Request.php line 1568
  9. at Request->token('THINK_TOKEN', 'create_think_token') in aduons.php line 640
  10. at include('/usr/home/byu7680070...') in Config.php line 80
  11. at Config::load('/usr/home/byu7680070...', '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('/usr/home/byu7680070...') 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/byu7680070001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
iuu.com
HTTP_USER_AGENT
claudebot
PATH
/bin
PATH_INFO
/vod/show/area/印度/id/1/lang/国语/
PATH_TRANSLATED
/usr/home/byu7680070001/htdocs/index.php
PHPRC
/var/www/php72/hichina_ini/byu7680070001
QUERY_STRING
REDIRECT_STATUS
200
REMOTE_ADDR
3.90.187.11
REMOTE_PORT
37250
REQUEST_METHOD
GET
REQUEST_URI
/index.php/vod/show/area/%E5%8D%B0%E5%BA%A6/id/1/lang/%E5%9B%BD%E8%AF%AD/
SCRIPT_FILENAME
/usr/home/byu7680070001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.17.66.216
SERVER_ADMIN
webmaster@byu7680070001.my3w.com
SERVER_NAME
iuu.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZgWRmgoRQtgAA9I-geUAAAAI
PHP_SELF
/index.php/vod/show/area/印度/id/1/lang/国语/
REQUEST_TIME_FLOAT
1711640986.0817
REQUEST_TIME
1711640986
Environment Variables
empty

ThinkPHP Constants

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