[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(1734202874.4276)
  8. at call_user_func('create_think_token', 1734202874.4276) 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
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
iuu.com
HTTP_IF_MODIFIED_SINCE
Thu, 14 Nov 2024 17:13:58 GMT
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin
PHPRC
/var/www/php72/hichina_ini/byu7680070001
QUERY_STRING
REDIRECT_STATUS
200
REMOTE_ADDR
18.97.14.83
REMOTE_PORT
44608
REQUEST_METHOD
GET
REQUEST_URI
/
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
Z13V@goRQtgAC2J@9cQAAAAT
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1734202874.4276
REQUEST_TIME
1734202874
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
1734202874.428
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1734202874.4285
THINK_START_MEM
383776
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/