Closed (outdated)
Project:
Activity
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 15:52 UTC
Updated:
29 Oct 2025 at 14:55 UTC
Jump to comment: Most recent
I have a simple "User Register" activity created but no messages are created when a new users registers. I have tried selecting one or both "roles" on the edit page.
Does the User Register not work with Drupal 7 yet? I have Activity installed on a Drupal 6 site and it works there.
Comments
Comment #1
Leyla85 commentedI had the same problem on my site.
When creating a new user, I had an error on line 774 of sites\all\modules\activity\activity_action_handlers.inc.
But, when regenerating the "User Register" activities (with all "roles" unselected on the edit page), it worked.
After printing the $context, I saw that it didn't have a 'account' variable but it did have a 'user' variable with an 'uid'. So I replaced 'account' by 'user' and it worked.
So you should replace the line 774 of activity_action_handlers.inc :
return $context['account']->uid;
by :
return $context['user']->uid;
Hope it helps.
Comment #2
_shyD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!