[8] ErrorException in WorkController.php line 74

Trying to get property of non-object

  1. $description = Model('HColumn')
  2. ->where('controller',$controller)
  3. ->value('description');
  4. if (!$description) {
  5. $description = $system['description'];
  6. }
  7. }
  8. // 施工人员
  9. $info->worked = Model('Team')->where('id',$info->wid)->value('name');
  10. // 监工
  11. $info->overseer = Model('Team')->where('id',$info->jid)->value('name');
  12. // 案例图片
  13. $info->thumbpic = Model('WorkImg')->where('wid',$info->id)->select();
  14. // print_r($info);
  15. $this->assign('info',$info);
  16. $this->assign('keyword',$keyword);
  17. $this->assign('description',$description);

Call Stack

  1. in WorkController.php line 74
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.glx...', 74, ['id' => '5', 'info' => null, 'system' => ['open' => '1', 'name' => '...', 'file' => '', ...], ...]) in WorkController.php line 74
  3. at WorkController->details()
  4. at ReflectionMethod->invokeArgs(object(WorkController), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(WorkController), object(ReflectionMethod), ['c' => 'Work', 'a' => 'details', 'id' => '5', ...]) 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
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /index.php/Work/details/5.html
DOCUMENT_URI /index.php/Work/details/5.html
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.235.251.99
REMOTE_PORT 34472
SERVER_ADDR 172.18.135.6
SERVER_PORT 443
SERVER_NAME www.glxyzs.com
REDIRECT_STATUS 200
PATH_INFO /Work/details/5.html
HTTP_HOST www.glxyzs.com
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PHP_SELF /index.php/Work/details/5.html
REQUEST_TIME_FLOAT 1711628547.2776
REQUEST_TIME 1711628547
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.glxyzs.com/public/../application/
APP_NAME APP
APP_DEBUG true