Hi all, I'm using community_engine 1.0.2, rails 2.3.4, and ruby
1.8.7. I just installed community_engine for the first time and was
encountering "stack level too deep" errors when trying to visit /user
and when trying to save changes to my user account.
I narrowed the issue down to plugins using "alias_method_chain".
Apparently if a module using alias_method_chain is loaded more then
once this will cause an infinite loop between the methods created with
alias_method_chain (google alias_method_chain and "stack level too
deep", there are plenty of discussions).
Anyway, I wanted to share my solution, which was to tell ActiveSupport
to only load community_engine once by adding the following to the
Rails::Initializer.run block:
config.after_initialize do
ActiveSupport::Dependencies.load_once_paths =
ActiveSupport::Dependencies.load_once_paths.select { |path| (path =~ /
(community_engine)/).nil? }
end
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---