[2] ErrorException in Ycontact.php line 77

Cannot modify header information - headers already sent by (output started at /usr/home/syu7497080001/htdocs/index.php:1)

  1. $temp=array('gets'=>$gets,'classnav'=>$classnav,'about'=>$about,'banner'=>$banner);
  2. $this->assign($temp);
  3. return view();
  4. }
  5. }
  6. }
  7. public function verifi() {
  8. header("Content-Type:text/html; charset=utf-8");
  9. ob_end_clean();
  10. $Verify = new \think\Verify();
  11. // 设置验证码字符为纯数字
  12. $Verify->codeSet = '0123456789';
  13. $Verify->entry();
  14. }

Call Stack

  1. in Ycontact.php line 77
  2. at Error::appError(2, 'Cannot modify header...', '/usr/home/syu7497080...', 77, [])
  3. at header('Content-Type:text/ht...') in Ycontact.php line 77
  4. at Ycontact->verifi()
  5. at ReflectionMethod->invokeArgs(object(Ycontact), []) in App.php line 343
  6. at App::invokeMethod([object(Ycontact), 'verifi'], []) in App.php line 611
  7. at App::module(['index', 'ycontact', 'verifi'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['index', 'ycontact', 'verifi']], ['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('/usr/home/syu7497080...') in index.php line 12

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

USER_CITY
sh
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/syu7497080001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_COOKIE
USER_CITY=sh
HTTP_HOST
heronopto.com
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH
/bin
PHPRC
/var/www/php55/hichina_ini/syu7497080001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/syu7497080001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
REDIRECT_HTTP_COOKIE
USER_CITY=sh
REDIRECT_HTTP_HOST
heronopto.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/verifi
REDIRECT_PATH_TRANSLATED
redirect:/index.php/index/verifi
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
3.137.169.56
REDIRECT_REMOTE_PORT
5379
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/ycontact/verifi
REDIRECT_SCRIPT_FILENAME
/usr/home/syu7497080001/htdocs/ycontact
REDIRECT_SCRIPT_NAME
/ycontact
REDIRECT_SCRIPT_URI
http://heronopto.com/ycontact/verifi
REDIRECT_SCRIPT_URL
/ycontact/verifi
REDIRECT_SERVER_ADDR
10.29.124.243
REDIRECT_SERVER_ADMIN
webmaster@syu7497080001.my3w.com
REDIRECT_SERVER_NAME
heronopto.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
Z0HpewodfPMAPSuxK44AAAAJ
REDIRECT_URL
/ycontact/verifi
REMOTE_ADDR
3.137.169.56
REMOTE_PORT
5379
REQUEST_METHOD
GET
REQUEST_URI
/ycontact/verifi
SCRIPT_FILENAME
/usr/home/syu7497080001/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://heronopto.com/ycontact/verifi
SCRIPT_URL
/ycontact/verifi
SERVER_ADDR
10.29.124.243
SERVER_ADMIN
webmaster@syu7497080001.my3w.com
SERVER_NAME
heronopto.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
Z0HpewodfPMAPSuxK44AAAAJ
ORIG_PATH_INFO
/index/ycontact/verifi
ORIG_PATH_TRANSLATED
/usr/home/syu7497080001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1732372859.4709
REQUEST_TIME
1732372859
PATH_INFO
/index/ycontact/verifi
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/syu7497080001/htdocs/home/
RUNTIME_PATH
/usr/home/syu7497080001/htdocs/runtime/
THINK_VERSION
5.0.24
THINK_START_TIME
1732372859.4717
THINK_START_MEM
250504
EXT
.php
DS
/
THINK_PATH
/usr/home/syu7497080001/htdocs/thinkphp/
LIB_PATH
/usr/home/syu7497080001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/syu7497080001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/syu7497080001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/syu7497080001/htdocs/
EXTEND_PATH
/usr/home/syu7497080001/htdocs/extend/
VENDOR_PATH
/usr/home/syu7497080001/htdocs/vendor/
LOG_PATH
/usr/home/syu7497080001/htdocs/runtime/log/
CACHE_PATH
/usr/home/syu7497080001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/syu7497080001/htdocs/runtime/temp/
CONF_PATH
/usr/home/syu7497080001/htdocs/home/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false