I did some debug this morning and I found the path was wrong althoug the connexion to db did not fail in some cases in
public static function getDb () {
global $config;
if (is_null (self::$db)) {
try {
self::$db = new PDO('sqlite:'. $config['calibre_directory'] .'metadata.db');
// echo 'sqlite:'. $config['calibre_directory'] .'metadata.db';
} catch (Exception $e) {
echo $e;
die($e);
}
}
return self::$db;
}
Works fine now !
Thanks a lot for your work !
|