当我尝试使用xampp安装postgres时,我得到了弃用的构造函数错误。虽然我能够解决这些问题,但我无法解决下面的问题。请帮助解决这个问题。
Fatal error: Uncaught Error: Call to undefined method ADORecordSet_postgres7::ADORecordSet_postgres64() in C:\xampp\phppgadmin\libraries\adodb\drivers\adodb-postgres7.inc.php:220 Stack trace:
#0 C:\xampp\phppgadmin\libraries\adodb\adodb.inc.php(1055): ADORecordSet_postgres7->__construct(Resource id #19, 2)
#1 C:\xampp\phppgadmin\libraries\adodb\adodb.inc.php(1015): ADOConnection->_Execute('select version(...', false)
#2 C:\xampp\phppgadmin\libraries\adodb\adodb.inc.php(1427): ADOConnection->Execute('select version(...', false)
#3 C:\xampp\phppgadmin\libraries\adodb\drivers\adodb-postgres64.inc.php(129): ADOConnection->GetOne('select version(...')
#4 C:\xampp\phppgadmin\libraries\adodb\drivers\adodb-postgres64.inc.php(697): ADODB_postgres64->ServerInfo()
#5 C:\xampp\phppgadmin\libraries\adodb\adodb.inc.php(525): ADODB_postgres64->_connect('host='localhost...', ''postgres'', ''password'', ''template1'')
#6 C:\xampp\phppgadmin\classes\database\Connection.php(42): ADOConnection->Connect('localhost:5432:...', 'postgres', ' in C:\xampp\phppgadmin\libraries\adodb\drivers\adodb-postgres7.inc.php on line 220
答案 0 :(得分:0)
您还应该通过替换
来更改adodb-postgres7.inc.php中的构造函数function __construct()
与
var selectedFile = $("#btnUploadStaticPdf").files;
var fileToLoad = selectedFile[0];
var fileReader = new FileReader();
var base64 = fileReader.readAsDataURL(fileToLoad);
...
data: {
sendDate: sendDate,
dueDate: dueDate,
startDate: startDate,
endDate: endDate,
...
pdf: base64
}