5 自己搭的系统,点击热门作者的时候报这个错,哪位大神帮我看看

ErrorException in 9fb552b7a2a5c1b27679567fb3a20f45 line 40:get_class() expects parameter 1 to be object, null given

  1. in 9fb552b7a2a5c1b27679567fb3a20f45 line 40
  2. at HandleExceptions->handleError('2', 'get_class() expects parameter 1 to be object, null given', 'C:\xampp\htdocs\tipask-3.2.1\storage\framework\views\9fb552b7a2a5c1b27679567fb3a20f45', '40', array('__path' => 'C:\xampp\htdocs\tipask-3.2.1\storage\framework\views/9fb552b7a2a5c1b27679567fb3a20f45', '__data' => array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'users' => object(Collection)), 'obLevel' => '1', '__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'users' => object(Collection), 'user' => object(UserData), 'index' => '1')) in 9fb552b7a2a5c1b27679567fb3a20f45 line 40
  3. at include('C:\xampp\htdocs\tipask-3.2.1\storage\framework\views\9fb552b7a2a5c1b27679567fb3a20f45') in PhpEngine.php line 42
  4. at PhpEngine->evaluatePath('C:\xampp\htdocs\tipask-3.2.1\storage\framework\views/9fb552b7a2a5c1b27679567fb3a20f45', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'users' => object(Collection))) in CompilerEngine.php line 58
  5. at CompilerEngine->get('C:\xampp\htdocs\tipask-3.2.1/resources/views/themes/default/top/articles.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'users' => object(Collection))) in View.php line 147
  6. at View->getContents() in View.php line 118
  7. at View->renderContents() in View.php line 83
  8. at View->render() in Response.php line 51
  9. at Response->setContent(object(View)) in Response.php line 202
  10. at Response->__construct(object(View)) in Router.php line 1229
  11. at Router->prepareResponse(object(Request), object(View)) in ControllerDispatcher.php line 112
  12. at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  14. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  16. at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
  17. at ControllerDispatcher->callWithinStack(object(TopController), object(Route), object(Request), 'articles') in ControllerDispatcher.php line 68
  18. at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Account\TopController', 'articles') in Route.php line 203
  19. at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
  20. at Route->run(object(Request)) in Router.php line 708
  21. at Router->Illuminate\Routing\{closure}(object(Request))
  22. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  23. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  24. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  25. at Pipeline->then(object(Closure)) in Router.php line 710
  26. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 674
  27. at Router->dispatchToRoute(object(Request)) in Router.php line 635
  28. at Router->dispatch(object(Request)) in Kernel.php line 236
  29. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
  30. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  31. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
  32. at VerifyCsrfToken->handle(object(Request), object(Closure))
  33. at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  34. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  35. at ShareErrorsFromSession->handle(object(Request), object(Closure))
  36. at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  37. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
  38. at StartSession->handle(object(Request), object(Closure))
  39. at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  40. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  41. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
  42. at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  43. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
  44. at EncryptCookies->handle(object(Request), object(Closure))
  45. at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  46. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  47. at CheckForMaintenanceMode->handle(object(Request), object(Closure))
  48. at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  49. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  50. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  51. at Pipeline->then(object(Closure)) in Kernel.php line 122
  52. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
  53. at Kernel->handle(object(Request)) in index.php line 53
请先 登录 后评论

最佳答案 2018-03-24 10:00

attachments-2018-03-ZRCam2p35ab485014374f.jpg


请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,846 浏览
  • oiwuliang 提出于 2018-03-16 19:48

相似问题