Project

General

Profile

Administration Error -undefined method 'forum_mail_from'

Added by mary albanese about 14 years ago

1. When I run the patch #1616 to allow replies to forum emails, I get the errors listed at the bottom of this message…however I then followed the directions at this link http://www.messaliberty.com/2009/11/how-to-use-email-to-create-and-reply-to-forums-on-redmine/ to clean up some of them. There was then one additional error that I had to fix myself in mail_handler_test.rb.rej:

- :issue_categories
+ :issue_categories,
+ :boards

2. After the fixes the patch worked! Email replies to the forum got inserted correctly into the forum! Yea! However, then we found another error. When we tried to got to admin->settings it failed and this was the failure:

ActionView::TemplateError (undefined method `forum_mail_from' for #<Class:0x36db8c70>) on line #9 <http://www.redmine.org/issues/9> of settings/_notifications.rhtml:
6: 60 ></p>
7:
8: <p><label>= l(:setting_forum_mail_from) ></label>
9: = text_field_tag 'settings[forum_mail_from]', Setting.forum_mail_from, :size => 60 ></p>
10:
11: <p><label>= l(:setting_bcc_recipients) ></label>
12: = check_box_tag 'settings[bcc_recipients]', 1, Setting.bcc_recipients? %>

Seems like some definition is missing. Can anyone please help us??

/************** Patch errors *******/
[root@binja redmine 1074]# patch p0 < feature_277_mailing_list_forum_integration_with_test_fixtures.diff
patching file test/unit/mail_handler_test.rb
Hunk #1 FAILED at 26.
Hunk #2 succeeded at 174 with fuzz 2 (offset 77 lines).
1 out of 2 hunks FAILED -
saving rejects to file test/unit/mail_handler_test.rb.rej
patching file test/fixtures/mail_handler/message_on_given_project.eml
patching file test/fixtures/mail_handler/message_invalid_user_email.eml
patching file test/fixtures/mail_handler/message_reply.eml
patching file test/fixtures/mail_handler/unsupported_email.eml
patching file test/fixtures/mail_handler/message_invalid_project.eml
patching file test/fixtures/mail_handler/message_invalid_board.eml
patching file app/models/mail_handler.rb
Hunk #1 succeeded at 54 (offset 3 lines).
Hunk #2 succeeded at 116 with fuzz 1 (offset 18 lines).
patching file app/models/mailer.rb
Hunk #1 succeeded at 110 (offset 11 lines).
patching file app/views/settings/_notifications.rhtml
patching file lang/en.yml
Hunk #1 succeeded at 196 with fuzz 2 (offset 4 lines).
patching file config/settings.yml
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file config/settings.yml.rej


Replies (1)

RE: Administration Error -undefined method 'forum_mail_from' - Added by mary albanese about 14 years ago

Note- I am running version :2009-11-15 v0.8.7

Thanks!

    (1-1/1)