nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.
MIT License
1.61k stars 327 forks source link

termimal show `Trying to get property of non-object` #24

Closed ickma closed 8 years ago

ickma commented 8 years ago

After I installed talk using composer,added talk's service provider and alias into app.php,if I use php artisan route:list to list all my route,the terminal show errors to me :

  [ErrorException]                      
  Trying to get property of non-object
nahid commented 8 years ago

may be its not talk related errors. you may recheck your code.

ickma commented 8 years ago

I have soveld this problem,with changing Talk::setAuthUserId(auth()->user()->id); to if(auth()->user()){Talk::setAuthUserId(auth()->user()->id);}.But now,a new problem comes to me,when I visit http://localhost:8000/laravel-talk/example/message/inbox,I saw 2 errors from console of my chrome:jquery.min.js:2 Uncaught TypeError: Cannot read property 'classList' of null,jquery.min.js:2 Uncaught TypeError: $(...).getNiceScroll(...).doScrollTop is not a function.

ickma commented 8 years ago

I think all troubles I'm facing are because I haven't read your code line by line.I will read your example and document carefully again,thanks!