[8] ErrorException in CaseController.php line 208

Trying to get property of non-object

  1. foreach($design as $v){
  2. $designl[] = Model('Team')->where('id',$v)->find();
  3. }
  4. $casesInfo->design = Model('Team')->design($casesInfo->sid);
  5. // 设计师案例
  6. $sid=explode(',',$casesInfo->sid);
  7. //$where[] = ['sid',"=",$casesInfo->sid];
  8. $where = "FIND_IN_SET({$sid[0]},`xyi_cases`.`sid`)";
  9. $casesInfo->design->cases = Model('Cases')->casesList($where,$casesInfo->design->case,$type = 1,$sid[0]);
  10. $system = config('system.');
  11. $keyword = Model('Cases')->where('id',$id)->value('keyword');
  12. $description = Model('Cases')->where('id',$id)->value('description');
  13. $controller = request()->controller();
  14. if (!$keyword) {
  15. $keyword = Model('HColumn')

Call Stack

  1. in CaseController.php line 208
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.glx...', 208, ['id' => '317', 'casesInfo' => object(Cases), 'design' => ['27'], ...]) in CaseController.php line 208
  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' => '317', ...]) 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.glx...') 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.glxyzs.com/public/index.php
QUERY_STRING s=/Case/detail/317.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /Case/detail/317.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/www.glxyzs.com/public
SERVER_PROTOCOL HTTP/2.0
REQUEST_SCHEME https
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.16.0
REMOTE_ADDR 3.92.96.247
REMOTE_PORT 47634
SERVER_ADDR 172.18.135.6
SERVER_PORT 443
SERVER_NAME www.glxyzs.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_HOST www.glxyzs.com
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711641003.9698
REQUEST_TIME 1711641003
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.glxyzs.com/public/../application/
APP_NAME APP
APP_DEBUG true