We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32928
    • 3 Posts
    Hi,
    I really need some help here, i tried setting up Webloginpe initially, got a parsing error problem which had to do with ereg(), i searched and saw the function used now for that is preg_match() which i changed.

    Now no parsing error, but getting a msg; email address does not appear to be properly formatted when trying to register.

    For the weblogin, i cant login using web user created in manager(security code not validated) and register either. Parsing error encountered here;
    PHP error debug
      Error: 	mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	C:\wamp\www\modx\assets\snippets\weblogin\weblogin.common.inc.php	 
      Line: 	61	 
      Line 61 source: 	if (!ini_get('safe_mode')) $sent = mail($email, $emailsubject, $message, "From: ".$emailsender."\r\n"."X-Mailer: Content Manager - PHP/".phpversion(), "-f {$emailsender}"); 	 
     


    My question is that; does the modx have to be live before front end users can be authenticated or registered.....

    Tx
      • 32928
      • 3 Posts
      Hi,
      i noticed that a user account was created in the manager end despite the parsing error, with the account i still can’t logon in the front end still keeps saying secret code couldn’t be validated.



      Thanks
        • 32928
        • 3 Posts
        Yep, its ok now. I made the page having the login call non-cacheable.

        thanks