Problem of Starting App

10 views
Skip to first unread message

diandi

unread,
Nov 28, 2009, 12:21:14 AM11/28/09
to CommunityEngine
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

diandi

unread,
Nov 29, 2009, 9:41:50 PM11/29/09
to CommunityEngine
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 => "mon...@domain.com",
:authentication => :plain,
:user_name => "mon...@domain.com",
: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 <yidianyidi.supp...@gmail.com> wrote:
> I installed all required gems and CE, but still get error when trying
> to start it. the errors as following:
>
> ===========================================================================­=======
> ===========================================================================­=======

diandi

unread,
Nov 29, 2009, 10:02:05 PM11/29/09
to CommunityEngine
Can anyone provide a worked and complete CE email configuration for
production? Please correct me if I am wrong or missing something. I
used Gmail to send emails.

1. install gem ambethia-smtp-tls;

2. Put APP_URL = your site domain in config/environments/production.rb

3. Put the following lines in config/environments/production.rb as
well

config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_charset = "utf-8"
config.action_mailer.delivery_method = :smtp

require 'smtp-tls'

config.action_mailer.smtp_settings = { :
address => "smtp.gmail.com",
:port => 587,
:domain => "mon...@domain.com",
:authentication => :plain,
:user_name => "mon...@domain.com",
:password => "banana" }




> > Diandi- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages