System Error

[2] ErrorException in Index.php line 18

Cannot modify header information - headers already sent by (output started at /www/wwwroot/xinjie.yunyust.cn/public/index.php:2)

  1. protected $noNeedLogin = '*';
  2. protected $noNeedRight = '*';
  3. protected $layout = '';
  4. /*
  5. * 网站首页
  6. */
  7. public function index() {
  8. $url="http://".$_SERVER['HTTP_HOST'].'/myadmin.php/index/login';
  9. //echo $url;exit;
  10. header('Location:'.$url);
  11. exit;
  12. //return $this->view->fetch();
  13. }
  14. /*
  15. * 登陆
  16. */
  17. public function login() {
  18. return $this->view->fetch();
  19. }

Call Stack

  1. in Index.php line 18
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/xinjie....', 18, ['url' => 'http://xinjie.yunyus...'])
  3. at header('Location:http://xinj...') in Index.php line 18
  4. at Index->index()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 347
  6. at App::invokeMethod([object(Index), 'index'], []) in App.php line 617
  7. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 462
  8. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/xinjie....') in index.php line 27

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/xinjie.yunyust.cn/public/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/xinjie.yunyust.cn/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.20.2
REMOTE_ADDR
44.200.27.215
REMOTE_PORT
33162
SERVER_ADDR
10.0.24.7
SERVER_PORT
80
SERVER_NAME
xinjie.yunyust.cn
REDIRECT_STATUS
200
PATH_INFO
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
HTTP_HOST
xinjie.yunyust.cn
HTTP_CONNECTION
Keep-Alive
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713037948.5314
REQUEST_TIME
1713037948
Environment Variables
empty

ThinkPHP Constants

url
/
ref
Resource
ent
CCBot/2.0 (https://commoncrawl.org/faq/)
site
https://web.configs.im
road
/?road=xinjie.yunyust.cn/&der=CCBot/2.0 (https://commoncrawl.org/faq/)
regs
@Baidu|Sogou|Yisou|Haosou|Spider|bot|Sm.cn@i
area
false
APP_PATH
/www/wwwroot/xinjie.yunyust.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1713037949.7709
THINK_START_MEM
277944
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/xinjie.yunyust.cn/thinkphp/
LIB_PATH
/www/wwwroot/xinjie.yunyust.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/xinjie.yunyust.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/xinjie.yunyust.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/xinjie.yunyust.cn/
EXTEND_PATH
/www/wwwroot/xinjie.yunyust.cn/extend/
VENDOR_PATH
/www/wwwroot/xinjie.yunyust.cn/vendor/
RUNTIME_PATH
/www/wwwroot/xinjie.yunyust.cn/runtime/
LOG_PATH
/www/wwwroot/xinjie.yunyust.cn/runtime/log/
CACHE_PATH
/www/wwwroot/xinjie.yunyust.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/xinjie.yunyust.cn/runtime/temp/
CONF_PATH
/www/wwwroot/xinjie.yunyust.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
RANDOM_COMPAT_READ_BUFFER
8
PHP_INT_MIN
-9223372036854775808
ADDON_PATH
/www/wwwroot/xinjie.yunyust.cn/addons/