Bug #10845 See Comments

member_member_register hook does not get member_id

Version: EE 2.0.0PB 20091211 Reporter: Bjørn Børresen

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

Don’t know if you consider this a bug, but it does seem like one to me, see this thread for more info:
http://ellislab.com/forums/viewthread/139238/

The thing is the member_member_register hook that is called after a member has been registered (and saved to the database) gets all info about the new member *except* the member_id. I would imagine member_id to be crucial to most hooks working with a newly registered member.

How to Fix
==========

in mod.member_register.php, on line 685, just before the hook is called, add member_id to the $data array like this:

$data[‘member_id’] = $member_id;

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases