I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Send email by click send button error occured.

Added by Ki Won Kim about 12 years ago

Error log were below.

Processing ContactFormController#mail (for 211.230.102.188 at 2012-02-01 18:08:08) [POST]
  Parameters: {"commit"=>"전송", "contact_form"=>{"project_id"=>"1", "subject"=>"Test contact email", "message"=>"Test contact email"}, "action"=>"mail", "authenticity_token"=>"ipjZ/PB3pOyJjvaio0YcbPo=", "controller"=>"contact_form"}

ActionView::MissingTemplate (Missing layout layouts/contact.text.plain.rhtml in view path app/views):
  vendor/plugins/contact_form/app/controllers/contact_form_controller.rb:18:in `mail'
  config/initializers/mongrel.rb:62:in `dispatch_cgi'

Rendering D:/CI/Redmine/public/500.html (500 Internal Server Error)

other information needed?


Replies (11)

RE: Send email by click send button error occured. - Added by Andriy Lesyuk about 12 years ago

Hi! Sorry for the late reply!

It’s weird because the plugin should include file contact.text.plain.rhtml...
See: source:app/views/layouts/contact.text.plain.rhtml

Please check if such file exists...

RE: Send email by click send button error occured. - Added by Ki Won Kim about 12 years ago

That file exists.
I was checked out the lastest version of source in http://svn.s-andy.com/redmine-contact

RE: Send email by click send button error occured. - Added by Andriy Lesyuk about 12 years ago

Does it work now?..
If not what version of Redmine are you using?

RE: Send email by click send button error occured. - Added by Ki Won Kim about 12 years ago

Andriy Lesyuk wrote:

Does it work now?..
If not what version of Redmine are you using?

No, It does not work in Redmine 1.3.2, 1.3.1 ...
The error messages were same.

RE: Send email by click send button error occured. - Added by Andriy Lesyuk about 12 years ago

Faced this issue once on Redmine 1.0.x... Thought it was related to 1.0.x. Now I see it’s not...

Only know that it happens on some environments. Could not understand why.

The reason is that it searches for contact.text.plain.rhtml template only in app/views while it should also look into plugins’ views.

The workaround I use personally is:

  • Change directory to Redmine’s app/views/layoutscd app/views/layouts
  • Execute → ln -sf ../../../vendor/plugins/contact_form/app/views/layouts/contact.text.html.rhtml contact.text.html.rhtml
  • And → ln -sf ../../../vendor/plugins/contact_form/app/views/layouts/contact.text.plain.rhtml contact.text.plain.rhtml

Hope this helps.

RE: Send email by click send button error occured. - Added by Ki Won Kim about 12 years ago

Sorry.
that procedures are not working... same error.

RE: Send email by click send button error occured. - Added by Andriy Lesyuk about 12 years ago

That can’t be true - are you saying that the error still claims file does not exist while it does?

Be sure to check again! Be sure to restart.

RE: Send email by click send button error occured. - Added by Daniel Seifert almost 12 years ago

I am having the same issue. Latest SVN version, Redmine 1.3.0, when clicking send it gives me the above error message. Adding links in redmine/apps/viewS/layouts (as per the above) is not enough, I also have to link to mailer/email.text... in the same fashion - afterwards it works.

RE: Send email by click send button error occured. - Added by Andriy Lesyuk almost 12 years ago

Daniel Seifert wrote:

Adding links in redmine/apps/views/layouts (as per the above) is not enough, I also have to link to mailer/email.text... in the same fashion - afterwards it works.

Thanks, Daniel! Good find!

RE: Send email by click send button error occured. - Added by Daniel Seifert almost 12 years ago

Of course it would be interesting to not have to do this as it would have to be redone at every update.

RE: Send email by click send button error occured. - Added by Andriy Lesyuk almost 12 years ago

Daniel Seifert wrote:

Of course it would be interesting to not have to do this as it would have to be redone at every update.

Of course, I understand!.. But so far I could not determine what causes this! On some installations one does not need to do this stuff.

    (1-11/11)

    Terms of use | Privacy policy