123 开云(中国)Kaiyun·官方网站-登录入口
System Error

[2] ErrorException in Index.php line 14

Cannot modify header information - headers already sent by (output started at /home/wwwroot/kolaquiz.com/runtime/classmap.php:1)

  1. use think\Db;
  2. use think\Exception;
  3. use think\Request;
  4. use think\Validate;
  5. class Index extends Controller
  6. {
  7. public function __construct(Request $request = null)
  8. {
  9. header("Cache-Control: max-age=3600");
  10. parent::__construct($request);
  11. $lang = $this->request->param('lang', '');
  12. $this->lang = $lang;
  13. $langArray = config('lang');
  14. // $this->assign('langConfig', $langArray[$lang]);
  15. $this->assign('lang', $lang);
  16. }
  17. public function index_bak()

Call Stack

  1. in Index.php line 14
  2. at Error::appError(2, 'Cannot modify header...', '/home/wwwroot/kolaqu...', 14, ['request' => object(Request)])
  3. at header('Cache-Control: max-a...') in Index.php line 14
  4. at Index->__construct(object(Request))
  5. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 243
  6. at App::invokeClass('app\front\controller...') in Loader.php line 420
  7. at Loader::controller('index', 'controller', false, 'Error') in App.php line 367
  8. at App::module(['front', 'index', 'category'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 130
  9. at App::run() in start.php line 18
  10. at require('/home/wwwroot/kolaqu...') in index.php line 23

Exception Datas

Error Context
request {}

Environment Variables

GET Data

key
Life-Style
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CF_IPCOUNTRY
HK
HTTP_CDN_LOOP
cloudflare; loops=1
HTTP_CF_CONNECTING_IP
47.238.14.12
HTTP_CACHE_CONTROL
no-cache
HTTP_VIA
1.1 en-squid-prod (squid/6.9)
HTTP_ACCEPT_LANGUAGE
zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,it;q=0.6
HTTP_SEC_FETCH_DEST
document
HTTP_SEC_FETCH_USER
?1
HTTP_SEC_FETCH_MODE
navigate
HTTP_SEC_FETCH_SITE
none
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.9
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_SEC_CH_UA_PLATFORM
"macOS"
HTTP_SEC_CH_UA_MOBILE
?0
HTTP_SEC_CH_UA
"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"
HTTP_PRAGMA
no-cache
HTTP_CF_VISITOR
{"scheme":"http"}
HTTP_X_FORWARDED_PROTO
http
HTTP_CF_RAY
8ebc59f6bd7b04bb-EWR
HTTP_X_FORWARDED_FOR
10.52.32.153,47.238.14.12
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
kolaquiz.com
REDIRECT_STATUS
200
SERVER_NAME
kolaquiz.com
SERVER_PORT
80
SERVER_ADDR
159.65.223.62
REMOTE_PORT
43930
REMOTE_ADDR
162.158.158.99
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/kolaquiz.com/www
DOCUMENT_URI
/index.php
REQUEST_URI
/category/Life-Style
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=index/category&key=Life-Style
SCRIPT_FILENAME
/home/wwwroot/kolaquiz.com/www/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1733153355.4803
REQUEST_TIME
1733153355
PATH_INFO
index/category
Environment Variables
empty

ThinkPHP Constants

BIND_MODULE
front
TMPL_PATH
/home/wwwroot/kolaquiz.com/www/../template/
APP_PATH
/home/wwwroot/kolaquiz.com/www/../application/
THINK_VERSION
5.0.7
THINK_START_TIME
1733153355.4808
THINK_START_MEM
404544
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/kolaquiz.com/thinkphp/
LIB_PATH
/home/wwwroot/kolaquiz.com/thinkphp/library/
CORE_PATH
/home/wwwroot/kolaquiz.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/kolaquiz.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/kolaquiz.com/
EXTEND_PATH
/home/wwwroot/kolaquiz.com/extend/
VENDOR_PATH
/home/wwwroot/kolaquiz.com/vendor/
RUNTIME_PATH
/home/wwwroot/kolaquiz.com/runtime/
LOG_PATH
/home/wwwroot/kolaquiz.com/runtime/log/
CACHE_PATH
/home/wwwroot/kolaquiz.com/runtime/cache/
TEMP_PATH
/home/wwwroot/kolaquiz.com/runtime/temp/
CONF_PATH
/home/wwwroot/kolaquiz.com/www/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
UPLOAD_PATH
/home/wwwroot/kolaquiz.com/public/uploads
STATIC_URL
https://cdn.kolaquiz.com
TYPE_TRIVIA
1
TYPE_FUN_QUIZ
2
TYPE_LOGO_QUIZ
3