dmecke / ChatBundle

MIT License
15 stars 13 forks source link

Error on install version 0.4 #14

Open reginaldocmrg opened 10 years ago

reginaldocmrg commented 10 years ago

Hi,

i recentily installed a version 0.4 of ChatBundle and received a error that filter ago don't exist; I solve this error registering knp-time-bundle, but i received a second error: Variable "channel" does not exist. I got the same error on 0.4.*@dev.

mgersten-caxy commented 10 years ago

I believe this will be fixed with my PR #8

reginaldocmrg commented 10 years ago

Hi,

thanks for responding so quickly, the changes make the page be rendered, but an error was fired in showAction and listAction:

An exception has been thrown during the rendering of a template ("Controller "Cunningsoft\ChatBundle\Controller\ChatController::listAction()" requires that you provide a value for the "$channel" argument (because there is no default value or because there is a non optional argument after this one).")

I fix just passing a defalut argument to variable channel:

/* * @return Response * @Route("/{channel}", name="cunningsoft_chat_show", defaults={"channel" = "default"}) * @Template */ public function showAction($channel = "default")

and

/* * @Route("/list/{channel}", name="cunningsoft_chat_list", defaults={"channel" = "default"}) * @Template / public function listAction($channel = "default")

After this changes the pages are rendereds, but if i post any message nothing is showed

reginaldocmrg commented 10 years ago

I solve part of issue, investigating better i descover that the chat needs jquery to work and i not included jquery in the page. Now when i click and submit button the message is saved in the database but a lot of empty messages is saved too, i cannot see a pattern, the number of empty messages change. Another issue is: the messages sent are not in the list page and in the post/list page exist two lines of text field and button where the second is more iddented than the first, and your text field cannot be selected.

dmecke commented 10 years ago

I was able to reproduce the ago-filter and channel problems and fixed them (updated readme and set default channel). But I don't have the problems with duplicate messages. Is this maybe caused by the pull request? Please change your composer.json to use the latest 0.5.* version and tell me if you still have this problem then.

aamehedi commented 9 years ago

Hi, I am using 0.5.* version with symfony 2.6. what I am currently having now is a messege input box and a submit button. but it is not functional. When I type something and press input button nothing happens. Even the message is not saving in the database. Please also inform me how I can implement this in twig view pages of private area (areas which requires user to be authenticated for accessing).

However, thanks for your effort.

jokari4242 commented 9 years ago

+1

jokari4242 commented 9 years ago

Use url :+1: {% render(url('cunningsoft_chat_show')) %} works perfect for me Thanks for this bundle!