Project

General

Profile

Questions Plugin by Eric Davis

Added by Terence Mill over 13 years ago

I tested the Plugin on redmine 1.01 and get following error Submitting ticket with a user choosen in field "assign question to"

ActionView::MissingTemplate (Missing template question_mailer/asked_question.text.plain.rhtml in view path app/views):
  /app/models/mailer.rb:393:in `render_multipart'
  vendor/plugins/question_plugin/app/models/question_mailer.rb:19:in `asked_question'
  vendor/plugins/question_plugin/app/models/journal_questions_observer.rb:9:in `after_create'
  /usr/local/lib/ruby/1.8/observer.rb:185:in `notify_observers'
  /usr/local/lib/ruby/1.8/observer.rb:184:in `each'
  /usr/local/lib/ruby/1.8/observer.rb:184:in `notify_observers'
  app/models/journal.rb:43:in `save'
  app/models/issue.rb:799:in `create_journal'
  app/models/issue.rb:505:in `save_issue_with_child_records'
  app/models/issue.rb:487:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:170:in `update'
  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'

I checked and foud the file at the given path.

/usr/local/lib/redmine-trunk/vendor/plugins/question_plugin/app/views/question_mailer/asked_question.text.plain.rhtml

What is wrong?

Btw. a "question" ;)

Who can see the question and answers? Only the person who wrote and the who it was assigned to or all?

Tx for help!


Replies (4)

RE: Questions Plugin by Eric Davis - Added by Eric Davis over 13 years ago

Terence Mill wrote:

I tested the Plugin on redmine 1.01 and get following error Submitting ticket with a user choosen in field "assign question to"

Looks like it's a know bug. I don't get it on my Redmine at all though (Redmine trunk).

https://projects.littlestreamsoftware.com/issues/3890

Who can see the question and answers? Only the person who wrote and the who it was assigned to or all?

All. A question is just a regular note on an issue with extra highlighting.

By the way: I have a Redmine project setup for this plugin at the Little Stream Software Redmine.

Eric Davis

RE: Questions Plugin by Eric Davis - Added by Terence Mill over 13 years ago

Eric Davis wrote:

Terence Mill wrote:

I tested the Plugin on redmine 1.01 and get following error Submitting ticket with a user choosen in field "assign question to"

Looks like it's a know bug. I don't get it on my Redmine at all though (Redmine trunk).

https://projects.littlestreamsoftware.com/issues/3890

Maybe silly question , but why don't you apply the patch?
I will try it non monday and give feedback next week, if it works for us.

Who can see the question and answers? Only the person who wrote and the who it was assigned to or all?

All. A question is just a regular note on an issue with extra highlighting.

By the way: I have a Redmine project setup for this plugin at the Little Stream Software >Redmine.

Yes i know. I wanted to report there and registered as user "cforce" but i can't login after register. I also tried openid, but nothing works..

RE: Questions Plugin by Eric Davis - Added by Terence Mill over 13 years ago

I can report that after the patch i no more get the error message from top of thsi thread and no "intnernal error....


class QuestionMailer < Mailer
  unloadable
  self.instance_variable_get("@inheritable_attributes")[:view_paths] << RAILS_ROOT + "/vendor/plugins/question_plugin/app/views" 

  def asked_question(journal)
    question = journal.question
    subject "[Question #{question.issue.project.name} ##{question.issue.id}] #{question.issue.subject}" 
    recipients question.assigned_to.mail unless question.assigned_to.nil?
    @from  = "#{question.author.name} (Redmine) <#{Setting.mail_from}>" unless question.author.nil?

... but now i i get this message in the rror log.

The following error occured while sending email notification: "501 Syntax error, parameters in command "MAIL FROM:<"Hans Mustermann (Redmine)" <Hans Mustermann@mail.domain.de>>" unrecognized or missing". Check your configuration in config/email.yml.

Please help!

RE: Questions Plugin by Eric Davis - Added by Terence Mill over 13 years ago

Btw. the patch don't shows how to handle the command "unloadable" which is right behind the class entry.

    (1-4/4)