#30 new
Dave Spurr

Exception_notifiable causes "Unprocessed view path found: nil" when sending any other emails

Reported by Dave Spurr | August 18th, 2008 @ 02:22 PM

After installing exception_notifiable when the application tries to send any email (other than exception notifications) I get the following error:

ActionView::TemplateFinder::InvalidViewPath in UsersController#create

Unprocessed view path found: nil. Set your view paths with #append_view_path, #prepend_view_path, or #view_paths=.

I'm using this plugin in combination with ARMailer plugin so have changed the exception_notifier to extend ARMailer, that is the only change I have made. I am also running on Rails 2.1.0

I've tried to see what could cause this issue but haven't had any luck so have had to remove this plugin for now.

Comments and changes to this ticket

  • Phil Cowans

    Phil Cowans August 21st, 2008 @ 02:09 PM

    Here's a patch - shamelessly stolen from sms-fu :-)

    I haven't tested this beyond confirming that it works for my own app.

  • Phil Cowans

    Phil Cowans August 21st, 2008 @ 02:17 PM

    Sorry - just noticed that your problem isn't identical to the one I was having - would be interested to know whether you have any luck with the patch.

  • Dave Spurr

    Dave Spurr August 22nd, 2008 @ 12:40 PM

    I'd make sure you wear wellies tomorrow, it's fucking muddy as hell on the way in.

    Sent from my iPhone

    On 21 Aug 2008, at 14:10, Lighthouse support@lighthouseapp.com wrote:

  • Mark Lynn

    Mark Lynn September 20th, 2008 @ 11:49 PM

    • → Tag changed from “bug exception_notifiable plugin rails” to “bug exception_notifiable plugin rails”

    Experiencing same problem when used in combination with ar_mailer. If either ExceptionNotifier.exception_recipients or ExceptionNotifier.sender_address is set in an environment file, then sending mail results in:

    Unprocessed view path found: nil. Set your view paths with #append_view_path, #prepend_view_path, or #view_paths=.

    However, if I add

    ActionMailer::Base.template_root = "#{File.dirname(FILE)}/../../app/views"

    to the environment file, then it seems to work again.

    Note: this error is present whether or not ExceptionNotifier is changed to be a subclass of ActionMailer::ARMailer or ActionMailer::Base.

    I looked, but I do not see why the combination of exception_notifiable and ar_mailer causes the template_root to not be set.

  • Scott

    Scott October 2nd, 2008 @ 12:01 AM

    Same issue. Not working even when I add: ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/../../app/views"

    to environments/production.rb.

  • Scott

    Scott October 2nd, 2008 @ 05:05 PM

    Ah. I see. It looks like it works if you put: ActionMailer::Base.template_root = "#{File.dirname(FILE)}/../../app/views"

    BEFORE you specify ExceptionNotifier.exception_recipients and ExceptionNotifier.sender_address.

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments