[8] ErrorException in Index.php line 59

Trying to get property 'id' of non-object

  1. $type=input('type/d',0);
  2. $sort=input('sort/d',0);
  3. $page=input('page/d',1);
  4. $keys=input('key/s','','trim');
  5. $map=[];
  6. $order='ctime desc';
  7. $path='<i class="icon icon-right"></i> <a href="/goods/" title="名表中心">名表中心</a>';
  8. if(!empty($dir) && $dir!=='all'){
  9. $cate=Category::where('dir',$dir)->field('id,name')->find();
  10. $ids=$this->model->getChilds($cate->id);
  11. $map[]=['sortid','in',$ids];
  12. $path.='<i class="icon icon-right"></i> <a href="/goods/'.$dir.'.html" title="精仿'.$cate->name.'手表">'.$cate->name.'</a>';
  13. }
  14. if(!empty($type)){
  15. $map[]=['types','=',$type];
  16. switch ($type){
  17. case 1:
  18. $name='精选男表';
  19. break;

Call Stack

  1. in Index.php line 59
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/cvshop/...', 59, ['dir' => 'luminor', 'type' => 0, 'sort' => 0, ...]) in Index.php line 59
  3. at Index->channel()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['name' => 'luminor', 'convert' => false]) 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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.mbiaohui.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.mbiaohui.com
SERVER_PORT 443
SERVER_ADDR 172.16.47.10
REMOTE_PORT 51452
REMOTE_ADDR 44.210.107.64
SERVER_SOFTWARE nginx/1.17.9
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/cvshop/public
DOCUMENT_URI /index.php
REQUEST_URI /goods/luminor1950.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/goods/luminor1950.html
SCRIPT_FILENAME /www/wwwroot/cvshop/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711616424.7833
REQUEST_TIME 1711616424
Environment Variablesempty
ThinkPHP Constants
ADDON_PATH /www/wwwroot/cvshop/addons/
MODULE_NAME index
ACTION_NAME channel