-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New User Registration Error #545
Comments
Is it that |
I run PHP Version 7.0.4 (XAMPP) on my local machine and haven't experienced any issues registering or creating users as root. I'm certainly not an expert but I would comment out these lines: https://github.com/userfrosting/UserFrosting/blob/master/userfrosting/controllers/AccountController.php#L425-L451 and try again... Just to narrow down the issue. |
@thomasspe I commented out those lines registered without error so the issue is right there. @alexweissman I downgraded to PHP5 and still see the error. |
Ok full disclaimer: I'm not an expert and if you follow my advice it's basically trial and error until something works without necessarily knowing why it works. If pretty much any other person gives you advice, prefer their advice over mine. Next thing I would check would be in my database in the $this->from_email = 'test@test.com'; and then see if I get an error because of |
I agree with @thomasspe about changing line 71. You also want to make sure that the email account listed for the from/admin email actually exists as it must be a real account when using PHPMailer. |
But this should give an SMTP error message, no? |
It throws an error, but from my memory from using in a script it failed silently unless debugging was turned on, and I don't know how errors are handled in UF, so it might display it or not. But I know with PHPMailer the account has to exist to be used. |
After commenting out lines that reference the non existent static::$app the code reaches a new error.
|
Yeah, I have the feeling that there is a bigger problem here. It seems to me like the entire This is both where |
Btw, UserFrosting/userfrosting/initialize.php Line 187 in bc440d4
|
Please let us know if you still need help with this. |
I can create the master user with no problem, but when I try to create another user, I get the following error.
I've tried two fresh installs running PHP7 MAMP. Any insights?
The error indicates static::$app is undefined on the line:
$this->from_email = static::$app->site->admin_email;
The text was updated successfully, but these errors were encountered: