Does anyone know what could be causing this. All I did was comment on
a users profile, and then the activities area shows a backtrace in
other users profiles.
NoMethodError in Base#footer_content
Showing vendor/plugins/community_engine/app/views/activities/
_activity.html.haml where line #5 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
Extracted source (around line #5):
2: %dt
3: =time_ago_in_words_or_date(activity.created_at)
4: %dd
5: =link_to activity.user.login.capitalize, user_path
(activity.user.login_slug)
6: - if activity.item
7: - case activity.item_type
8: - when 'Post'
Trace of template inclusion: vendor/plugins/community_engine/app/views/
shared/_footer_content.html.haml
Then When you try to view the profile you commented on you get this
error page.
NoMethodError in Users#show
Showing vendor/plugins/community_engine/app/views/users/show.html.haml
where line #46 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
Extracted source (around line #46):
43: - @users_comments.each do |comment|
44: %dl.vcard
45: %dt.photo
46: = link_to image_tag(comment.recipient.avatar_photo_url
(:thumb), :alt => "#{comment.recipient.login}", :width =>
'50', :height => '50'), commentable_url(comment)
47: %dd.fn
48: - if comment.recipient.eql?(comment.commentable)
49: %strong= :to.l + ": #{link_to
comment.recipient.login, commentable_url(comment)}"
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---