Unknown database type '(Ubuntu)'
Brought to you by:
jberanek
I just installed mrbs 1.11 using PHP8.2, I have a few problem, after I enable SAML authentication using SimpleSAMLPHP 2.0.4. When I click login I have the following error message
E_USER_NOTICE in /var/www/html/mrbs/web/lib/MRBS/DB_mysql.php at line 403
Unknown database type '(Ubuntu)'.
Using the db$ (mysql) credential from config.inc.php through the terminal, and is working.
This is a known bug and already fixed in the latest development code which you can find here. Follow the green Code button and treat it like an upgrade.
which code i needed to upgrade after i clicked that link from github?
i guess is here ?
Download the complete set of files by following the green "Code" button and then treat it like a new release. Follow the instructions in the UPGRADE document.
Hi, I already downloaded the green Code and follow the UPGRADE, the problem still persist.
Could you run the attached test program please in your MRBS folder (ie at the same level as config.inc.php) and post the output here? It should be something like:
but obviously changed for Ubuntu.
8.0.33-0ubuntu0.20.04.2
Thanks. I was expecting two lines of output. Can you post a screenshot please?
Here is the screen shot
Thanks. Could you run the attached, enhanced, diagnostic program in the MRBS folder again please and post the output?
Here is the screenshot
Last edit: ZelCole 2023-06-07
Thanks. Could you try replacing your version of lib/MRBS/DB_mysql.php with the attached file and see if it solves the problem?
Hi, I got another error from Session.php
Good. It looks like the database problem is now fixed. I have committed the change in 6bf8f15.
The locale message is appearing because it looks like you don't have the 'en-US' locale installed on your server. Can you run
locale -aon your server to see what locales are installed and post it here?I have now fixed the uncaught exception in 8035319.
C.UTF-8
You need to install the en-US locale on your server.
i already set the locale into en-US.UTF-8, the problem still occurs.
What does
locale -agive now?C
C.UTF-8
en_US.utf8
Could you run the attached test program please and post the output here? It should look something like:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
Output from test_locale.php
en-US.UTF-8: bool(false)
en-US.utf-8: bool(false)
en-US.utf8: bool(false)
en-US: bool(false)
en_US.UTF-8: bool(false)
en_US.utf-8: bool(false)
en_US.utf8: bool(false)
en_US: bool(false)
Could you try restarting PHP and see if that makes a difference?