You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version and OS: UF 5, native install, Firefox, Linux (Arch)
PROBLEM:
When a new user attempts to create an account, but UF can't connect to an SMTP server, the user receives a blank alert popup.
(The user is still created.)
EXPECTED RESULTS:
A blank error message is unhelpful.
At least it could alert the user that there is an issue with the webpage and the account was not created.
In my test, app/logs/userfrosting.log showed successful DB queries, but UF could not connect to SMTP server:
[2023-10-31T01:50:59.474993-04:00] mail.DEBUG: Connection failed. Error #2: stream_socket_client(): Unable to connect to 0.0.0.0:1025 (Connection refused) [/home/strike/Frosting/UF5-native/vendor/phpmailer/phpmailer/src/SMTP.php line 396] [] []
[2023-10-31T01:50:59.475037-04:00] mail.DEBUG: SMTP ERROR: Failed to connect to server: Connection refused (111) [] []
[2023-10-31T01:50:59.484563-04:00] mail.DEBUG: SMTP Error: Could not connect to SMTP host. Failed to connect to server [] []
[2023-10-31T01:50:59.485549-04:00] errors.ERROR: UserFrosting Application Error:
Type: PHPMailer\PHPMailer\Exception
Message: SMTP Error: Could not connect to SMTP host. Failed to connect to server
File: /home/strike/Frosting/UF5-native/vendor/phpmailer/phpmailer/src/PHPMailer.php
Line: 2233
Trace: #0 /home/strike/Frosting/UF5-native/vendor/phpmailer/phpmailer/src/PHPMailer.php(2019): PHPMailer\PHPMailer\PHPMailer->smtpConnect()
[etc]
Root user can't see the new account via the web interface. I have not been able to check the database directly to see whether a partial account exists there.
(In my case the SMTP server was not running, so everything aside from the empty user alert appears to be correct.)
The text was updated successfully, but these errors were encountered:
It's a "temporary" solution, as the actual warning is already returned in the request body, but not properly handled by uf-form.js. By default _debugAjax is off and the exception doesn't have a description (but it doesn't matter, since _debugAjax is off), so nothing was displayed. The whole ufForm need to be rewritten, and it's planned for UF6 with Vue.js, so I won' waste more time on this for now and went with this "temp" fix.
Version and OS: UF 5, native install, Firefox, Linux (Arch)
PROBLEM:
When a new user attempts to create an account, but UF can't connect to an SMTP server, the user receives a blank alert popup.
(The user is still created.)
EXPECTED RESULTS:
A blank error message is unhelpful.
At least it could alert the user that there is an issue with the webpage and the account was not created.
In my test,
app/logs/userfrosting.log
showed successful DB queries, but UF could not connect to SMTP server:Root user can't see the new account via the web interface. I have not been able to check the database directly to see whether a partial account exists there.
(In my case the SMTP server was not running, so everything aside from the empty user alert appears to be correct.)
The text was updated successfully, but these errors were encountered: