ERROR

ERROR: The PDO driver is unavailable!

Possible solutions:

1) Update PHP to 7.x
2) Check if the PDO driver is enabled.
3) If the PDO driver is enabled but you receive this message from the Admin screen, try adding these three lines to the admin/php.ini file:
extension=pdo.so
extension=pdo_sqlite.so
extension=pdo_mysql.so

If it\'s not possible to use PDO, you have to downgrade to HuMo-genealogy 4.9.4!
1) Download HuMo-genealogy 4.9.4 at: Sourceforge
2) Follow HuMo-gen installation instructions. '; exit(); } // *** Override the database connection values with environment variables *** $temp_db_value = getenv("MYSQL_DATABASE", true); if ($USE_ENV_FOR_DB && $temp_db_value != false && $temp_db_value != '') { $DATABASE_NAME=$temp_db_value; //$temp_db_value = getenv("MYSQL_HOST", true); //if ($USE_ENV_FOR_DB && $temp_db_value != false && $temp_db_value != '') { // $DATABASE_HOST=$temp_db_value; $DATABASE_HOST='mariadb'; $temp_db_value = getenv("MYSQL_USER", true); if ($USE_ENV_FOR_DB && $temp_db_value != false && $temp_db_value != '') { $DATABASE_USERNAME=$temp_db_value; } $temp_db_value = getenv("MYSQL_PASSWORD", true); if ($USE_ENV_FOR_DB && $temp_db_value != false && $temp_db_value != '') { $DATABASE_PASSWORD=$temp_db_value; } // *** Open database using PDO ** $conn = 'mysql:host='.$DATABASE_HOST.';dbname='.$DATABASE_NAME.';charset=utf8'; try { $dbh = new PDO($conn,$DATABASE_USERNAME,$DATABASE_PASSWORD); @$database_check=1; } catch (PDOException $e) { unset($database_check); if(!isset($ADMIN)) { echo '
Database is not yet installed! Possible problems:
- Login file not yet configured.
- Database not yet installed.
Go to the administration area to solve this problem.

De database is nog niet bereikbaar! Mogelijke oorzaken:
- Het login bestand is niet goed ingevuld.
- De database is nog niet gemaakt.
Ga naar het administratie scherm om dit probleem op te lossen.
'; exit(); } } } else{ // *** Open database using PDO ** //$conn = 'mysql:host='.DATABASE_HOST.';dbname='.DATABASE_NAME; $conn = 'mysql:host='.DATABASE_HOST.';dbname='.DATABASE_NAME.';charset=utf8'; try { //$dbh = new PDO($conn,DATABASE_USERNAME,DATABASE_PASSWORD,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); $dbh = new PDO($conn,DATABASE_USERNAME,DATABASE_PASSWORD); @$database_check=1; } catch (PDOException $e) { unset($database_check); //echo $e->getMessage() . "
"; if(!isset($ADMIN)) { echo '
Database is not yet installed! Possible problems:
- Login file not yet configured.
- Database not yet installed.
Go to the administration area to solve this problem.

De database is nog niet bereikbaar! Mogelijke oorzaken:
- Het login bestand is niet goed ingevuld.
- De database is nog niet gemaakt.
Ga naar het administratie scherm om dit probleem op te lossen.
'; exit(); } } } if (isset($database_check) and $database_check == 1) { // TODO improve genealogical dates in database, then remove this code. // *** Added in mar. 2022: disable NO_ZERO_DATE and NO_ZERO_IN_DATE. To solve sorting problems in genealogical dates. *** $dbh->query("SET SESSION sql_mode=(SELECT REPLACE( REPLACE(@@SESSION.sql_mode,'NO_ZERO_DATE','') ,'NO_ZERO_IN_DATE',''));"); // TODO improve queries, then remove this code. // *** Added in mar. 2023. To prevent double results in search results *** $dbh->query("SET SESSION sql_mode=(SELECT REPLACE( REPLACE(@@SESSION.sql_mode,'ONLY_FULL_GROUP_BY','') ,'NO_ZERO_IN_DATE',''));"); }