Opened 4 years ago
Closed 4 years ago
#1379 closed Defect (invalid)
Registering for user login event fails based on plugin order
| Reported by: | divagater | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | 1.6 |
| Severity: | minor | Keywords: | |
| Cc: | brettp | Difficulty: |
Description
I am using the following event registration in a plugin _init() method.
register_elgg_event_handler('login','user','plugin_login');
If this plugin is at the bottom of the plugin list plugin_login() is never called however other event registrations work as expected. Moving the plugin to the top of the plugin list resolves this issue. I have reproduced this on several independent Elgg installs.
Change History (1)
comment:1 Changed 4 years ago by cash
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Documentation on Elgg events here: http://docs.elgg.org/wiki/Elgg_Events
Most likely you have a plugin that is registering for that event and returning false to prevent other event handlers from running. It worked for me on a clean install.