[8] ErrorException in CaseController.php line 199

Trying to get property of non-object

  1. // 户型
  2. $casesInfo->apa = Model('Category')->where('id',$casesInfo->apa)->value('category');
  3. // 楼盘
  4. $casesInfo->lname = Model('Category')->where('id',$casesInfo->lid)->value('category');
  5. // 设计师
  6. $casesInfo->design = Model('Team')->design($casesInfo->sid);
  7. // 设计师案例
  8. $where[] = ['sid',"=",$casesInfo->sid];
  9. $casesInfo->design->cases = Model('Cases')->casesList($where,$casesInfo->design->case);
  10. // print_r($casesInfo->design);
  11. // print_r($casesInfo);
  12. // 上一套
  13. $where_p[] = ['id' , '>' ,$casesInfo->id];
  14. $where_n[] = ['id' , '<' ,$casesInfo->id];
  15. $page['prve'] = Model('Cases')->page($where_p,'id asc');
  16. $page['next'] = Model('Cases')->page($where_n,'id Desc');
  17. $apa = Model('Category')->cateList(2);
  18. // print_r($page);

Call Stack

  1. in CaseController.php line 199
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.bhx...', 199, ['id' => '348', 'casesInfo' => object(Cases), 'where' => [['sid', '=', 15]]]) in CaseController.php line 199
  3. at CaseController->detail()
  4. at ReflectionMethod->invokeArgs(object(CaseController), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(CaseController), object(ReflectionMethod), ['c' => 'Case', 'a' => 'detail', 'id' => '348', ...]) in Module.php line 132
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in start.php line 41
  19. at require('/www/wwwroot/www.bhx...') in index.php line 43

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/www.bhxyzx.com/public/index.php
QUERY_STRING s=/Case/detail/348.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /Case/detail/348.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/www.bhxyzx.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.16.0
REMOTE_ADDR 34.237.140.238
REMOTE_PORT 58238
SERVER_ADDR 172.18.135.6
SERVER_PORT 80
SERVER_NAME www.bhxyzx.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST www.bhxyzx.com
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711711693.9272
REQUEST_TIME 1711711693
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.bhxyzx.com/public/../application/
APP_NAME APP
APP_DEBUG true