[8] ErrorException in House.php line 134

未定义数组索引: id

  1. $this->error($validate -> getError());
  2. }
  3. $house_model = new \app\index\model\House();
  4. $house_where = array(
  5. "id" => $id
  6. );
  7. $house_result = $house_model -> where($house_where) -> find();
  8. $house_result["house_content"] = html_entity_decode($house_result["house_content"]);
  9. $himg_where = array(
  10. "house_id" => $house_result["id"]
  11. );
  12. $himg_result = Db::table("fa_himg") -> where($himg_where) -> select();
  13. // if($himg_result){
  14. $house_result["img_result"] = !empty($himg_result)?$himg_result:[];
  15. // }
  16. $this -> assign("list",$house_result);
  17. $activity_model = new Article();
  18. $activity_where = array(
  19. "sub_type" => 39

Call Stack

  1. in House.php line 134
  2. at Error::appError(8, 'Undefined index: id', '/data/nginx/html/auc...', 134, ['id' => '60', 'validate' => object(Validate), 'house_model' => object(House), ...]) in House.php line 134
  3. at House->housedetail('60')
  4. at ReflectionMethod->invokeArgs(object(House), ['60']) in App.php line 343
  5. at App::invokeMethod([object(House), 'housedetail'], []) in App.php line 611
  6. at App::module(['index', 'house', 'housedetail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'house', 'housedetail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 18
  9. at require('/data/nginx/html/auc...') 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_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
aucanlink.com
PATH_INFO
//house/housedetail/id/60.html
REDIRECT_STATUS
200
SERVER_NAME
www.aucanlink.com
SERVER_PORT
443
SERVER_ADDR
172.17.4.138
REMOTE_PORT
52164
REMOTE_ADDR
18.233.223.189
SERVER_SOFTWARE
nginx/1.15.10
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/data/nginx/html/aucanlink_website/public
DOCUMENT_URI
/index.php
REQUEST_URI
/house/housedetail/id/60.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//house/housedetail/id/60.html
SCRIPT_FILENAME
/data/nginx/html/aucanlink_website/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711644783.1589
REQUEST_TIME
1711644783
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/nginx/html/aucanlink_website/public/../application/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1711644783.1591
THINK_START_MEM
393976
EXT
.php
DS
/
THINK_PATH
/data/nginx/html/aucanlink_website/thinkphp/
LIB_PATH
/data/nginx/html/aucanlink_website/thinkphp/library/
CORE_PATH
/data/nginx/html/aucanlink_website/thinkphp/library/think/
TRAIT_PATH
/data/nginx/html/aucanlink_website/thinkphp/library/traits/
ROOT_PATH
/data/nginx/html/aucanlink_website/
EXTEND_PATH
/data/nginx/html/aucanlink_website/extend/
VENDOR_PATH
/data/nginx/html/aucanlink_website/vendor/
RUNTIME_PATH
/data/nginx/html/aucanlink_website/runtime/
LOG_PATH
/data/nginx/html/aucanlink_website/runtime/log/
CACHE_PATH
/data/nginx/html/aucanlink_website/runtime/cache/
TEMP_PATH
/data/nginx/html/aucanlink_website/runtime/temp/
CONF_PATH
/data/nginx/html/aucanlink_website/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/data/nginx/html/aucanlink_website/addons/