Alright - I’ve been on this one for 5 solid hours - time to ask for some help.
I’ve just installed Login 1.5.2-pl on Revolution 2.0.8-pl.
Trying immediately to do an uncustomised ’out-of-the-box’ registration, no email ever arrives and I get the following error in the logs:
[2011-02-27 00:05:31] (ERROR @ /index.php) modUserProfile: Attempt to set NOT NULL field internalKey to NULL
This looks like exactly the issue you guys have been having and patched your way over. Though it looks like my versions are a little way along, I notice the linked bug (2870) is still open which would indicate this still applies. Then I found this post:
http://modxcms.com/forums/index.php/topic,59228.msg337170.html#msg337170 which (I think) mentions that there’s a work around in 1.5.1 which is earlier than what I’m running. So, for a start, I’m confused with these seemingly conflicting bits of information.
So I started investigating:
Starting at line 41 of moduserprofile.map.inc.php I found this block:
'internalKey' =>
array (
'dbtype' => 'int',
'precision' => '10',
'phptype' => 'integer',
'null' => false,
'default' => 0,
'index' => 'unique',
),
I tried changing the default from ’0’ to ’NULL’ (without quotes), but the error kept coming. Was that bit of my work correct?
Anyway, next I see the call for the change to "$activationEmail = $user->get(’email’);", but I can’t for the life of me find where this should be changed. Is it in a file somewhere or in a snippet or what? I wonder if it’s been changed in 1.5.1 and that’s why I can’t find it...?
And when the final part needs to be added to register.php, does this mean adding it into my ’Register’ snippet or into a file? Where abouts?
Hoping these are ’silly’ questions and it’s easy to help.
Thanks in advance for anything that anyone is able to contribute!