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

Internal error #1

Closed margartiaville closed 13 years ago

margartiaville commented 13 years ago

When I entered something, i got this

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance.

margartiaville commented 13 years ago

I am sure I did chmod on JChat folder

joshsten commented 13 years ago

I need to update this again with a newer version I have on a computer that I am not on at the moment. This version should work ok though. What do the logs say? (redmine root/logs/production.log or mongrel.portyouuse.log)

Does the internal error show in the chat frame or does it have the 500 error for the entire page?

margartiaville commented 13 years ago

Than you for your reply. Here is the log: ActionController::RoutingError (No route matches "/chat/receive_chat" with {:method=>:get}): passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in process_request' passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:inmain_loop' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in start_request_handler' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:inhandle_spawn_application' passenger (2.2.11) lib/phusion_passenger/utils.rb:185:in safe_fork' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:inhandle_spawn_application' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in __send__' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:inmain_loop' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in start_synchronously' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:instart' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in start' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:inspawn_rails_application' passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in lookup_or_add' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:inspawn_rails_application' passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in synchronize' passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:inspawn_application' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in handle_spawn_application' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:insend' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in main_loop' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously'

Rendering /home/data/rails/redmine/public/404.html (404 Not Found)

The internal error shows in the chat frame only.

Thank you. again, this is a really nice plugin

joshsten commented 13 years ago

https://myprojectmanager.mysite.com/chat/receive_chat https://myprojectmanager.mysite.com/chat

Replace the first part with your Redmine URL. Do either of these work? There might be a difference with passenger. I will try to setup Redmine with passenger and test it over the next few days.

It's possible passenger may not like the extra first slash which I am using to refer to the root of the site. If the above URLs function (Do not generate 404 or 500 errors) then I think I can post a fix.

margartiaville commented 13 years ago

second one works.

first doesnt, it shows: Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance.

margartiaville commented 13 years ago

should i update passenger?

joshsten commented 13 years ago

No I think it's a problem with my code. I'll try to do a clean install into a fresh VM using passenger tonight or tomorrow evening. I released it to the Redmine plug-in list a little prematurely.

joshsten commented 13 years ago

I did some important fixes. Would you be able to test the newest version when you get around to it? I would recommend running a new git clone and db migrate as I renamed the project to be consistent with other plugins. You may need to also remove/rename the chat table in the redmine database (due to the name change).

margartiaville commented 13 years ago

yes, I would like to. what is the name of the table? can I do it now?

margartiaville commented 13 years ago

is the table named "chat"?

margartiaville commented 13 years ago

sorry, "chats"?

margartiaville commented 13 years ago

holy, this is big. it works perfectly!

thanks man

margartiaville commented 13 years ago

seems IE 6 doesnt show properly, teammate complained. but i dont care.

margartiaville commented 13 years ago

u may add a tab showing all chat history. hoho

margartiaville commented 13 years ago

could you make a little improvement, scrolling the bar to the bottom automatically when got others' messages

joshsten commented 13 years ago

If it's too big you can edit the assets/css/main.css and tinker with the sizes.

I'll try to get I.E. compatibility, a tab option, and the scroll bar thing worked out this weekend.

The scroll bar thing is my next todo.

And I'm glad it works :) Let me know if there is anything that becomes annoying as you use it or something that would be nice to have aside from the above.

margartiaville commented 13 years ago

thank you so much for the reply. is it possible to add a setting that it can show full name of user in the chat frame or not, or even show "me" for user himself?

sorry, i said big, means i feel this is an amazing thing to me.

thank you