[2] ErrorException in config.php line 4

session_start(): Cannot start session when headers already sent

  1. <?php
  2. session_start();
  3. $lang_template = empty($_SESSION['lang_template']) ? 'pc_cn':$_SESSION['lang_template'];
  4. // dump($lang_template);
  5. if(isMobiles()){
  6. if($lang_template == 'pc_cn'){
  7. return array (
  8. 'cmf_default_theme' => 'pc_cn',
  9. );
  10. }elseif($lang_template == 'pc_en'){
  11. return array (
  12. 'cmf_default_theme' => 'pc_en',
  13. );
  14. }else{
  15. return array (
  16. 'cmf_default_theme' => 'pc_jp',
  17. );

Call Stack

  1. in config.php line 4
  2. at Error::appError(2, 'session_start(): Can...', '/usr/home/syu7557630...', 4, ['file' => '/usr/home/syu7557630...', 'name' => '', 'range' => '_sys_', ...])
  3. at session_start() in config.php line 4
  4. at include('/usr/home/syu7557630...') in config.php line 12
  5. at include('/usr/home/syu7557630...') in Config.php line 80
  6. at Config::load('/usr/home/syu7557630...') in App.php line 249
  7. at App::init() in App.php line 182
  8. at App::initCommon() in App.php line 82
  9. at App::run() in index.php line 128

Environment Variables

GET Data

s
article/511/tel:0756-3396216
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/syu7557630001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_CONNECTION
keep-alive
HTTP_HOST
www.goktepetextile.com
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
PATH
/bin
PHPRC
/var/www/php72/hichina_ini/syu7557630001
QUERY_STRING
s=article/511/tel:0756-3396216
REDIRECT_DOCUMENT_ROOT
/usr/home/syu7557630001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
gzip, deflate
REDIRECT_HTTP_CONNECTION
keep-alive
REDIRECT_HTTP_HOST
www.goktepetextile.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/511/tel:0756-3396216
REDIRECT_PATH_TRANSLATED
redirect:/index.php/tel:0756-3396216
REDIRECT_QUERY_STRING
s=article/511/tel:0756-3396216
REDIRECT_REMOTE_ADDR
154.82.48.194
REDIRECT_REMOTE_PORT
47268
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/article/511/tel:0756-3396216
REDIRECT_SCRIPT_FILENAME
/usr/home/syu7557630001/htdocs/article
REDIRECT_SCRIPT_NAME
/article
REDIRECT_SERVER_ADDR
10.29.120.18
REDIRECT_SERVER_ADMIN
webmaster@syu7557630001.my3w.com
REDIRECT_SERVER_NAME
www.goktepetextile.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
ZmXsyAodeBIAJSB8MFgAAAAz
REDIRECT_URL
/article/511/tel:0756-3396216
REMOTE_ADDR
154.82.48.194
REMOTE_PORT
47268
REQUEST_METHOD
GET
REQUEST_URI
/article/511/tel:0756-3396216
SCRIPT_FILENAME
/usr/home/syu7557630001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.29.120.18
SERVER_ADMIN
webmaster@syu7557630001.my3w.com
SERVER_NAME
www.goktepetextile.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZmXsyAodeBIAJSB8MFgAAAAz
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1717955784.654
REQUEST_TIME
1717955784
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
CMF_ROOT
/usr/home/syu7557630001/htdocs/
APP_PATH
/usr/home/syu7557630001/htdocs/app/
UPLOAD_PATH
/usr/home/syu7557630001/htdocs/upload/
CMF_PATH
/usr/home/syu7557630001/htdocs/simplewind/cmf/
PLUGINS_PATH
/usr/home/syu7557630001/htdocs/plugins/
EXTEND_PATH
/usr/home/syu7557630001/htdocs/simplewind/extend/
VENDOR_PATH
/usr/home/syu7557630001/htdocs/simplewind/vendor/
RUNTIME_PATH
/usr/home/syu7557630001/htdocs/data/runtime/
THINKCMF_VERSION
5.0.170927
SO
is_top DESC,list_order DESC,published_time DESC,post_id DESC
GSO
is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC
TMPLSO
order:is_top DESC,list_order DESC,published_time DESC,post_id DESC;
TMPLGSO
order:is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC;
WEB_ROOT
/usr/home/syu7557630001/htdocs/
THINK_VERSION
5.0.24
THINK_START_TIME
1717955784.6553
THINK_START_MEM
389912
EXT
.php
DS
/
THINK_PATH
/usr/home/syu7557630001/htdocs/simplewind/thinkphp/
LIB_PATH
/usr/home/syu7557630001/htdocs/simplewind/thinkphp/library/
CORE_PATH
/usr/home/syu7557630001/htdocs/simplewind/thinkphp/library/think/
TRAIT_PATH
/usr/home/syu7557630001/htdocs/simplewind/thinkphp/library/traits/
ROOT_PATH
/usr/home/syu7557630001/htdocs/
LOG_PATH
/usr/home/syu7557630001/htdocs/data/runtime/log/
CACHE_PATH
/usr/home/syu7557630001/htdocs/data/runtime/cache/
TEMP_PATH
/usr/home/syu7557630001/htdocs/data/runtime/temp/
CONF_PATH
/usr/home/syu7557630001/htdocs/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/usr/home/syu7557630001/htdocs/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1