系统发生错误

#0 [2]ErrorException in Index.php line 109

Cannot modify header information - headers already sent by (output started at /www/wwwroot/drug-tp/vendor/composer/autoload_real.php:76)

  1. </url>
  2. DOC;
  3. return $item;
  4. }, $list);
  5. $xml .= implode("\n", $list);
  6. $xml .= '</urlset>';
  7. header('Content-type: text/xml');
  8. return response($xml, 200, [ "Content-type" => "text/xml" ], 'xml');
  9. }
  10. }

Call Stack

  1. in Index.php line 109
  2. at Error->appError()
  3. at header() in Index.php line 109
  4. at Index->sitemap()
  5. at ReflectionMethod->invokeArgs() in Container.php line 344
  6. at Container->invokeReflectMethod() in Controller.php line 110
  7. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Pipeline.php line 66
  9. at Pipeline->then() in Controller.php line 113
  10. at Controller->exec() in Dispatch.php line 80
  11. at Dispatch->run() in Route.php line 793
  12. at Route->think\{closure}() in Pipeline.php line 59
  13. at Pipeline->think\{closure}() in Pipeline.php line 66
  14. at Pipeline->then() in Route.php line 794
  15. at Route->dispatch() in Http.php line 216
  16. at Http->dispatchToRoute() in Http.php line 206
  17. at Http->think\{closure}() in Pipeline.php line 59
  18. at Pipeline->think\{closure}() in MultiApp.php line 51
  19. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in Pipeline.php line 66
  21. at Pipeline->then() in MultiApp.php line 52
  22. at MultiApp->handle()
  23. at call_user_func() in Middleware.php line 142
  24. at Middleware->think\{closure}() in Pipeline.php line 85
  25. at Pipeline->think\{closure}() in SessionInit.php line 67
  26. at SessionInit->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in TraceDebug.php line 71
  30. at TraceDebug->handle()
  31. at call_user_func() in Middleware.php line 142
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in Http.php line 207
  35. at Http->runWithRequest() in Http.php line 170
  36. at Http->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
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 */*
HTTP_HOST gdmpas.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME gdmpas.com
SERVER_PORT 443
SERVER_ADDR 172.23.72.53
REMOTE_PORT 16192
REMOTE_ADDR 216.73.216.86
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/drug-tp/public
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/drug-tp/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1794318187.0386
REQUEST_TIME 1794318187