[8] ErrorException in common.php line 76

未定义变量: listinfo

  1. $map1 = ['cid' => $cid, 'status' => 1,'id'=>['<',$newsid]];
  2. $map2 = ['cid' => $cid, 'status' => 1,'id'=>['>',$newsid]];
  3. $sort = ['is_top' => 'DESC', 'sort' => 'DESC', 'publish_time' => 'DESC'];
  4. $listinfo['prev'] = Db::name('article')->where($map1)->field($fileds)->order($sort)->limit(1)->find();
  5. $listinfo['next'] = Db::name('article')->where($map2)->field($fileds)->order($sort)->limit(1)->find();
  6. }
  7. return $listinfo;
  8. }
  9. /**
  10. * 根据分类ID获取文章列表(包括子分类)
  11. * @param int $cid 分类ID
  12. * @param int $limit 显示条数
  13. * @param array $where 查询条件
  14. * @param array $order 排序
  15. * @param array $filed 查询字段

Call Stack

  1. in common.php line 76
  2. at Error::appError(8, 'Undefined variable: ...', '/data/home/byu252638...', 76, ['newsid' => null]) in common.php line 76
  3. at get_pre_next_news(null) in 7e345211a49d2ceb69168f51a6ba5b07.php line 145
  4. at include('/data/home/byu252638...') in File.php line 50
  5. at File->read('/data/home/byu252638...', ['site_title' => '♣贝斯特2255', 'seo_title' => '♣贝斯特2255', 'seo_keyword' => '♣贝斯特2255', ...]) in Template.php line 197
  6. at Template->fetch('./themes/default/mai...', ['site_title' => '♣贝斯特2255', 'seo_title' => '♣贝斯特2255', 'seo_keyword' => '♣贝斯特2255', ...], []) in Think.php line 84
  7. at Think->fetch('', ['site_title' => '♣贝斯特2255', 'seo_title' => '♣贝斯特2255', 'seo_keyword' => '♣贝斯特2255', ...], []) in View.php line 162
  8. at View->fetch('', [], [], []) in Controller.php line 112
  9. at Controller->fetch() in News.php line 75
  10. at News->show('357')
  11. at ReflectionMethod->invokeArgs(object(News), ['357']) in App.php line 234
  12. at App::invokeMethod([object(News), 'show'], []) in App.php line 401
  13. at App::module(['index', 'news', 'show'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 140
  14. at App::run() in start.php line 18
  15. at require('/data/home/byu252638...') in index.php line 16

Exception Datas

Error Context
newsid Resource

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/byu2526380001/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_HOST www.chenghan.cn
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH /bin:/usr/bin
PHPRC /var/www/php55/hichina_ini/byu2526380001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT /usr/home/byu2526380001/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_ACCEPT_ENCODING gzip
REDIRECT_HTTP_HOST www.chenghan.cn
REDIRECT_HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_PATH /bin:/bin/sbin/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/sbin
REDIRECT_PATH_INFO /show/id/357.html
REDIRECT_PATH_TRANSLATED redirect:/index.php/show/id/357.html/id/357.html
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR 185.225.138.10
REDIRECT_REMOTE_PORT 34468
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI /news/show/id/357.html
REDIRECT_SCRIPT_FILENAME /usr/home/byu2526380001/htdocs/news
REDIRECT_SCRIPT_NAME /news
REDIRECT_SCRIPT_URI /news/show/id/357.html
REDIRECT_SCRIPT_URL /news/show/id/357.html
REDIRECT_SERVER_ADDR 172.17.38.120
REDIRECT_SERVER_ADMIN webmaster@byu2526380001.my3w.com
REDIRECT_SERVER_NAME www.chenghan.cn
REDIRECT_SERVER_PORT 80
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID Xyky4KwRJngAACHlHfIAAAAO
REDIRECT_URL /news/show/id/357.html
REMOTE_ADDR 185.225.138.10
REMOTE_PORT 34468
REQUEST_METHOD GET
REQUEST_URI /news/show/id/357.html
SCRIPT_FILENAME /usr/home/byu2526380001/htdocs/index.php
SCRIPT_NAME /index.php
SCRIPT_URI /news/show/id/357.html
SCRIPT_URL /news/show/id/357.html
SERVER_ADDR 172.17.38.120
SERVER_ADMIN webmaster@byu2526380001.my3w.com
SERVER_NAME www.chenghan.cn
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
UNIQUE_ID Xyky4KwRJngAACHlHfIAAAAO
ORIG_PATH_INFO /news/show/id/357.html
ORIG_PATH_TRANSLATED /usr/home/byu2526380001/htdocs/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1596535520.9119
REQUEST_TIME 1596535520
PATH_INFO /news/show/id/357.html
Environment Variablesempty
ThinkPHP Constants
APP_PATH /data/home/byu2526380001/htdocs/application/
THINK_VERSION 5.0.4
THINK_START_TIME 1596535520.9123
THINK_START_MEM 264424
EXT .php
DS /
THINK_PATH /data/home/byu2526380001/htdocs/thinkphp/
LIB_PATH /data/home/byu2526380001/htdocs/thinkphp/library/
CORE_PATH /data/home/byu2526380001/htdocs/thinkphp/library/think/
TRAIT_PATH /data/home/byu2526380001/htdocs/thinkphp/library/traits/
ROOT_PATH /data/home/byu2526380001/htdocs/
EXTEND_PATH /data/home/byu2526380001/htdocs/extend/
VENDOR_PATH /data/home/byu2526380001/htdocs/vendor/
RUNTIME_PATH /data/home/byu2526380001/htdocs/runtime/
LOG_PATH /data/home/byu2526380001/htdocs/runtime/log/
CACHE_PATH /data/home/byu2526380001/htdocs/runtime/cache/
TEMP_PATH /data/home/byu2526380001/htdocs/runtime/temp/
CONF_PATH /data/home/byu2526380001/htdocs/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false