[2] ErrorException in Session.php line 106

session_start(): Cannot send session cookie - headers already sent by (output started at /usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/thinkphp/base.php:1)

  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/wh-ab4rnpq...', 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 138
  6. at Session::set('__token__', 'f81aeeebf4f63916bc7d...') in Request.php line 1572
  7. at Request->token('__token__', 'md5') in helper.php line 552
  8. at token() in 1c0f6d0e25f77f1b985e2d5f1283357f.php line 161
  9. at include('/usr/home/wh-ab4rnpq...') in File.php line 53
  10. at File->read('/usr/home/wh-ab4rnpq...', ['config' => ['sitename' => '...', 'sitelogo' => '/uploads/20221009/79...', 'title' => '...', ...], 'user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '/public', ...], ...]) in Template.php line 188
  11. at Template->fetch('/usr/home/wh-ab4rnpq...', ['config' => ['sitename' => '...', 'sitelogo' => '/uploads/20221009/79...', 'title' => '...', ...], 'user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '/public', ...], ...], []) in Think.php line 86
  12. at Think->fetch('/usr/home/wh-ab4rnpq...', ['config' => ['sitename' => '...', 'sitelogo' => '/uploads/20221009/79...', 'title' => '...', ...], 'user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '/public', ...], ...], []) in View.php line 163
  13. at View->fetch('/list_contact') in Channel.php line 185
  14. at Channel->index()
  15. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 76
  16. at Route->execute('cms', 'channel', 'index')
  17. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  18. at App::invokeMethod(['\think\addons\Route', 'execute'], ['diyname' => 'contact', 'addon' => 'cms', 'controller' => 'channel', ...]) in App.php line 470
  19. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  20. at App::run() in start.php line 19
  21. at require('/usr/home/wh-ab4rnpq...') in index.php line 23

Environment Variables

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

Server/Request Data

DOCUMENT_ROOT
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
www.szpyjmjx.com
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
PATH
/bin
PHPRC
/var/www/php71/hichina_ini/wh-ab4rnpqj22ax9u140ai
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_HOST
www.szpyjmjx.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
contact.html
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
156.254.216.226
REDIRECT_REMOTE_PORT
56255
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/contact.html
REDIRECT_SCRIPT_FILENAME
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/contact.html
REDIRECT_SCRIPT_NAME
/contact.html
REDIRECT_SERVER_ADDR
10.21.7.250
REDIRECT_SERVER_ADMIN
webmaster@wh-ab4rnpqj22ax9u140ai.my3w.com
REDIRECT_SERVER_NAME
www.szpyjmjx.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
Zj4TjgoVB-oAOW7B7UwAAAAC
REDIRECT_URL
/contact.html
REMOTE_ADDR
156.254.216.226
REMOTE_PORT
56255
REQUEST_METHOD
GET
REQUEST_URI
/contact.html
SCRIPT_FILENAME
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.21.7.250
SERVER_ADMIN
webmaster@wh-ab4rnpqj22ax9u140ai.my3w.com
SERVER_NAME
www.szpyjmjx.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
Zj4TjgoVB-oAOW7B7UwAAAAC
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1715344270.2602
REQUEST_TIME
1715344270
PATH_INFO
contact.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/application/
url
/contact.html
ref
Resource
ent
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
site
http://www.wqddds.lol/?
road
/?www.szpyjmjx.com/contact.html
regs
@Baidu|Sogou|Yisou|Soso|Haosou|Spider|So.com|Sm.cn@i
area
false
THINK_VERSION
5.0.24
THINK_START_TIME
1715344270.2614
THINK_START_MEM
350936
EXT
.php
DS
/
THINK_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/thinkphp/
LIB_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/thinkphp/library/
CORE_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/
EXTEND_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/extend/
VENDOR_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/vendor/
RUNTIME_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/runtime/
LOG_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/runtime/log/
CACHE_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/runtime/cache/
TEMP_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/runtime/temp/
CONF_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
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
U_IDNA_PROHIBITED_ERROR
66560
U_IDNA_ERROR_START
66560
U_IDNA_UNASSIGNED_ERROR
66561
U_IDNA_CHECK_BIDI_ERROR
66562
U_IDNA_STD3_ASCII_RULES_ERROR
66563
U_IDNA_ACE_PREFIX_ERROR
66564
U_IDNA_VERIFICATION_ERROR
66565
U_IDNA_LABEL_TOO_LONG_ERROR
66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR
66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
66568
U_IDNA_ERROR_LIMIT
66569
U_STRINGPREP_PROHIBITED_ERROR
66560
U_STRINGPREP_UNASSIGNED_ERROR
66561
U_STRINGPREP_CHECK_BIDI_ERROR
66562
IDNA_DEFAULT
0
IDNA_ALLOW_UNASSIGNED
1
IDNA_USE_STD3_RULES
2
IDNA_CHECK_BIDI
4
IDNA_CHECK_CONTEXTJ
8
IDNA_NONTRANSITIONAL_TO_ASCII
16
IDNA_NONTRANSITIONAL_TO_UNICODE
32
INTL_IDNA_VARIANT_2003
0
INTL_IDNA_VARIANT_UTS46
1
IDNA_ERROR_EMPTY_LABEL
1
IDNA_ERROR_LABEL_TOO_LONG
2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG
4
IDNA_ERROR_LEADING_HYPHEN
8
IDNA_ERROR_TRAILING_HYPHEN
16
IDNA_ERROR_HYPHEN_3_4
32
IDNA_ERROR_LEADING_COMBINING_MARK
64
IDNA_ERROR_DISALLOWED
128
IDNA_ERROR_PUNYCODE
256
IDNA_ERROR_LABEL_HAS_DOT
512
IDNA_ERROR_INVALID_ACE_LABEL
1024
IDNA_ERROR_BIDI
2048
IDNA_ERROR_CONTEXTJ
4096
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/addons/