[2] ErrorException in Page.php line 163

Cannot modify header information - headers already sent by (output started at /www/wwwroot/peigenhr.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="'. htmlentities($url).'" class="cur">' . $text . '</a>';
  11. }
  12. /**
  13. * 生成省略号按钮
  14. *
  15. * @return string
  16. */
  17. protected function getDots()

Call Stack

  1. in Page.php line 163
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/peigenh...', 163, ['url' => '/lists/34.html?page=...', 'text' => 1])
  3. at header('Content-type:text/ht...') in Page.php line 163
  4. at Page->getActivePageWrapper('/lists/34.html?page=...', 1) in Page.php line 204
  5. at Page->getPageLinkWrapper('/lists/34.html?page=...', 1) in Page.php line 188
  6. at Page->getUrlLinks(['/lists/34.html?page=...', '/lists/34.html?page=...', '/lists/34.html?page=...', ...]) in Page.php line 86
  7. at Page->getLinks() in Page.php line 123
  8. at Page->render()
  9. at call_user_func_array([object(Page), 'render'], []) in Collection.php line 69
  10. at Collection->__call('render', []) in f8b97f338ae76a888680d3dc04c27f7e.php line 159
  11. at include('/www/wwwroot/peigenh...') in File.php line 74
  12. at File->read('/www/wwwroot/peigenh...', ['data' => ['class' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...], 'top_class' => ['id' => 24, 'title' => '新闻中心', 'pid' => 0, ...], 'data' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...]]]) in Template.php line 193
  13. at Template->fetch('/www/wwwroot/peigenh...', ['data' => ['class' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...], 'top_class' => ['id' => 24, 'title' => '新闻中心', 'pid' => 0, ...], 'data' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...]]], []) in Think.php line 82
  14. at Think->fetch('/www/wwwroot/peigenh...', ['data' => ['class' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...], 'top_class' => ['id' => 24, 'title' => '新闻中心', 'pid' => 0, ...], 'data' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...]]], []) in View.php line 127
  15. at View->fetch('../../../template/ne...', ['data' => ['class' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...], 'top_class' => ['id' => 24, 'title' => '新闻中心', 'pid' => 0, ...], 'data' => ['id' => 34, 'title' => '媒体报道', 'pid' => 24, ...]]], []) in View.php line 36
  16. at View->output('../../../template/ne...') in Response.php line 286
  17. at Response->getContent() in Response.php line 97
  18. at Response->send() in start.php line 19
  19. at require('/www/wwwroot/peigenh...') in index.php line 17

Exception Datas

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