Results 1 to 4 of 4

Thread: Fatal error: & Warning: Missing argument

  1. #1
    jayuklond is offline Junior Member
    Join Date
    Jan 2012
    Posts
    3

    Default Fatal error: & Warning: Missing argument

    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.


  2. #2
    jayuklond is offline Junior Member
    Join Date
    Jan 2012
    Posts
    3

    Default Re: Fatal error: & Warning: Missing argument

    Anyone?


  3. #3
    fluffysheap is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default Re: Fatal error: & Warning: Missing argument

    Sorry I haven't any solution, but I am experiencing the same problem. What version are you using? I am trying a brand new fresh install of the 6.4 RC2 and perhaps it is an issue just with that version. I'll probably try 6.3 and see if it gets better.

  4. #4
    sterup is offline Junior Member
    Join Date
    Feb 2012
    Posts
    2

    Default Re: Fatal error: & Warning: Missing argument

    Quote Originally Posted by jayuklond View Post
    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;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Invalid Argument error - modules missing ?
    By swordfrog in forum Help
    Replies: 1
    Last Post: 2011-03-25, 06:13 AM
  2. Replies: 9
    Last Post: 2009-08-04, 03:39 PM
  3. Language : Warning, Fatal error require
    By doctorexe in forum Help
    Replies: 1
    Last Post: 2009-06-18, 01:34 PM
  4. Warning & Fatal error on install
    By DaleThomas in forum Help
    Replies: 0
    Last Post: 2006-06-06, 06:45 PM
  5. Replies: 0
    Last Post: 2005-11-14, 04:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •