[8] ErrorException in Content.php line 87

未定义数组索引: list_row

  1. if (in_array('status', $attr)) {
  2. $map['status'] = array('GT', 0);
  3. }
  4. if (in_array('is_top', $attr)) {
  5. $order = "is_top desc,id desc";
  6. }else{
  7. $order = "id desc";
  8. }
  9. $list = $this->model->where($map)->order($order)->paginate($cate['list_row'] ? $cate['list_row']: 2);
  10. // echo($this->model->getLastSql());
  11. $data = array(
  12. 'list' => $list,
  13. 'cate' => $cate,
  14. 'page' => $list->render(),
  15. 'catechild' =>$catechild,
  16. 'pid' => $pid,
  17. );
  18. if ($cate['template_lists']) {

Call Stack

  1. in Content.php line 87
  2. at Error::appError(8, 'Undefined index: lis...', '/www/wwwroot/j-sder/...', 87, ['id' => 'id', 'name' => '', 'pid' => 0, ...]) in Content.php line 87
  3. at Content->lists('id', '')
  4. at ReflectionMethod->invokeArgs(object(Content), ['id', '']) in App.php line 343
  5. at App::invokeMethod([object(Content), 'lists'], []) in App.php line 611
  6. at App::module(['index', 'content', 'lists'], ['app_host' => '', 'app_debug' => '0', 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'content', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => '0', 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/j-sder/...') in index.php line 24

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.j-sder.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
/goods/list/id/9.html
REDIRECT_STATUS
200
SERVER_NAME
www.j-sder.com
SERVER_PORT
80
SERVER_ADDR
122.14.195.161
REMOTE_PORT
20002
REMOTE_ADDR
175.29.97.164
SERVER_SOFTWARE
nginx/1.8.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/j-sder/web
DOCUMENT_URI
/index.php
REQUEST_URI
/goods/list/id/9.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/goods/list/id/9.html
SCRIPT_FILENAME
/www/wwwroot/j-sder/web/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1600933371.0073
REQUEST_TIME
1600933371
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/j-sder/web/../application/
BASE_PATH
RUNTIME_PATH
/www/wwwroot/j-sder/web/../data/
THINK_VERSION
5.0.23
THINK_START_TIME
1600933371.0081
THINK_START_MEM
411744
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/j-sder/framework/
LIB_PATH
/www/wwwroot/j-sder/framework/library/
CORE_PATH
/www/wwwroot/j-sder/framework/library/think/
TRAIT_PATH
/www/wwwroot/j-sder/framework/library/traits/
ROOT_PATH
/www/wwwroot/j-sder/
EXTEND_PATH
/www/wwwroot/j-sder/extend/
VENDOR_PATH
/www/wwwroot/j-sder/vendor/
LOG_PATH
/www/wwwroot/j-sder/web/../data/log/
CACHE_PATH
/www/wwwroot/j-sder/web/../data/cache/
TEMP_PATH
/www/wwwroot/j-sder/web/../data/temp/
CONF_PATH
/www/wwwroot/j-sder/web/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
SENTCMS_VERSION
3.6.201803
SENT_ADDON_PATH
/www/wwwroot/j-sder/application/../addons/