[2] ErrorException in Session.php line 105

session_start(): Cannot send session cookie - headers already sent by (output started at /data/home/qxu2060310244/htdocs/index.php:15)

  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 105
  2. at Error::appError(2, 'session_start(): Can...', '/data/home/qxu206031...', 105, ['config' => ['id' => '', 'var_session_id' => '', 'prefix' => 'think', ...], 'isDoStart' => true])
  3. at session_start() in Session.php line 105
  4. at Session::init() in Session.php line 119
  5. at Session::boot() in Session.php line 163
  6. at Session::get('uid') in Base.php line 43
  7. at Base->_checkLoginStatus() in Base.php line 30
  8. at Base->_initialize() in PortalBase.php line 15
  9. at PortalBase->_initialize() in Controller.php line 56
  10. at Controller->__construct(object(Request))
  11. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 215
  12. at App::invokeClass('app\portal\controlle...') in Loader.php line 420
  13. at Loader::controller('index', 'controller', false, 'Error') in App.php line 386
  14. at App::module(['', null, null], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...], null) in App.php line 295
  15. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...]) in App.php line 123
  16. at App::run() in start.php line 18
  17. at require('/data/home/qxu206031...') in index.php line 66

Exception Datas

Error Context
config { "id": "", "var_session_id": "", "prefix": "think", "type": "", "auto_start": true }
isDoStart true

Environment Variables

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

Server/Request Data

DOCUMENT_ROOT
/usr/home/qxu2060310244/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.xmtsylm.com
HTTP_IF_MODIFIED_SINCE
Sun, 26 May 2019 08:33:15 GMT
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin:/usr/bin
PHPRC
/var/www/php55/hichina_ini/qxu2060310244
QUERY_STRING
REDIRECT_STATUS
200
REMOTE_ADDR
3.81.73.233
REMOTE_PORT
41100
REQUEST_METHOD
GET
REQUEST_URI
/
SCRIPT_FILENAME
/usr/home/qxu2060310244/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
139.129.185.197
SERVER_ADMIN
webmaster@qxu2060310244.my3w.com
SERVER_NAME
www.xmtsylm.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
XTZkbQofSNgAAAzo9IoAAAAq
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1563845741.8223
REQUEST_TIME
1563845741
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
IS_PUBLIC
false
ROOT_PATH
/data/home/qxu2060310244/htdocs/
PUBLIC_NAME
public
APP_PATH
/data/home/qxu2060310244/htdocs/application/
WEJOY_PATH
/data/home/qxu2060310244/htdocs/wejoy/
EXTEND_PATH
/data/home/qxu2060310244/htdocs/wejoy/extend/
VENDOR_PATH
/data/home/qxu2060310244/htdocs/wejoy/vendor/
THINK_VERSION
5.0.9
THINK_START_TIME
1563845741.8231
THINK_START_MEM
258664
EXT
.php
DS
/
THINK_PATH
/data/home/qxu2060310244/htdocs/wejoy/thinkphp/
LIB_PATH
/data/home/qxu2060310244/htdocs/wejoy/thinkphp/library/
CORE_PATH
/data/home/qxu2060310244/htdocs/wejoy/thinkphp/library/think/
TRAIT_PATH
/data/home/qxu2060310244/htdocs/wejoy/thinkphp/library/traits/
RUNTIME_PATH
/data/home/qxu2060310244/htdocs/runtime/
LOG_PATH
/data/home/qxu2060310244/htdocs/runtime/log/
CACHE_PATH
/data/home/qxu2060310244/htdocs/runtime/cache/
TEMP_PATH
/data/home/qxu2060310244/htdocs/runtime/temp/
CONF_PATH
/data/home/qxu2060310244/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false