The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email Setup - Mail Error
#3
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
  Reply


Messages In This Thread
Email Setup - Mail Error - by Angel - 09-12-2016, 02:25 PM
Email Setup - Mail Error - by mudmin - 09-12-2016, 02:41 PM
Email Setup - Mail Error - by Angel - 09-14-2016, 12:44 PM
Email Setup - Mail Error - by brian - 09-14-2016, 12:56 PM
Email Setup - Mail Error - by Angel - 09-14-2016, 01:04 PM
Email Setup - Mail Error - by Angel - 09-14-2016, 01:12 PM
Email Setup - Mail Error - by brian - 09-14-2016, 01:14 PM
Email Setup - Mail Error - by brian - 09-14-2016, 01:23 PM
Email Setup - Mail Error - by Angel - 09-14-2016, 01:34 PM
Email Setup - Mail Error - by firestorm - 09-14-2016, 03:17 PM
Email Setup - Mail Error - by brian - 09-14-2016, 05:05 PM
Email Setup - Mail Error - by tudtude - 10-06-2016, 04:05 AM
Email Setup - Mail Error - by brian - 10-06-2016, 01:05 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)