[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__', 'bb08b2a2b2cb3f05728b...') 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

CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
DOCUMENT_ROOT
/usr/home/wh-ab4rnpqj22ax9u140ai/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, deflate
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CACHE_CONTROL
no-cache
HTTP_HOST
988gy.com
HTTP_REFERER
https://www.baidu.com/search/spider.htm
HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
HTTP_X_APPLE_STORE_FRONT
143444,12
HTTP_X_APPLE_TZ
0
HTTP_X_MICROSOFTAJAX
Delta=true
PATH
/bin
PHPRC
/var/www/php71/hichina_ini/wh-ab4rnpqj22ax9u140ai
QUERY_STRING
REDIRECT_CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
REDIRECT_DOCUMENT_ROOT
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
REDIRECT_HTTP_ACCEPT_ENCODING
gzip, deflate
REDIRECT_HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
REDIRECT_HTTP_CACHE_CONTROL
no-cache
REDIRECT_HTTP_HOST
988gy.com
REDIRECT_HTTP_REFERER
https://www.baidu.com/search/spider.htm
REDIRECT_HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
REDIRECT_HTTP_X_APPLE_STORE_FRONT
143444,12
REDIRECT_HTTP_X_APPLE_TZ
0
REDIRECT_HTTP_X_MICROSOFTAJAX
Delta=true
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
192.161.57.40
REDIRECT_REMOTE_PORT
38306
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
988gy.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
ZkhecwoVB-oAO9syQvwAAAAO
REDIRECT_URL
/contact.html
REDIRECT_gzip_only_text_html
1
REMOTE_ADDR
192.161.57.40
REMOTE_PORT
38306
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
988gy.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZkhecwoVB-oAO9syQvwAAAAO
gzip_only_text_html
1
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1716018803.5653
REQUEST_TIME
1716018803
PATH_INFO
contact.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/wh-ab4rnpqj22ax9u140ai/htdocs/application/
url
/contact.html
ref
https://www.baidu.com/search/spider.htm
ent
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
site
https://www.wqddds.lol/?
road
/?988gy.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
1716018803.5665
THINK_START_MEM
358248
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/