[8] ErrorException in GoodsGroup.php line 36

Trying to get property 'title' of non-object

  1. $entityGoodsGroup=EntityFactory::goodsGroup($id);
  2. $this->assign("goodsGroup",$entityGoodsGroup->model->toArray());
  3. $siblingGroups=$entityGoodsGroup->getSiblingsModel(true);
  4. $this->assign("siblingGroups",$siblingGroups);
  5. $parent=$entityGoodsGroup->getParent();
  6. $this->assign("parentGroupTitle",$parent->model->title);
  7. //询价
  8. $priceProjectsiteId=$this->siteId;
  9. $where=[['goods_group_id','=',$id],['onsale','=',1],['site_id','=',$priceProjectsiteId]];
  10. $list=modelService('priceProject')->getRows(['field'=>['id','title','options'],'where'=>$where,'order'=>"sort asc"])->toArray();

Call Stack

  1. in GoodsGroup.php line 36
  2. at Error::appError(8, 'Trying to get proper...', '/home/wwwroot/www.ys...', 36, ['id' => '288', 'price_project_id' => null, 'entityGoodsGroup' => object(GoodsGroup), ...]) in GoodsGroup.php line 36
  3. at GoodsGroup->index('288', null)
  4. at ReflectionMethod->invokeArgs(object(GoodsGroup), ['288', null]) in Container.php line 395
  5. at Container->invokeReflectMethod(object(GoodsGroup), object(ReflectionMethod), ['id' => '288']) in Module.php line 131
  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 136
  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 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think { "site_id": 2 }
Server/Request Data
REDIRECT_HTTPS on
REDIRECT_STATUS 200
HTTPS on
HTTP_HOST www.ysoto.com
HTTP_X_REAL_IP 3.80.211.101
HTTP_X_FORWARDED_PROTO https
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/bin:/usr/sbin:/usr/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
LD_LIBRARY_PATH /usr/local/apache/lib
SERVER_SIGNATURE <address>Apache Server at www.ysoto.com Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.ysoto.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 3.80.211.101
DOCUMENT_ROOT /home/wwwroot/www.ysoto.com/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/wwwroot/www.ysoto.com/public
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /home/wwwroot/www.ysoto.com/public/index.php
REMOTE_PORT 36922
REDIRECT_URL /goods_group/index/id/288.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /goods_group/index/id/288.html
SCRIPT_NAME /index.php
PATH_INFO /goods_group/index/id/288.html
PATH_TRANSLATED redirect:/index.php/goods_group/index/id/288.html/index/id/288.html
PHP_SELF /index.php/goods_group/index/id/288.html
REQUEST_TIME_FLOAT 1711652898.103
REQUEST_TIME 1711652898
Environment Variablesempty
ThinkPHP Constants
APP_PATH /home/wwwroot/www.ysoto.com/public/../application_0318/
CURR_MODULE index
APP_DEBUG true
PROTOCOL http
SITE_DOMAIN www.kky.local
BASE_URL
SITE_URL
TIME_UTC 1711652898
ADMIN_URL /admin.php
STATUS_SUCCESS 1000
STATUS_FAILED 1001
STATUS_INFO 1002
STATUS_REDIRECT 1005
STATUS_HTML 1006
STATUS_INVALID_PARAM 1011
STATUS_INVALID_OPERATION 1012
STATUS_NOT_LOGIN 1099
ENCRYPT_KEY caiyicaineed
MODEL_ID_ARR { "goods_group": 1, "spot_goods": 2, "price_instance": 3 }
SITE_MARK kyy
RUNTIME_PATH /home/wwwroot/www.ysoto.com/runtime/
FILTER_VALIDATE_BOOL 258