Error after UbuntuUpgrade

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
neilbenn
Posts: 1
Joined: 12 Oct 2016, 11:29

Error after UbuntuUpgrade

Post by neilbenn »

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
minmax
Posts: 1
Joined: 06 Apr 2017, 12:33

Re: Error after UbuntuUpgrade

Post by minmax »

I got the exact same problem, exact same error message. It happened when I switched from PHP 5.6 to PHP 7.0
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error after UbuntuUpgrade

Post by atrol »

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.
Please use Search before posting and read the Manual
Post Reply