We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29979
    • 21 Posts
    Fatal error: Call to undefined function: quoted_printable() in /manager/processors/save_user.processor.php on line 477

    Hello,

    Could anyone point me to what is wrong here. Whenever I try to setup a user as an admin and email them their password and make other changes then hit save this error shows.

    I don’t know if the email has been sent and or the admin user has been created.


    Any insight would be much appreciated.

    Thank You,

    Matt

    The Code where this line lives:
    // Send an email to the user
    function sendMailMessage($email, $uid, $pwd, $ufn) {
    	global $signupemail_message;
    	global $emailsubject, $emailsender;
    	global $site_name, $site_start, $site_url;
    	$manager_url = $site_url . "manager/";
    	$message = sprintf($signupemail_message, $uid, $pwd); // use old method
    	// replace placeholders
    	$message = str_replace("[+uid+]", $uid, $message);
    	$message = str_replace("[+pwd+]", $pwd, $message);
    	$message = str_replace("[+ufn+]", $ufn, $message);
    	$message = str_replace("[+sname+]", $site_name, $message);
    	$message = str_replace("[+saddr+]", $emailsender, $message);
    	$message = str_replace("[+semail+]", $emailsender, $message);
    	$message = str_replace("[+surl+]", $manager_url, $message);
    
    	$headers = "From: " . $emailsender . "\r\n";
    	$headers .= "X-Mailer: Content Manager - PHP/" . phpversion();
    	$headers .= "\r\n";
    	$headers .= "MIME-Version: 1.0\r\n";
    	$headers .= "Content-Type: text/plain; charset=utf-8\r\n";
    	$headers .= "Content-Transfer-Encoding: quoted-printable\r\n";
    	$subject = "=?UTF-8?Q?".$emailsubject."?=";
    	$message = quoted_printable($message);
    
    	if (ini_get('safe_mode') == FALSE) {
    		if (!mail($email, $subject, $message, $headers, "-f $emailsender")) {
    			webAlert("$email - {$_lang['error_sending_email']}");
    			exit;
    		}
    	} elseif (!mail($email, $subject, $message, $headers)) {
    		webAlert("$email - {$_lang['error_sending_email']}");
    		exit;
    	}
    }
    
      • 29979
      • 21 Posts
      Anyone... have any idea why this is happening?

      This is a fresh install of modX 1.0.0.

      Thanks,

      Matt
        • 10487 MODX Staff
        • 1,535 Posts
        It’s a bug that has been fixed in SVN for the Evo 1.0.1 release - see here for the changeset which you could use to manually patch your install: http://svn.modxcms.com/crucible/changelog/modx?cs=5604
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com