stwa / google_addressbook

This plugin lets you sync your Google Addressbook in readonly mode with Roundcube.
GNU General Public License v3.0
39 stars 20 forks source link

sync-cli.sh Unsupported database driver #50

Open thoatswold opened 6 years ago

thoatswold commented 6 years ago

I have just installed the google_addressbook plugin using Composer. It all seemed to go well (except that I had to run the SQL/mysql.initial.sql file manually), and the plugin shows up in Roundcube's About window.

However, when I run /usr/share/roundcube/plugins/google_addressbook/sync-cli.sh I get the message:

ERROR: Configuration error. Unsupported database driver: (there is no database driver specified in the error message)

My system is as follows: Ubuntu 18.04 server (64-bit) PHP 7.2 mysql provided by MariaDB (mysql Ver 15.1 Distrib 10.1.29-MariaDB) Roundcube 1.3.6

Can anyone help to resolve this issue?

vgropp commented 4 years ago

This was already mentioned in #5

In Debian (and i guess ubuntu as well) it helps to set (edit sync-cli.sh) the INSALL PATH to '/var/lib/roundcube'

-define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../..') . '/' ); +define('INSTALL_PATH', '/var/lib/roundcube/' );