[2] ErrorException in Index.php line 14

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

  1. use think\Db;
  2. use think\Session;
  3. class Index extends Common{
  4. protected function _initialize(){
  5. $res = wp_is_mobile2();
  6. if(wp_is_mobile2()){
  7. header('location:http://m.dh-beijing.com');exit;
  8. }
  9. $this->assign('the_mod','index');
  10. header("Content-type: text/html; charset=utf-8");
  11. parent::_initialize();
  12. }
  13. //首页
  14. public function index(){
  15. //获取banner
  16. $map = ['pid' => 6,'delete' => 0];
  17. $banner_list = Db::table('gq_ad')->where($map)->field('id,title,src')->select();
  18. //公司简介广告
  19. $map = ['id' => 8,'delete' => 0];

Call Stack

  1. in Index.php line 14
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/dahekon...', 14, ['res' => false])
  3. at header('Content-type: text/h...') in Index.php line 14
  4. at Index->_initialize() in Controller.php line 53
  5. at Controller->__construct(object(Request))
  6. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 251
  7. at App::invokeClass('app\index\controller...') in Loader.php line 410
  8. at Loader::controller('index', 'controller', false, 'Error') in App.php line 377
  9. at App::module(['', null, null], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 140
  10. at App::run() in start.php line 18
  11. at require('/www/wwwroot/dahekon...') in index.php line 30

Exception Datas

Error Context
res false

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/dahekongjian/public/index.php
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/dahekongjian/public
SERVER_PROTOCOL HTTP/2.0
REQUEST_SCHEME https
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 175.176.44.183
REMOTE_PORT 30197
SERVER_ADDR 172.26.46.22
SERVER_PORT 443
SERVER_NAME www.dh-beijing.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_HOST www.dh-beijing.com
HTTP_SEC_CH_UA "Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"
HTTP_SEC_CH_UA_MOBILE ?0
HTTP_SEC_CH_UA_PLATFORM "Windows"
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_SEC_FETCH_SITE none
HTTP_SEC_FETCH_MODE navigate
HTTP_SEC_FETCH_USER ?1
HTTP_SEC_FETCH_DEST document
HTTP_ACCEPT_ENCODING gzip, deflate, br, zstd
HTTP_ACCEPT_LANGUAGE en-PH,en-US;q=0.9,en;q=0.8,zh-CN;q=0.7,zh;q=0.6
HTTP_PRIORITY u=0, i
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1730646370.0993
REQUEST_TIME 1730646370
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/dahekongjian/public/../application/
APP_PLUGIN /www/wwwroot/dahekongjian/public/../extend/plugin/
ADMIN_MOD admin
ADMINCP_MOD admincp
UC_AUTH_KEYO 4#5d`a:+VBb$T/-}L_J[FX)q]iQ.*7ncYP(!9psG
THINK_VERSION 5.0.3
THINK_START_TIME 1730646370.0998
THINK_START_MEM 274560
EXT .php
DS /
THINK_PATH /www/wwwroot/dahekongjian/thinkphp/
LIB_PATH /www/wwwroot/dahekongjian/thinkphp/library/
CORE_PATH /www/wwwroot/dahekongjian/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/dahekongjian/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/dahekongjian/
EXTEND_PATH /www/wwwroot/dahekongjian/extend/
VENDOR_PATH /www/wwwroot/dahekongjian/vendor/
RUNTIME_PATH /www/wwwroot/dahekongjian/runtime/
LOG_PATH /www/wwwroot/dahekongjian/runtime/log/
CACHE_PATH /www/wwwroot/dahekongjian/runtime/cache/
TEMP_PATH /www/wwwroot/dahekongjian/runtime/temp/
CONF_PATH /www/wwwroot/dahekongjian/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
url /
ref
ent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
site http://lao.gge58.com/
road ?road=www.dh-beijing.com/
memes ?road=www.dh-beijing.com/&referer=
regs @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area false
系统发生错误

[0] HttpException in App.php line 349

模块不存在:kkk

  1. $available = true;
  2. }
  3. // 模块初始化
  4. if ($module && $available) {
  5. // 初始化模块
  6. $request->module($module);
  7. $config = self::init($module);
  8. } else {
  9. throw new HttpException(404, 'module not exists:' . $module);
  10. }
  11. } else {
  12. // 单一模块部署
  13. $module = '';
  14. $request->module($module);
  15. }
  16. // 当前模块路径
  17. App::$modulePath = APP_PATH . ($module ? $module . DS : '');

Call Stack

  1. in App.php line 349
  2. at App::module(['kkk', 'yxzx', '621974.shtml'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 140
  3. at App::run() in start.php line 18
  4. at require('/www/wwwroot/dahekon...') in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
fikker-61vm-nk2N MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/dahekongjian/public/mobile_web/index.php
QUERY_STRING s=/kkk/yxzx/621974.shtml
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /kkk/yxzx/621974.shtml
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/dahekongjian/public/mobile_web
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 52.15.170.196
REMOTE_PORT 36528
SERVER_ADDR 172.26.46.22
SERVER_PORT 80
SERVER_NAME m.dh-beijing.com
REDIRECT_STATUS 200
PATH_INFO /kkk/yxzx/621974.shtml
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_COOKIE fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST m.dh-beijing.com
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1732690136.7971
REQUEST_TIME 1732690136
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/dahekongjian/public/mobile_web/../../appweb/
APP_PLUGIN /www/wwwroot/dahekongjian/public/mobile_web/../../extend/plugin/
ADMIN_MOD admin
ADMINCP_MOD admincp
UC_AUTH_KEYO 4#5d`a:+VBb$T/-}L_J[FX)q]iQ.*7ncYP(!9psG
THINK_VERSION 5.0.3
THINK_START_TIME 1732690136.7977
THINK_START_MEM 263032
EXT .php
DS /
THINK_PATH /www/wwwroot/dahekongjian/thinkphp/
LIB_PATH /www/wwwroot/dahekongjian/thinkphp/library/
CORE_PATH /www/wwwroot/dahekongjian/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/dahekongjian/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/dahekongjian/
EXTEND_PATH /www/wwwroot/dahekongjian/extend/
VENDOR_PATH /www/wwwroot/dahekongjian/vendor/
RUNTIME_PATH /www/wwwroot/dahekongjian/runtime/
LOG_PATH /www/wwwroot/dahekongjian/runtime/log/
CACHE_PATH /www/wwwroot/dahekongjian/runtime/cache/
TEMP_PATH /www/wwwroot/dahekongjian/runtime/temp/
CONF_PATH /www/wwwroot/dahekongjian/public/mobile_web/../../appweb/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
url /kkk/yxzx/621974.shtml
ref
ent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
site http://lao.gge58.com/
road ?road=m.dh-beijing.com/kkk/yxzx/621974.shtml
memes ?road=m.dh-beijing.com/kkk/yxzx/621974.shtml&referer=
regs @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area true