Project

General

Profile

"undefined method `info' for true:TrueClass"

Added by Amit Karan over 16 years ago

Hey all

Trying to set up redmine. The mail setup, testing using send test email gives the following error message :

An error occurred while sending mail (undefined method `info' for true:TrueClass)

Any clues how to I go about fixing this?

Thanks!


Replies (3)

RE: "undefined method `info' for true:TrueClass" - Added by Amit Karan over 16 years ago

Commenting out the following seems to have worked:

In vendor/rails/actionmailer/lib/action_mailer/base.rb

Line 370 : logger.info "Received mail:\n #{mail.encoded}" unless logger.nil?
Line 466 : logger.info "Sent mail:\n #{mail.encoded}" unless logger.nil?

RE: "undefined method `info' for true:TrueClass" - Added by Thomas Lecavelier over 16 years ago

That's a workaround, but that's not a definitive solution: you have a setup problem. Please follow instructions in the sticky topic of that forum to help us to help you.

RE: "undefined method `info' for true:TrueClass" - Added by Amit Karan over 16 years ago

Sorry, forgot to post the version information. We're hosting it on bluehost and its a regular linux setup. Its running on Apache with FastCGI

# rails --version
Rails 2.0.2
# RAILS_ENV=development script/about
GLoc v1.1 running in development mode. Strings can be modified at runtime.
About your application's environment
Ruby version              1.8.6 (x86_64-linux)
RubyGems version          1.1.1
Rails version             2.0.2
Active Record version     2.0.2
Action Pack version       2.0.2
Active Resource version   2.0.2
Action Mailer version     2.0.2
Active Support version    2.0.2
Edge Rails revision       rel_2-0-2
Application root          /home/tricksco/rails/redmine
Environment               development
Database adapter          mysql
Database schema version   92
    (1-3/3)