Results 1 to 2 of 2

Thread: Error adding User -New Install - FIXED 1.1.3

  1. #1
    Join Date
    Aug 2003
    Location
    Honolulu
    Posts
    7

    Default

    Question I was making myself a user and i got this error:

    Code:
    Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/infoomna/public_html/malialtd/realtypro/members/member_form_submit.php on line 162
    Looking at PHPMyadmin the user was created... I never got a confirm email. Is this someting i can fix or work around if my ISP won't turn SAFE mode off?

    Thanks

  2. #2
    Join Date
    Jun 2004
    Posts
    1,067

    Default

    Hi,

    Find line 161& 162
    Code:
    $message = $_SERVER[REMOTE_ADDR]. " -- ".date("F j, Y, g:i:s a")."\r\n\r\n$lang[admin_new_user]:\r\n$config[baseurl]/admin/user_edit.php?edit=$new_user_id\r\n";
    					mail("$config[admin_email]", "$lang[admin_new_user]", $message,"From: $config[admin_email]", "-f$config[admin_email]");
    and change to this
    Code:
    $message = $_SERVER[REMOTE_ADDR]. " -- ".date("F j, Y, g:i:s a")."\r\n\r\n$lang[admin_new_user]:\r\n$config[baseurl]/admin/user_edit.php?edit=$new_user_id\r\n";
    		
    		$header = "From&#58; ".$config&#91;'admin_email'&#93;." <".$config&#91;'admin_email'&#93;.">\r\n";
    		$header .= "X-Sender&#58; $config&#91;admin_email&#93;\r\n";
    		$header .= "Return-Path&#58; $config&#91;admin_email&#93;\r\n";
    
    		mail&#40;"$config&#91;admin_email&#93;", "$lang&#91;admin_new_user&#93;", $message, $header&#41;;

Similar Threads

  1. User Account Exists? get error: FIXED
    By displaced in forum HELP (CLOSED)
    Replies: 0
    Last Post: 12-15-2003, 11:38 AM
  2. V1.1.2 Generic template is broken - FIXED 1.1.3
    By the_sandking in forum Bugs (CLOSED)
    Replies: 7
    Last Post: 09-05-2003, 01:23 AM
  3. errors everywhere - FIXED 1.1.3
    By modom in forum HELP (CLOSED)
    Replies: 25
    Last Post: 08-20-2003, 08:39 PM
  4. Open-Realty 1.1.3 Released
    By greengiant in forum Announcements
    Replies: 4
    Last Post: 08-19-2003, 07:58 AM
  5. Create user from admin user - FIXED 1.0.6
    By iceman in forum Bugs (CLOSED)
    Replies: 3
    Last Post: 02-02-2003, 05:19 PM

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
  •