09-14-2016, 12:44 PM
Hi Mudmin,
Thank you so much for your reply! I later found the cause and solved the problem. I'm not sure if there is any change that I made to the program that causes the error, but I see that in mysql databse, the "transport" column under "email" table is storing "TLS" or "SSL" in lower case. Because of this, in the users/helpers/helpers.php file, at around line 120:
$mail->SMTPSecure = $smtp_transport;
This $mail -> SMTPSecure variable is getting lower case "tls" instead of upper case "TLS". I changed this line to be:
$mail->SMTPSecure = strtoupper($smtp_transport);
Then the problem is gone.
I don't no if it is a bug or it is caused by some changes I made after I downloaded UserSpice. But I think it might be helpful to post the cause of my problem here so that other people doesn't get the same error.
And....one more question if you don't mind, right now userspice is redirecting users to their account page if they are trying to access a page that they don't have access to. I'm trying to add a "Sorry you don't have access" page and have the program redirect the user to this page when they don't have access. I already have this page written (just a very simple page with one line of message), but wasn't able to find where to replace the "account.php" to my "no_access_notice.php". Based on your expertise, what would you recommend to do?
Thanks a lotttt!
Angel
Thank you so much for your reply! I later found the cause and solved the problem. I'm not sure if there is any change that I made to the program that causes the error, but I see that in mysql databse, the "transport" column under "email" table is storing "TLS" or "SSL" in lower case. Because of this, in the users/helpers/helpers.php file, at around line 120:
$mail->SMTPSecure = $smtp_transport;
This $mail -> SMTPSecure variable is getting lower case "tls" instead of upper case "TLS". I changed this line to be:
$mail->SMTPSecure = strtoupper($smtp_transport);
Then the problem is gone.
I don't no if it is a bug or it is caused by some changes I made after I downloaded UserSpice. But I think it might be helpful to post the cause of my problem here so that other people doesn't get the same error.
And....one more question if you don't mind, right now userspice is redirecting users to their account page if they are trying to access a page that they don't have access to. I'm trying to add a "Sorry you don't have access" page and have the program redirect the user to this page when they don't have access. I already have this page written (just a very simple page with one line of message), but wasn't able to find where to replace the "account.php" to my "no_access_notice.php". Based on your expertise, what would you recommend to do?
Thanks a lotttt!
Angel