[8] ErrorException in Search.php line 58

未定义变量: current

  1. foreach($lidArray as $key => $lidData){
  2. $lmArray[$key]['name'] = $lm -> where('id',$lidData) -> column('lname');
  3. $lmArray[$key]['link'] = $lm -> where('id',$lidData) -> column('link');
  4. }
  5. $this -> assign('lmData',$lmArray);
  6. }
  7. }
  8. $dichanArray = $pcat -> where('ppid',92) -> select();
  9. $this -> assign('dichanData',$dichanArray); //地产类型
  10. $this -> assign('current',$current); //当前位置
  11. $this -> assign('cname',$cname[0]); //当前类名称
  12. $this -> assign('pname',$pname[0]); //父类名称
  13. $this -> assign('countNum',$countNum); //产品统计数量
  14. $this -> assign('pcatName',$pcatName); //分类名称
  15. $this -> assign('lmAliasName',$lmAliasName); //栏目别名
  16. $this -> assign('keyword',$keyword_input); //搜索关键字
  17. return $this -> fetch();
  18. }

Call Stack

  1. in Search.php line 58
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/jinyu/a...', 58, ['pcatId' => null, 'keyword_input' => null, 'pcat' => object(Pcats), ...]) in Search.php line 58
  3. at Search->index()
  4. at ReflectionMethod->invokeArgs(object(Search), []) in App.php line 343
  5. at App::invokeMethod([object(Search), 'index'], []) in App.php line 611
  6. at App::module(['index', 'search', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'search', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/jinyu/t...') in index.php line 23

Environment Variables

GET Data

keywords
浩源牧场
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
nxjinyujituan.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index/search/index.html
REDIRECT_STATUS
200
SERVER_NAME
39.104.23.60
SERVER_PORT
80
SERVER_ADDR
172.24.84.215
REMOTE_PORT
54584
REMOTE_ADDR
44.221.43.88
SERVER_SOFTWARE
nginx/1.14.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/jinyu/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/search/index.html?keywords=%E6%B5%A9%E6%BA%90%E7%89%A7%E5%9C%BA
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/search/index.html&keywords=%E6%B5%A9%E6%BA%90%E7%89%A7%E5%9C%BA
SCRIPT_FILENAME
/www/wwwroot/jinyu/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711620986.3937
REQUEST_TIME
1711620986
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/jinyu/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711620986.3941
THINK_START_MEM
367880
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/jinyu/thinkphp/
LIB_PATH
/www/wwwroot/jinyu/thinkphp/library/
CORE_PATH
/www/wwwroot/jinyu/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/jinyu/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/jinyu/
EXTEND_PATH
/www/wwwroot/jinyu/extend/
VENDOR_PATH
/www/wwwroot/jinyu/vendor/
RUNTIME_PATH
/www/wwwroot/jinyu/runtime/
LOG_PATH
/www/wwwroot/jinyu/runtime/log/
CACHE_PATH
/www/wwwroot/jinyu/runtime/cache/
TEMP_PATH
/www/wwwroot/jinyu/runtime/temp/
CONF_PATH
/www/wwwroot/jinyu/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux
ADDON_PATH
/www/wwwroot/jinyu/addons/