I noticed this is in the code, so rather than edit every line in the code, just add this to backend/functions.php. This is for mysqli for TTv3, not PDO
function sqlerr($file = __FILE__, $line = __LINE__) {
global $DBconnector; // $DBconnector mysqli connection TTv3
$error = $DBconnector->error;
error_log("SQL error in $file on line $line: $error");
die("An error occurred while executing the query. Please try again later.");
}
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
