系统发生错误

[2] ErrorException in Sitemap.php line 105

Cannot modify header information - headers already sent by (output started at /www/wwwroot/whst007.com/wwwroot/thinkphp/helper.php(415) : eval()'d code:1)

  1. /* * *********************************************************************** */
  2. // 函数名: Show
  3. // 功能: 将产生的sitemap内容直接打印输出
  4. /* * *********************************************************************** */
  5. public function Show() {
  6. if (empty($this->content))
  7. $this->Build();
  8. header("Content-Type: text/xml; charset=utf-8");
  9. echo($this->content);
  10. }
  11. /* * *********************************************************************** */
  12. // 函数名: SaveToFile
  13. // 功能: 将产生的sitemap 内容保存到文件
  14. // 参数: $fname 要保存的文件名
  15. /* * *********************************************************************** */

Call Stack

  1. in Sitemap.php line 105
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/whst007...', 105, [])
  3. at header('Content-Type: text/x...') in Sitemap.php line 105
  4. at Sitemap->Show() in Seo.php line 48
  5. at Seo->Sitemap()
  6. at ReflectionMethod->invokeArgs(object(Seo), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Seo), object(ReflectionMethod), []) in Module.php line 129
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 134
  13. at Module->exec() in Dispatch.php line 167
  14. at Dispatch->run() in App.php line 431
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 434
  20. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=259200
HTTP_X_FORWARDED_FOR 10.1.229.151
HTTP_VIA 1.1 squid-proxy-5b5d847c96-db8vz (squid/6.10)
HTTP_HOST www.whst007.com
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME whst007.com
SERVER_PORT 80
SERVER_ADDR 172.28.122.210
REMOTE_PORT 27569
REMOTE_ADDR 216.73.216.133
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/whst007.com/wwwroot
DOCUMENT_URI /index.php
REQUEST_URI /sitemap.xml
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/sitemap.xml
SCRIPT_FILENAME /www/wwwroot/whst007.com/wwwroot/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1768322443.4586
REQUEST_TIME 1768322443
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /www/wwwroot/whst007.com/wwwroot/
APP_PATH /www/wwwroot/whst007.com/wwwroot/application/
ROOT_URL /
DEFAULT_MODULE home
BIND_MODULE false