[8] ErrorException in Cases.php line 156

未定义变量: Globalist

  1. $Domestic1=Db::table("tb_cases_cate")->where(array("pid"=>$pid,"is_del"=>0))->field("class_name_en,id")->select();
  2. $data=[];
  3. foreach ($Domestic1 as $v=>$k){
  4. $sql2['cate_id'] = $k['id'];
  5. $sql2['is_del'] = 0;
  6. $sql2['is_display'] = 1;
  7. $Globalist[$v]=Db::table("tb_cases")->where($sql2)->order('sort desc')->select();
  8. }
  9. $this->assign("Domestic1",$Domestic1);
  10. $this->assign("Globalist",$Globalist);
  11. }else{
  12. $Domestic1='';
  13. $Globalist='';
  14. $this->assign("Domestic1",$Domestic1);
  15. $this->assign("Globalist",$Globalist);
  16. }
  17. //国内列表
  18. $Domesticlist=Db::table("tb_cases")->where(array("cate_id"=>$cate_id,"is_del"=>0,"is_display"=>1))->order("sort desc")->paginate(6);//->select();

Call Stack

  1. in Cases.php line 156
  2. at Error::appError(8, 'Undefined variable: ...', '/home/wwwroot/www.ch...', 156, ['pid' => 85, 'cate_id' => 0, 'Global' => [['class_name_en' => 'Antarctica', 'id' => 55], ['class_name_en' => 'Asia', 'id' => 56], ['class_name_en' => 'Australia', 'id' => 57], ...], ...]) in Cases.php line 156
  3. at Cases->producttwo()
  4. at ReflectionMethod->invokeArgs(object(Cases), []) in App.php line 197
  5. at App::invokeMethod([object(Cases), 'producttwo'], []) in App.php line 419
  6. at App::module(['en', 'cases', 'producttwo'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 296
  7. at App::exec(['type' => 'module', 'module' => ['en', 'cases', 'producttwo']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  8. at App::run() in start.php line 19
  9. at require('/home/wwwroot/www.ch...') in index.php line 16

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/home/wwwroot/www.chinasbm.com/public/index.php
QUERY_STRING
s=//en/cases/producttwo/pid/85
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/en/cases/producttwo/pid/85
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/home/wwwroot/www.chinasbm.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.1
REMOTE_ADDR
154.212.210.122
REMOTE_PORT
20001
SERVER_ADDR
172.19.160.219
SERVER_PORT
80
SERVER_NAME
new.chinasbm.com
REDIRECT_STATUS
200
PHP_ADMIN_VALUE
open_basedir=/home/wwwroot/www.chinasbm.com/:/tmp/:/proc/
PATH_INFO
//en/cases/producttwo/pid/85
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.chinasbm.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
REQUEST_TIME_FLOAT
1593931631.7581
REQUEST_TIME
1593931631
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/www.chinasbm.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1593931631.7585
THINK_START_MEM
260696
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/www.chinasbm.com/thinkphp/
LIB_PATH
/home/wwwroot/www.chinasbm.com/thinkphp/library/
CORE_PATH
/home/wwwroot/www.chinasbm.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/www.chinasbm.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/www.chinasbm.com/
EXTEND_PATH
/home/wwwroot/www.chinasbm.com/extend/
VENDOR_PATH
/home/wwwroot/www.chinasbm.com/vendor/
RUNTIME_PATH
/home/wwwroot/www.chinasbm.com/runtime/
LOG_PATH
/home/wwwroot/www.chinasbm.com/runtime/log/
CACHE_PATH
/home/wwwroot/www.chinasbm.com/runtime/cache/
TEMP_PATH
/home/wwwroot/www.chinasbm.com/runtime/temp/
CONF_PATH
/home/wwwroot/www.chinasbm.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false