Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2009 at 19:19 UTC
Updated:
29 Feb 2016 at 09:22 UTC
Jump to comment: Most recent
Comments
Comment #1
mitchell commentedI've never had this problem. Can you please try again with the latest release?
Comment #2
fagoWorks for me too, so please reopen the issue if the problem persists.
Comment #4
dddbbb commentedI'm still getting this problem with 6.x-1.4
Comment #5
dddbbb commentedJust confirmed that I still get the problem with 6.x-1.x-dev as well.
Comment #6
donatello commentedi have the same problem and i don't really see how we can provide more info.
Event is not fired when using login block, but works when using full page login form.
I'm on 6.1.dev
is there a fix for this?
thanks a lot
Comment #7
tobiberlinSame here but for me to log in does not trigger the rule even when I log in by the form either. I have debugging enabled and I just see that the rule is triggered when I log in as admn - when I log in as any other user no debugging is shown.
**edit**
Ok... for me it is solved: looking at the reports/ watchdog I found that there was a mistake in the rule
Comment #8
rahulshah_1988 commentedI am having the same problem. All other events are getting captured except the 'User has logged in'. I am using LDAP module to my website for user profile values.
Comment #9
MarcElbichon commentedSeems thant events.inc is not loaded so rules_user_login is not fired.
I moved this function in rules.module and this is working.
I use CAS module which do user_login in hook_init. Maybe this is this problem.
Comment #10
rahulshah_1988 commentedHi,
Can you elaborate exactly how you did it? It worked for me before but suddenly I noticed that only "User has logged in" event is not firing. Not sure why?
Comment #11
MarcElbichon commenteduser_login hook is defined in events.inc which is loaded in rules_init (so by hook_init).
CAS module do user_login in hook_init too but its weight is smaller than rules weight so when hook_user_login is fired, rules_init has not been processed yet.
To force rules_init to be processed first, i do in a module :
Works for me
EDIT : Oops, my bad, this is only for Drupal 7
For Drupal 6, you can include modules/events.inc in your module
Comment #12
jpwester commentedThe code in #11 helped me immensely. I am using Drupal 7 with Shibboleth instead of CAS, but my scenario is exactly the same.
My question is, is this an issue with the Shibboleth or the Rules module? Or is the independent module that only alters the weight as is done in #11 the best/only solution?
Comment #13
MarcElbichon commentedI think this is rules issue. I've already opened one (#1853704: Force rules_init to be first).
Comment #14
Plecto commentedI encoutered this issue too.
I'm using the following configuration of Drupal:
- Drupal 7.24
- Shibboleth authentication 7.x-4.0
- Shibboleth User Provisioning 7.x-1.0-beta4
- Rules 7.x-2.6
The solution proposed by MarcElbichon works, but someone wrote of possible sideeffects.
Do you know if the problem has been solved by more recent versions of the Rules or Shibboleth modules?