Hello,
I upgraded Ubuntu and this has broken my Mantis install; now when I try to access mantis I get the following error:
APPLICATION ERROR #400
Database connection failed. Error received from database was #0: PHP Support for database is not enabled.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
I've tried apt-get install php5-mysql and apt-get install php7-mysql but they are both reported to be up to date - does anyone have any suggestions about how to go about researching the problem? My mantis is quite old at version 1.2.19 but right now I don't even know where to find the logs!
Thanks in advance for your help.
Cheers,
Neil
Error after UbuntuUpgrade
Moderators: Developer, Contributor
Re: Error after UbuntuUpgrade
I got the exact same problem, exact same error message. It happened when I switched from PHP 5.6 to PHP 7.0
Re: Error after UbuntuUpgrade
Check setting $g_db_type in config_inc.php.
Is it 'mysql'? If so, change it to 'mysqli' as mysql is no longer supported in newer PHP versions.
Is it 'mysql'? If so, change it to 'mysqli' as mysql is no longer supported in newer PHP versions.