I found this error is reated with using Gmail to send emails.

I installed gem ambethia-smtp-tls and put the following lines in the
bottom of my config/environments/production.rb.

require 'smtp-tls'

config.action_mailer.smtp_settings = {   :
address => "smtp.gmail.com",
:port => 587,
:domain => "[email protected]",
:authentication => :plain,
:user_name => "[email protected]",
:password => "banana" }

Once I commented the above lines, my site can start up, but losing
email activation.

My site is running on Rails 2.3.3.



On Nov 28, 1:21 pm, diandi <[email protected]> wrote:
> I installed all required gems and CE, but still get error when trying
> to start it. the errors as following:
>
> ===========================================================================­=======
> Error message:
> uninitialized constant FlashSessionCookieMiddleware
> Exception class:
> NameError
> Application root:
> /home/sinoyang/web/diandilove
> Backtrace:
> # File Line Location
> 0 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
> dependencies.rb 92 in `const_missing'
> 1 /home/sinoyang/web/diandilove/vendor/plugins/community_engine/config/
> initializers/sessions_middleware.rb 1
> 2 /home/sinoyang/web/diandilove/vendor/plugins/community_engine/config/
> boot.rb 5 in `load'
> 3 /home/sinoyang/web/diandilove/vendor/plugins/community_engine/config/
> boot.rb 5
> 4 /home/sinoyang/web/diandilove/vendor/plugins/community_engine/config/
> boot.rb 4 in `each'
> 5 /home/sinoyang/web/diandilove/vendor/plugins/community_engine/config/
> boot.rb 4
> 6 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in
> `gem_original_require'
> 7 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in
> `require'
> 8 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
> dependencies.rb 158 in `require_without_desert'
> 9 /home/sinoyang/.gem/ruby/1.8/gems/desert-0.5.3/lib/desert/ruby/
> object.rb 8 in `require'
> 10 /home/sinoyang/.gem/ruby/1.8/gems/desert-0.5.3/lib/desert/ruby/
> object.rb 32 in `__each_matching_file'
> 11 /home/sinoyang/.gem/ruby/1.8/gems/desert-0.5.3/lib/desert/ruby/
> object.rb 7 in `require'
> 12 /home/sinoyang/web/diandilove/config/environment.rb 58
> 13 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in
> `gem_original_require'
> 14 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in
> `require'
> 15 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
> dependencies.rb 156 in `require'
> 16 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
> dependencies.rb 521 in `new_constants_in'
>
> ===========================================================================­=======
> I put the line "require 'desert'" in my environment.rb as well.
>
> Can anyone help me out?
>
> Thanks a lot!
> Diandi

--

You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.


Reply via email to