Questions_Plugin
Added by Terence Mill over 13 years ago
I update to trunk today and get following error after i create question.
ActionView::TemplateError (Missing host to link to! Please provide :host parameter or set default_url_options[:host]) on line #18 of app/views/issues/_history.rhtml: 15: <% end %> 16: <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %> 17: </div> 18: <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %> 19: <% end %> lib/redmine/hook.rb:63:in `send' lib/redmine/hook.rb:63:in `call_hook' lib/redmine/hook.rb:63:in `each' lib/redmine/hook.rb:63:in `call_hook' lib/redmine/hook.rb:60:in `tap' lib/redmine/hook.rb:60:in `call_hook' lib/redmine/hook.rb:144:in `call_hook' app/views/issues/_history.rhtml:18:in `_run_rhtml_app47views47issues47_history46rhtml_locals_history_issue_journals_object' app/views/issues/_history.rhtml:2:in `each' app/views/issues/_history.rhtml:2:in `_run_rhtml_app47views47issues47_history46rhtml_locals_history_issue_journals_object' app/views/issues/show.rhtml:95:in `_run_rhtml_app47views47issues47show46rhtml' app/controllers/issues_controller.rb:117:in `show' app/controllers/issues_controller.rb:116:in `show' passenger (2.2.14) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request' passenger (2.2.14) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application' passenger (2.2.14) lib/phusion_passenger/utils.rb:252:in `safe_fork' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:163:in `start' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:222:in `start' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application' passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application' passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
Someone and idea?
Replies (12)
RE: Questions_Plugin - Added by Dmitry Salashnik over 13 years ago
I think You use redmine_local_avatars
plugin :)
Change line in function avatar_with_local
in /redmine_local_avatars/lib/application_helper_avatar_path.rb
from
image_url = url_for :only_path => false, :controller => 'account', :action => 'get_avatar', :id => user
to
image_url = url_for :only_path => true, :controller => 'account', :action => 'get_avatar', :id => user
i get idea from Eric Davis article
RE: Questions_Plugin - Added by Terence Mill over 13 years ago
This eeor seems to be resolved.
No i found another error wgen adding questions nlocks to my site i get Internal error for both new blocks offered by questions plugins
ActionView::TemplateError (undefined method `project' for nil:NilClass) on line #14 of vendor/plugins/question_plugin/app/views/my/blocks/_questions_asked_by_me.html.erb: 11: <tbody> 12: <% questions.each do |question| %> 13: <tr id="question-<%= question.id %>" class="<%= cycle('odd', 'even') %>"> 14: <td class="project"><%= link_to_project(question.issue.project) %></td> 15: <td class="issue"><%= link_to_issue(question.issue, :project => false) %></td> 16: <td class="question-content"> 17: <%= link_to h(truncate(question.notes, :length => 60)), :controller => 'issues', :action => 'show', :id => question.issue %> vendor/plugins/question_plugin/app/views/my/blocks/_questions_asked_by_me.html.erb:14 vendor/plugins/question_plugin/app/views/my/blocks/_questions_asked_by_me.html.erb:12 app/views/my/_block.rhtml:12:in `_run_rhtml_app47views47my47_block46rhtml_locals_block_block_name_object_user' app/views/my/page_layout.rhtml:58:in `_run_rhtml_app47views47my47page_layout46rhtml' app/views/my/page_layout.rhtml:56:in `each' app/views/my/page_layout.rhtml:56:in `_run_rhtml_app47views47my47page_layout46rhtml' passenger (2.2.14) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request' passenger (2.2.14) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application' passenger (2.2.14) lib/phusion_passenger/utils.rb:252:in `safe_fork' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:163:in `start' passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:222:in `start' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application' passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application' passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application' passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' <pre>
RE: Questions_Plugin - Added by Dmitry Salashnik over 13 years ago
- post some questions
- turn this plugin off
- remove posts
- and turn plugin on
and you have lost some records in questions
table
try clear lost records
RE: Questions_Plugin - Added by Terence Mill over 13 years ago
You mean i shall emty the table questions via slq command?
Is this safe?
Or hsall i remove all question in tickets via redmine gui and check if table is empty then?
RE: Questions_Plugin - Added by Dmitry Salashnik over 13 years ago
Terence Mill wrote:
You mean i shall emty the table questions via slq command?
Is this safe?
yes. questions is simple extend notes,
if you clear this table - all questions simple transform into notes
you can check for wrong records by this select:
select questions.* from questions left join issues on issues.id = questions.issue_id where issues.id is null
RE: Questions_Plugin - Added by Dmitry Salashnik over 13 years ago
also check for records which not exists in journal
or simple clear all records from questions
table :)
RE: Questions_Plugin - Added by Terence Mill over 13 years ago
Yeeeeha .. that worked ;)
For the records .. german translation updated.
RE: Questions_Plugin - Added by Terence Mill over 13 years ago
uhmm.. i found another one ;/
I got a new link on my Issue Tab as default search "Questiosn for me (1)". (Must be plugged in by the plugin)
The (1) seesm to say there is one new message/question for me i didn't read so far - Really good idea, but the link forwards
me to "https://myserver/questions/my_issue_filter?project=myproject" and that is only the lain listing of all issues in this project, not the ticket with the journal entry which is the message notified with the (1) as i would expect.
The link format should be for example "https://myserver/issues/933#note-6", doesn't it?
RE: Questions_Plugin - Added by Terence Mill over 13 years ago
or a filter query for all ticket with questions i have to answer,,
RE: Questions_Plugin - Added by Dmitry Salashnik over 13 years ago
Terence Mill wrote:
uhmm.. i found another one ;/
in question_query_patch.rb
change last lines in question_available_filters
from
return @available_filters.merge(question_filters)
to
@available_filters = @available_filters.merge(question_filters) return @available_filters
RE: Questions_Plugin - Added by Terence Mill over 13 years ago
Working fine now! Tx for ur work and fast repsonse.
Would be great if you can commit that changes to https://github.com/edavis10/question_plugin/.
RE: Questions_Plugin - Added by Dmitry Salashnik over 13 years ago
Terence Mill wrote:
Working fine now! Tx for ur work and fast repsonse.
Glad to help.
Would be great if you can commit that changes to https://github.com/edavis10/question_plugin/.
It's funny, but i don't know how use git :)
I use svn in my work :)