[8] ErrorException in Products.php line 33

未定义数组索引: id

  1. list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  2. $list = $this->model
  3. ->where($where)
  4. ->order($sort, $order)
  5. ->limit($offset, $limit)
  6. ->select();
  7. $result = array("rows" => $list);
  8. $id = $_GET["id"];
  9. if (!empty($id)) {
  10. $art = $this->model->get(['id' => $id]);
  11. $this->view->assign("art", $art);
  12. }
  13. $this->view->assign("result", $result["rows"]);
  14. return $this->view->fetch();
  15. }

Call Stack

  1. in Products.php line 33
  2. at Error::appError(8, 'Undefined index: id', '/var/www/html/lander...', 33, ['where' => object(Closure), 'sort' => 'id', 'order' => 'DESC', ...]) in Products.php line 33
  3. at Products->news()
  4. at ReflectionMethod->invokeArgs(object(Products), []) in App.php line 343
  5. at App::invokeMethod([object(Products), 'news'], []) in App.php line 611
  6. at App::module(['index', 'products', 'news'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'products', 'news']], ['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('/var/www/html/lander...') in index.php line 46

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

refresh_times
1
last_time
1711678073

Server/Request Data

REDIRECT_UNIQUE_ID
ZgYieaByLAoQkBGv3G9K3wAAADA
REDIRECT_PATH_INFO
index/products/news.html
REDIRECT_STATUS
200
UNIQUE_ID
ZgYieaByLAoQkBGv3G9K3wAAADA
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
landersoft.com
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.6 (CentOS) PHP/5.4.16
SERVER_NAME
landersoft.com
SERVER_ADDR
192.168.0.114
SERVER_PORT
80
REMOTE_ADDR
44.212.26.248
DOCUMENT_ROOT
/var/www/html/landersoft.com/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/var/www/html/landersoft.com/public
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/var/www/html/landersoft.com/public/index.php
REMOTE_PORT
40240
REDIRECT_URL
/index/products/news.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/index/products/news.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711678073.222
REQUEST_TIME
1711678073
PATH_INFO
index/products/news.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/var/www/html/landersoft.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711678073.2229
THINK_START_MEM
262032
EXT
.php
DS
/
THINK_PATH
/var/www/html/landersoft.com/thinkphp/
LIB_PATH
/var/www/html/landersoft.com/thinkphp/library/
CORE_PATH
/var/www/html/landersoft.com/thinkphp/library/think/
TRAIT_PATH
/var/www/html/landersoft.com/thinkphp/library/traits/
ROOT_PATH
/var/www/html/landersoft.com/
EXTEND_PATH
/var/www/html/landersoft.com/extend/
VENDOR_PATH
/var/www/html/landersoft.com/vendor/
RUNTIME_PATH
/var/www/html/landersoft.com/runtime/
LOG_PATH
/var/www/html/landersoft.com/runtime/log/
CACHE_PATH
/var/www/html/landersoft.com/runtime/cache/
TEMP_PATH
/var/www/html/landersoft.com/runtime/temp/
CONF_PATH
/var/www/html/landersoft.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
RANDOM_COMPAT_READ_BUFFER
8
PHP_INT_MIN
-9223372036854775808
ADDON_PATH
/var/www/html/landersoft.com/addons/
IS_ADDTABS
false
IS_DIALOG
false
IS_AJAX
false