[8] ErrorException in Team.php line 238

Trying to get property of non-object

  1. * @param integer $id [团队人员id]
  2. * @return [type] [团队人员详情]
  3. */
  4. public function teamInfo($id=1)
  5. {
  6. $info = $this
  7. ->where('id',$id)
  8. ->find();
  9. $info->case = Model('Cases')
  10. ->where('sid',$info->id)
  11. ->count();
  12. return $info;
  13. }
  14. /**
  15. * [design 案例设计师信息]
  16. * @param integer $id [description]
  17. * @return [type] [description]
  18. */

Call Stack

  1. in Team.php line 238
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.glx...', 238, ['id' => '76', 'info' => null]) in Team.php line 238
  3. at Team->teamInfo('76') in TeamController.php line 87
  4. at TeamController->detail()
  5. at ReflectionMethod->invokeArgs(object(TeamController), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(TeamController), object(ReflectionMethod), ['c' => 'Team', 'a' => 'detail', 'id' => '76', ...]) in Module.php line 132
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in start.php line 41
  20. 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=/Team/detail/76.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /Team/detail/76.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 18.234.139.149
REMOTE_PORT 42990
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 1711636531.3087
REQUEST_TIME 1711636531
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.glxyzs.com/public/../application/
APP_NAME APP
APP_DEBUG true