Colm
unread,Nov 28, 2009, 6:44:39 PM11/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CommunityEngine
Hello,
I've seen a problem when a user has gone through the first part of the
sign-up but has not yet read the activation e-mail that is sent. In
that case any attempt to view the homepage gives a 404. Having looked
at it a bit I see that in base_controller.rb we have
def get_additional_homepage_data
.......
@active_users = User.active.find_by_activity({:limit =>
5, :require_avatar => false})
and in user.rb we have
named_scope :active, :conditions => ["users.activated_at IS NOT
NULL"]
so the user exists but has user.activated = NULL and this seems to
cause the problem, at least I can say that when I manually set the
activated field to some value the error disappears and the homepage is
displayed normally.
I'm using the master version of CE not edge.
Thanks / Colm