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

Leyla85’s picture

I 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.

_shy’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

D7 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!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.