[2] ErrorException in Session.php line 170

ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

  1. ini_set('session.cookie_domain', $config['domain']);
  2. }
  3. if (isset($config['expire'])) {
  4. ini_set('session.gc_maxlifetime', $config['expire']);
  5. ini_set('session.cookie_lifetime', $config['expire']);
  6. }
  7. if (isset($config['secure'])) {
  8. ini_set('session.cookie_secure', $config['secure']);
  9. }
  10. if (isset($config['httponly'])) {
  11. ini_set('session.cookie_httponly', $config['httponly']);
  12. }
  13. if (isset($config['use_cookies'])) {
  14. ini_set('session.use_cookies', $config['use_cookies'] ? 1 : 0);
  15. }

Call Stack

  1. in Session.php line 170
  2. at Error::appError(2, 'ini_set(): Headers a...', '/data/user/htdocs/th...', 170, ['config' => ['id' => '', 'var_session_id' => '', 'prefix' => 'think_', ...], 'isDoStart' => true])
  3. at ini_set('session.cookie_secur...', '') in Session.php line 170
  4. at Session->init() in Session.php line 216
  5. at Session->boot() in Session.php line 271
  6. at Session->get('user_auth')
  7. at call_user_func_array([object(Session), 'get'], ['user_auth']) in Facade.php line 123
  8. at Facade::__callStatic('get', ['user_auth']) in User.php line 297
  9. at User->isLogin() in User.php line 286
  10. at User->getInfo() in User.php line 59
  11. at User->__get('id') in MemberBase.php line 50
  12. at MemberBase->check_member() in MemberBase.php line 39
  13. at MemberBase->initialize() in Index.php line 29
  14. at Index->initialize() in Controller.php line 68
  15. at Controller->__construct(object(App))
  16. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  17. at Container->invokeClass('app\message\controll...', []) in Container.php line 284
  18. at Container->make('app\message\controll...', []) in App.php line 723
  19. at App->controller('index', 'controller', false, 'Error') in Module.php line 94
  20. at Module->exec() in Dispatch.php line 168
  21. at Dispatch->run() in App.php line 432
  22. at App->think\{closure}(object(Request), object(Closure), null)
  23. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  24. at Middleware->think\{closure}(object(Request))
  25. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  26. at Middleware->dispatch(object(Request)) in App.php line 435
  27. at App->run() in index.php line 30

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER nobody
HOME /
HTTP_HOST laozhou.com
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME wh-nadps9inot8xfgyhsgi.my3w.com
SERVER_PORT 80
SERVER_ADDR 10.17.100.151
REMOTE_PORT 38900
REMOTE_ADDR 18.227.190.93
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/user/htdocs/public
DOCUMENT_URI /index.php
REQUEST_URI /message/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//message/
PATH_INFO
SCRIPT_FILENAME /data/user/htdocs/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1713608109.6802
REQUEST_TIME 1713608109
Environment Variablesempty
ThinkPHP Constants
IF_PUBLIC true
ROOT_PATH /data/user/htdocs/public/../
APP_PATH /data/user/htdocs/public/../application/
DS /
ADDON_PATH /data/user/htdocs/public/../addons/
ROOT_URL /
TEMPLATE_PATH /data/user/htdocs/public/../templates/
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
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256