pgrade Mantis version 2.19.0 to 2.25.7

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
macevedo
Posts: 3
Joined: 05 Sep 2023, 11:32

pgrade Mantis version 2.19.0 to 2.25.7

Post by macevedo »

I'm trying to upgrade Mantis version 2.19.0 to 2.25.7, and I get this error

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'schema()schema()' at line 5 in C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php:808 Stack trace: #0 C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php(808): mysqli_query(Object(mysqli), 'SELECT\n\t\t\tTABLE...', 0) #1 C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\adodb.inc.php(1282): ADODB_mysqli->_query('SELECT\n\t\t\tTABLE...', false) #2 C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\adodb.inc.php(1260): ADOConnection->_Execute('SELECT\n\t\t\tTABLE...', false) #3 C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\adodb.inc.php(2599): ADOConnection->Execute('SELECT\n\t\t\tTABLE...') #4 C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php(569): ADOConnection->MetaTables('TABLE', false) #5 C:\xampp824\htdocs\mantis2257\core\database_api.php(868): ADODB_mysqli->MetaTables('TABLE') #6 C:\xampp824\htdocs\mantis2257\core\database_api.php(506): db_get_table_list() #7 C:\xampp824\htdocs\mantis2257\core\config_api.php(82): db_table_exists('mantis_config_t...') #8 C:\xampp824\htdocs\mantis2257\core\lang_api.php(159): config_get('language_choice...') #9 C:\xampp824\htdocs\mantis2257\core\lang_api.php(124): lang_map_auto() #10 C:\xampp824\htdocs\mantis2257\core\error_api.php(164): lang_get_default() #11 [internal function]: error_handler(256, '-1', 'C:\\xampp824\\htd...', 92) #12 C:\xampp824\htdocs\mantis2257\core\error_api.php(92): trigger_error('-1', 256) #13 [internal function]: error_exception_handler(Object(mysqli_sql_exception)) #14 {main} thrown in C:\xampp824\htdocs\mantis2257\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php on line 808


I am using XAMPP as a server: xampp-windows-x64-8.2.4-0-VS16-installer
Attachments
Error
Error
ErrorMantisUpgrade.png (79.93 KiB) Viewed 15241 times
atrol
Site Admin
Posts: 8559
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: pgrade Mantis version 2.19.0 to 2.25.7

Post by atrol »

Looks like you are using PHP 8.2.
This is not supported in 2.25.x see https://www.mantisbt.org/bugs/view.php?id=32027.
So you have to use PHP 8.1 or wait until MantisBT 2.26.0 will be released.
Please use Search before posting and read the Manual
macevedo
Posts: 3
Joined: 05 Sep 2023, 11:32

Re: pgrade Mantis version 2.19.0 to 2.25.7

Post by macevedo »

Thank you very much, I am going to reduce the php version, and I will tell you how it went with this
macevedo
Posts: 3
Joined: 05 Sep 2023, 11:32

Re: pgrade Mantis version 2.19.0 to 2.25.7

Post by macevedo »

Hello, I used the XAMPP version "xampp-windows-x64-8.1.17-0-VS16-installer", and everything worked correctly, thank you very much for your help.
atrol
Site Admin
Posts: 8559
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: pgrade Mantis version 2.19.0 to 2.25.7

Post by atrol »

Thanks for the feedback.
Good to hear it's working for you.
Please use Search before posting and read the Manual
Post Reply