[8] ErrorException in Document.php line 177

未定义变量: list_nav

  1. } else {
  2. $list_nav = ColumnModel::where('id', $child['id'])->column('id,pid,name,url,target,type');
  3. foreach ($list_nav as &$column) {
  4. if ($column['type'] == 0) {
  5. $column['url'] = url('index/column/index', ['id' => $column['id']]);
  6. }
  7. }
  8. }
  9. }
  10. return $list_nav;
  11. }
  12. /**
  13. * 获取主栏目
  14. * @param int $id 栏目id
  15. * @author 蔡伟明 <314013107@qq.com>
  16. */
  17. private function getMainNav()
  18. {
  19. $clumn_list=Db::view('cms_document','id,cid')

Call Stack

  1. in Document.php line 177
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/cltzjt....', 177, ['id' => '257', 'clumn_cid' => null, 'list_column' => []]) in Document.php line 177
  3. at Document->getListColumn('257') in Document.php line 58
  4. at Document->index('257', '')
  5. at ReflectionMethod->invokeArgs(object(Document), ['257', '']) in App.php line 343
  6. at App::invokeMethod([object(Document), 'index'], []) in App.php line 611
  7. at App::module(['index', 'document', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => '0', ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'document', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/cltzjt....') in index.php line 34

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.cltzjt.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
/document/257.html
REDIRECT_STATUS
200
SERVER_NAME
cltzjt.com
SERVER_PORT
80
SERVER_ADDR
172.27.16.2
REMOTE_PORT
20000
REMOTE_ADDR
175.29.233.55
SERVER_SOFTWARE
nginx/1.8.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/cltzjt.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/document/257.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/document/257.html
SCRIPT_FILENAME
/www/wwwroot/cltzjt.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1601246587.0809
REQUEST_TIME
1601246587
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/cltzjt.com/public/../application/
ADMIN_FILE
admin.php
THINK_VERSION
5.0.24
THINK_START_TIME
1601246587.0813
THINK_START_MEM
405440
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/cltzjt.com/thinkphp/
LIB_PATH
/www/wwwroot/cltzjt.com/thinkphp/library/
CORE_PATH
/www/wwwroot/cltzjt.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/cltzjt.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/cltzjt.com/
EXTEND_PATH
/www/wwwroot/cltzjt.com/extend/
VENDOR_PATH
/www/wwwroot/cltzjt.com/vendor/
RUNTIME_PATH
/www/wwwroot/cltzjt.com/runtime/
LOG_PATH
/www/wwwroot/cltzjt.com/runtime/log/
CACHE_PATH
/www/wwwroot/cltzjt.com/runtime/cache/
TEMP_PATH
/www/wwwroot/cltzjt.com/runtime/temp/
CONF_PATH
/www/wwwroot/cltzjt.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/cltzjt.com/vendor/ezyang/htmlpurifier/library
PUBLIC_PATH
/