joshsten / redmine_jchat

Chat Plugin for Redmine 1.0.x,1.1.x,1.2.x - Driven on MySQL no need to install any extra gems. Use at own risk. I will do my best to add features over time, but I am a busy student so I apologize for slow release/response times.
39 stars 22 forks source link

The requested URL /chat/receive_chat was not found on this server. #2

Closed joaomoraes closed 13 years ago

joaomoraes commented 13 years ago

I'm getting this error message when i try to acess the chat tab:

The requested URL /chat/receive_chat was not found on this server.

Do you know how can i solve this?

My redmine version is 1.0.3 Bitnami Install Windows 7 Mysql 5.0.83

joshsten commented 13 years ago

When you say chat tab - Do you mean when you click on the dates of the messages? Does sending and receiving messages work?

joaomoraes commented 13 years ago

No, the box where all the chat messages should appear is showing the above message. I think the link at the right bottom is working as intended, showing the chat box and the input box. Unfortunately my poor RoR and Redmine knowledge does not help me to find what I'm doing wrong.

joshsten commented 13 years ago

I'll look at this this evening. It's possible something is different in 1.0.3 (Last tested in 1.0.1) I'll check compatibilities and make fixes if required tonight.

joaomoraes commented 13 years ago

Ty, I really liked the idea of having a chat embedded in Redmine =)

joshsten commented 13 years ago

I have figured out your issue. I did a bitnami install, and figured out that my controller actions are being applied relative to the site root rather than the redmine root. I am working on a patch to do things relative to the redmine base location now.

joshsten commented 13 years ago

It may take me a bit to get the fix implemented. To do your own fix edit assets/javascript/main.js and everywhere /chat (you can do search for /chat) appears prepend the base URL with your base location. On bitnami the needed prepended URL is /redmine.

You also need to do the same procedure to apps/views/chat/_receive_chat.erb script.

I'm looking into ways to fix this automatically.

joaomoraes commented 13 years ago

Thanks for your reply Josh.

I can only try this @ work on tuesday but I will inform here if everything goes well =)

joaomoraes commented 13 years ago

I accidentally closed the issue, sorry.

ron-fu commented 13 years ago

So after I got the chat installed on my bitnami VM , I run into the error above. I changed the entry /chat into /redmine in the following 3 files 1 line in: /opt/bitnami/apps/redmine/vendor/plugins/redmine_jchat/app/views/chat/_receive_chat.erb 2 lines in: /opt/bitnami/apps/redmine/public/plugin_assets/redmine_jchat/javascripts/main.js 2 Lines in: /opt/bitnami/apps/redmine/vendor/plugins/redmine_jchat/assets/javascripts/main.js I get : Page not found The page you were trying to access doesn't exist or has been removed.

The access_log is showing: POST /redmine/receive_chat HTTP/1.1" 404 484 so the path isn't right. I'll try /redmine/chat next week.

regards Ron

ron-fu commented 13 years ago

just changed the path to /redmine/chat and that seems to work. But no message can be send entries in access_log are: "POST /redmine/chat/receive_chat HTTP/1.1" 200 1 "POST /chat/send_chat HTTP/1.1" 404 212

but where to change the path for send??

regards Ron

ron-fu commented 13 years ago

so got it! I missed to change the /chat/send_chat path in main.js to redmine/chat/send_chat

Thanks for your plugin! As seen in the feature request a group/project chatroom would be perfect!

joshsten commented 13 years ago

I won't be able to implement that feature for a bit, I need to do a little development and testing on a new javascript implementation to fix some timing dependent issues in the current implementation in regard to message flashing and scrolling the chat frame at the correct times. I hope to get this functionally working within a week. I need to also address the issue you ran into here. I have a month long break coming up in a few weeks, at which point I will look at adding segregation options for chats like chats for specific projects. I appreciate the thanks, and I hope it works well for you.

coldstream commented 13 years ago

Hi joshsten, I really like your plugin and I have it implemented on Redmine 1.1.2 using Bitnami (MacOS version). Any plans to make the feature enhancements in the near future? I know you are a busy guy but wanted to find out if this was something I could commit to for my project teams.

Todd

joshsten commented 13 years ago

coldstream,

I do not realistically see any time for me to do any major work on it opening up until summer when I have my weekends and evenings more open.

Very Best Regards. Josh .

On Fri, Apr 1, 2011 at 11:26 AM, coldstream < reply@reply.github.com>wrote:

Hi joshsten, I really like your plugin and I have it implemented on Redmine 1.1.2 using Bitnami (MacOS version). Any plans to make the feature enhancements in the near future? I know you are a busy guy but wanted to find out if this was something I could commit to for my project teams.

Todd

Reply to this email directly or view it on GitHub: https://github.com/joshsten/redmine_jchat/issues/2#comment_946122

joshsten commented 13 years ago

This issue should now be resolved with the recent line of commits.

Testing showed issue as resolved.