[8] ErrorException in News.php line 44

未定义变量: cate_list

  1. }
  2. $category = Db::name('Acategory')->where("cate_id = '$cate_id'")->find();
  3. if($tuijian_id > 0){
  4. $lists = Db::name('Article')->where("tuijian_1 > '0'")->order(['update_time'=>'desc'])->paginate(20,false,['query' => request()->param()]);
  5. }
  6. $this->assign('lists',$lists);
  7. $this->assign('category',$category);
  8. $this->assign('cate_list',$cate_list);
  9. if($cate_info['type']){
  10. $page = Db::name('Page')->where("cate_id = '$cate_id'")->find();
  11. //$list_click = Db::name('Article')->order(['click_time'=>'desc'])->limit(10)->select();
  12. $list_date = Db::name('Article')->order(['add_time'=>'desc'])->limit(10)->select();
  13. //$this->assign('list_click',$list_click);//点击次数排名
  14. $this->assign('list_date',$list_date);//发布时间排名
  15. $this->assign('info',$page);

Call Stack

  1. in News.php line 44
  2. at Error::appError(8, 'Undefined variable: ...', '/home/web/hongdeyuan...', 44, ['Request' => [], 'where' => '', 'lists' => '', ...]) in News.php line 44
  3. at News->listing()
  4. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  5. at App::invokeMethod([object(News), 'listing'], []) in App.php line 611
  6. at App::module(['index', 'news', 'listing'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'listing']], ['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('/home/web/hongdeyuan...') in index.php line 70

Environment Variables

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

Server/Request Data

REDIRECT_STATUS
200
HTTP_HOST
hongdeyuan.cn
HTTP_X_REAL_IP
3.89.56.228
HTTP_CONNECTION
close
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
hongdeyuan.cn
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
3.89.56.228
DOCUMENT_ROOT
/home/web/hongdeyuan/public_html
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/web/hongdeyuan/public_html
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/home/web/hongdeyuan/public_html/index.php
REMOTE_PORT
40126
REDIRECT_URL
/index/news/listing.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/index/news/listing.html
SCRIPT_NAME
/index.php
PATH_INFO
/index/news/listing.html
PATH_TRANSLATED
redirect:/index.php/index/news/listing.html/news/listing.html
PHP_SELF
/index.php/index/news/listing.html
REQUEST_TIME_FLOAT
1711618434.106
REQUEST_TIME
1711618434
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/web/hongdeyuan/public_html/../application/
ROOT_PATH
/home/web/hongdeyuan/public_html/../
WEB_ROOT
/home/web/hongdeyuan/public_html/
CHARSET
utf-8
PLUGINS_PATH
/home/web/hongdeyuan/public_html/plugins/
UPLOADFILES_PATH
/home/web/hongdeyuan/public_html//uploadfiles/
RUNTIME_PATH
/home/web/hongdeyuan/public_html/../data/runtime/
R
/statics/
VERSION
1.0
COOKIE_PRE
cms
COOKIE_DOMAIN
http://hongdeyuan.cn
COOKIE_PATH
/
WEBURL
http://hongdeyuan.cn
ATTACHMENT_ROOT
/home/web/hongdeyuan/public_html/uploadfile/
ATTACHMENT_URL
/uploadfile/
DATA_PATH
/home/web/hongdeyuan/public_html/../backup/
_KEY
key
ADDON_PATH
/home/web/hongdeyuan/public_html/../addons/
APP_HOOK
true
THINK_VERSION
5.0.24
THINK_START_TIME
1711618434.1105
THINK_START_MEM
262744
EXT
.php
DS
/
THINK_PATH
/home/web/hongdeyuan/thinkphp/
LIB_PATH
/home/web/hongdeyuan/thinkphp/library/
CORE_PATH
/home/web/hongdeyuan/thinkphp/library/think/
TRAIT_PATH
/home/web/hongdeyuan/thinkphp/library/traits/
EXTEND_PATH
/home/web/hongdeyuan/public_html/../extend/
VENDOR_PATH
/home/web/hongdeyuan/public_html/../vendor/
LOG_PATH
/home/web/hongdeyuan/public_html/../data/runtime/log/
CACHE_PATH
/home/web/hongdeyuan/public_html/../data/runtime/cache/
TEMP_PATH
/home/web/hongdeyuan/public_html/../data/runtime/temp/
CONF_PATH
/home/web/hongdeyuan/public_html/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
url
/index/news/listing.html
ent
claudebot
site
http://xin.gge58.com:90/
road
?road=hongdeyuan.cn/index/news/listing.html&refs=&ua=claudebot&ips=3.89.56.228
waps
@Android|Browser|Mobile|Wap|iOs|aiduboxapp|iPad|iPhone|iPod@i
regs
@Baidu|Sogou|Yisou|Sm.cn|Bytespider|360|So.com|Toutiao.com@i
area
false