nahid / talk

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

Cant send a message #35

Closed moritzwelsch closed 7 years ago

moritzwelsch commented 7 years ago

I implemented your example sites and all works fine. I just simply cant send messages. Everytime i hit the "Send" button it gives back these 2 errors: Uncaught TypeError: Cannot read property 'trim' of undefined(…)render @ index.js:30addMessage @ dispatch @ jquery.js:4430r.handle @ jquery.js:4116

POST http://localhost/ajax/message/send 500 (Internal Server Error)send @ jquery.js:8625ajax @ jquery.js:8161(anonymous function) @ talk.js:16dispatch @ jquery.js:4430r.handle @ jquery.js:4116 jquery.js:8625 XHR finished loading: POST "http://localhost/ajax/message/send".send @ jquery.js:8625ajax @ jquery.js:8161(anonymous function) @ talk.js:16dispatch @ jquery.js:4430r.handle @ jquery.js:4116

sehsah commented 7 years ago

same proplem

nahid commented 7 years ago

please remove index.js file from view. It will work fine

sehsah commented 7 years ago

Erro view chat

Trying to get property of non-object (View: \resources\views\ajax\newMessageHtml.blade.php)

moritzwelsch commented 7 years ago

POST http://localhost:8000/ajax/message/send 500 (Internal Server Error) send @ jquery.js:8625 ajax @ jquery.js:8161 (anonymous) @ talk.js:16 dispatch @ jquery.js:4430 r.handle @ jquery.js:4116

nahid commented 7 years ago

This issue should be in https://github.com/nahid/talk-example