System Error

[2] ErrorException in Session.php line 106

session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/html/wmsj/public/index.php:2)

  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...', '/var/www/html/wmsj/t...', 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('admin') in Auth.php line 178
  7. at Auth->isLogin() in Backend.php line 146
  8. at Backend->_initialize() in Index.php line 24
  9. at Index->_initialize() in Controller.php line 59
  10. at Controller->__construct(object(Request))
  11. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  12. at App::invokeClass('app\admin\controller...') in Loader.php line 479
  13. at Loader::controller('index', 'controller', false, 'Error') in App.php line 580
  14. at App::module(['', null, null], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], true) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/var/www/html/wmsj/t...') in index.php line 23

Environment Variables

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

Server/Request Data

HTTP_HOST
172.17.0.1:90
HTTP_CONNECTION
close
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT_ENCODING
br,gzip
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
<address>Apache/2.4.18 (Ubuntu) Server at 172.17.0.1 Port 90</address>
SERVER_SOFTWARE
Apache/2.4.18 (Ubuntu)
SERVER_NAME
172.17.0.1
SERVER_ADDR
172.17.0.1
SERVER_PORT
90
REMOTE_ADDR
172.17.0.3
DOCUMENT_ROOT
/var/www/html/wmsj/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/var/www/html/wmsj/public
SERVER_ADMIN
viperjooy@gmail.com
SCRIPT_FILENAME
/var/www/html/wmsj/public/index.php
REMOTE_PORT
39542
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1719105096.36
REQUEST_TIME
1719105096
Environment Variables
empty

ThinkPHP Constants

url
/
ref
Resource
ent
CCBot/2.0 (https://commoncrawl.org/faq/)
site
https://web.configs.im
road
/?road=172.17.0.1:90/&der=CCBot/2.0 (https://commoncrawl.org/faq/)
regs
@Baidu|Sogou|Yisou|Haosou|Spider|bot|Sm.cn@i
area
false
APP_PATH
/var/www/html/wmsj/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1719105098.4269
THINK_START_MEM
357992
EXT
.php
DS
/
THINK_PATH
/var/www/html/wmsj/thinkphp/
LIB_PATH
/var/www/html/wmsj/thinkphp/library/
CORE_PATH
/var/www/html/wmsj/thinkphp/library/think/
TRAIT_PATH
/var/www/html/wmsj/thinkphp/library/traits/
ROOT_PATH
/var/www/html/wmsj/
EXTEND_PATH
/var/www/html/wmsj/extend/
VENDOR_PATH
/var/www/html/wmsj/vendor/
RUNTIME_PATH
/var/www/html/wmsj/runtime/
LOG_PATH
/var/www/html/wmsj/runtime/log/
CACHE_PATH
/var/www/html/wmsj/runtime/cache/
TEMP_PATH
/var/www/html/wmsj/runtime/temp/
CONF_PATH
/var/www/html/wmsj/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux
HTMLPURIFIER_PREFIX
/var/www/html/wmsj/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/var/www/html/wmsj/addons/
IS_ADDTABS
false
IS_DIALOG
false
IS_AJAX
false