
Originally Posted by
jayuklond
When I create a new user I get the following error:
Warning: Missing argument 2 for clear_register_value(), called in /home/web_dir/web_dir/crm/modules/Users/Save.php on line 78 and defined in /home/web_dir/web_dir/crm/include/utils.php on line 2052
Fatal error: Call to a member function parse_email_template() on a non-object in /home/web_dir/web_dir/crm/modules/Users/GeneratePassword.php on line 180
The user does create but not properly and trying to change the password create the error:
Fatal error: Call to a member function parse_email_template() on a non-object in /home/web_dir/web_dir/crm/modules/Users/GeneratePassword.php on line 180
Any help would be great, thanks in advanced.

To fix this I had to make 2 code changes. Im running 6.4.0RC2.
For the first error there are supposed to be 2 arguments to clear_register_value. I added a second argument that is an empty string.
On line 78 of /modules/Users/Save.php change this line:
Code:
clear_register_value('user_array'); To this:
Code:
clear_register_value('user_array','');
For the second error a variable isn't global that the script requires so I made it global.
On line 149 of /modules/Users/GeneratePassword.php change this line:
Code:
global $current_user;
To this:
Code:
global $current_user, $emailTemp;
Bookmarks