[2] ErrorException in Page.php line 165

Cannot modify header information - headers already sent by (output started at /www/wwwroot/sdbaige.com/runtime/classmap.php:182)

  1. /**
  2. * 生成一个激活的按钮
  3. *
  4. * @param string $text
  5. * @return string
  6. */
  7. protected function getActivePageWrapper($url,$text)
  8. {
  9. header("Content-type:text/html;charset=utf-8");
  10. return '<a href="javascript:;" class="cur">' . $text . '</a>';
  11. }
  12. /**
  13. * 生成省略号按钮
  14. *
  15. * @return string
  16. */
  17. protected function getDots()

Call Stack

  1. in Page.php line 165
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/sdbaige...', 165, ['url' => '/lists/355.html?page...', 'text' => 1])
  3. at header('Content-type:text/ht...') in Page.php line 165
  4. at Page->getActivePageWrapper('/lists/355.html?page...', 1) in Page.php line 206
  5. at Page->getPageLinkWrapper('/lists/355.html?page...', 1) in Page.php line 190
  6. at Page->getUrlLinks(['/lists/355.html?page...', '/lists/355.html?page...', '/lists/355.html?page...', ...]) in Page.php line 88
  7. at Page->getLinks() in Page.php line 125
  8. at Page->render()
  9. at call_user_func_array([object(Page), 'render'], []) in Collection.php line 69
  10. at Collection->__call('render', []) in 30e0059724e60a94757b98f1bd8f3915.php line 84
  11. at include('/www/wwwroot/sdbaige...') in File.php line 74
  12. at File->read('/www/wwwroot/sdbaige...', ['data' => ['class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'top_class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'data' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...]]]) in Template.php line 193
  13. at Template->fetch('/www/wwwroot/sdbaige...', ['data' => ['class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'top_class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'data' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...]]], []) in Think.php line 82
  14. at Think->fetch('/www/wwwroot/sdbaige...', ['data' => ['class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'top_class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'data' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...]]], []) in View.php line 127
  15. at View->fetch('../../../template/xc', ['data' => ['class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'top_class' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...], 'data' => ['id' => 355, 'title' => '集团新闻', 'pid' => 0, ...]]], []) in View.php line 36
  16. at View->output('../../../template/xc') in Response.php line 286
  17. at Response->getContent() in Response.php line 97
  18. at Response->send() in start.php line 18
  19. at require('/www/wwwroot/sdbaige...') in index.php line 17

Exception Datas

Error Context
url /lists/355.html?page=1
text 1

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.2.22.175
HTTP_VIA 1.1 squid-proxy-5b96dc6d46-8v56b (squid/6.13)
HTTP_HOST sdbaige.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 /lists/355.html
REDIRECT_STATUS 200
SERVER_NAME sdbaige.com
SERVER_PORT 80
SERVER_ADDR 172.30.132.133
REMOTE_PORT 25441
REMOTE_ADDR 216.73.217.88
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/sdbaige.com
DOCUMENT_URI /index.php
REQUEST_URI /lists/355.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/lists/355.html
SCRIPT_FILENAME /www/wwwroot/sdbaige.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1784712190.8601
REQUEST_TIME 1784712190
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/sdbaige.com/app/
THINK_VERSION 5.0.0
THINK_START_TIME 1784712190.8605
THINK_START_MEM 376808
EXT .php
DS /
THINK_PATH /www/wwwroot/sdbaige.com/thinkphp/
LIB_PATH /www/wwwroot/sdbaige.com/thinkphp/library/
CORE_PATH /www/wwwroot/sdbaige.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/sdbaige.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/sdbaige.com/
EXTEND_PATH /www/wwwroot/sdbaige.com/extend/
VENDOR_PATH /www/wwwroot/sdbaige.com/vendor/
RUNTIME_PATH /www/wwwroot/sdbaige.com/runtime/
LOG_PATH /www/wwwroot/sdbaige.com/runtime/log/
CACHE_PATH /www/wwwroot/sdbaige.com/runtime/cache/
TEMP_PATH /www/wwwroot/sdbaige.com/runtime/temp/
CONF_PATH /www/wwwroot/sdbaige.com/app/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
url /lists/355.html
ref Resource
ent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
url8 http://sdbaige.com
road /lists/355.html
regs @baiduspider|yisou|360|Sogou@i
area false