View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031928 | mantisbt | db mysql | public | 2023-01-24 14:53 | 2023-05-30 15:42 |
Reporter | Rosek93 | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 2.25.5 | ||||
Summary | 0031928: Error on installation MantisBT 2.25.5 | ||||
Description | Stack:
I try downgrade MySQL to 5.7 Error:
EDIT (dregad): reformatted error stack trace with line breaks | ||||
Tags | patch, PHP 8.2 | ||||
Start working on stack: |
|
For the record, MantisBT does not officially support PHP 8.1 or later yet. This is due to the cross-dependency between ADOdb library and our minimum supported PHP version. MySQL 8 should be no problem though, I've been using it for many months. We're aware that an update of our minimum requirements is long overdue, but unfortunately the team has not had time to finalize the required work. Please bear with us. If you can reproduce the problem on PHP 8.0 / MySQL 8.0 or earlier, please let us know. |
|
Rosek93, You did not provide any feedback; I am therefore resolving this issue as "no change required". Please use a version of PHP supported by MantisBT. |
|
I can confirm this issue. Please note that the problem comes from SQL, not PHP in general: |
|
this is "just" due to: I assume this was an error which was caught through return value false of mysqli_query, which now raises an exception |
|
This patch at least makes mantis run on php 8.2: |
|
patch.txt (399 bytes)
--- vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php 2023-02-17 16:27:08.883074330 +0100 +++ /tmp/mantisbt-2.25.4/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php 2022-01-22 23:38:02.000000000 +0100 @@ -797,7 +797,7 @@ return $mysql_res; */ - mysqli_report(MYSQLI_REPORT_OFF); + if ($this->multiQuery) { $rs = mysqli_multi_query($this->_connectionID, $sql.';'); if ($rs) { |
|
@marc.kraemer Thanks for the patch. |
|
sure. But everyone who does the upgrade to php 8.2 will just see error 500. |
|