[8] ErrorException in Index.php line 310

Trying to get property of non-object

  1. $datainfo = YhData::with(['getRecommend'=>function($query){
  2. $query->with('getImgInfo')->where('yh598_recommend_ischeck',1)->limit(6);
  3. },'getTag'])->where('yh_data_id',$data_id)->find();
  4. $datamemid = $datainfo['yh_data_mem_id'];
  5. $isHavePage = YhPage::where('yh_page_dataid',$datainfo['yh_data_id'])->where('yh_page_webtypeid',$con_id)->where('yh_page_ischeck',1)->count();
  6. if($isHavePage > 0)
  7. {
  8. $this->assign('isHavePage',$isHavePage);
  9. }
  10. if(empty($datainfo->get_recommend->toArray())){
  11. $recommendlist = Yh598Recommend::with('getImgInfo')->where('yh598_recommend_ischeck',1)->order('yh598_recommend_created_at','desc')->limit(6)->select();
  12. $this->assign('recommendlist',$recommendlist);
  13. }
  14. Cache::remember('get_page_list_join_data_'.$data_id.'_'.$con_id.'page_'.$page,function()use($data_id,$con_id,$page){
  15. return $list = YhPage::where('yh_page_dataid',$data_id)->join('yh_data data','yh_page_dataid = yh_data_id')->where('yh_page_webtypeid',$con_id)->where('yh_page_ischeck',1)->order('yh_page_updated_at','desc')->paginate(7,false, ['page' => $page]);
  16. },3600);
  17. $list = Cache::get('get_page_list_join_data_'.$data_id.'_'.$con_id.'page_'.$page);

Call Stack

  1. in Index.php line 310
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.yh5...', 310, ['request' => object(Request), 'param' => ['data' => '29730', 'con' => '6', 'tag' => '0'], 'data_id' => '29730', ...]) in Index.php line 310
  3. at Index->lists(object(Request))
  4. at ReflectionMethod->invokeArgs(object(Index), [object(Request)]) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['data' => '29730', 'con' => '6', 'tag' => '0', ...]) 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 index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.yh596.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.yh596.com
SERVER_PORT 80
SERVER_ADDR 172.26.193.191
REMOTE_PORT 50890
REMOTE_ADDR 44.204.65.189
SERVER_SOFTWARE nginx/1.19.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.yh596.com/public
DOCUMENT_URI /index.php
REQUEST_URI /index/group/data/29730/con/6/tag/0
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/group/data/29730/con/6/tag/0
SCRIPT_FILENAME /www/wwwroot/www.yh596.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711634949.0747
REQUEST_TIME 1711634949
Environment Variablesempty
ThinkPHP Constantsempty