Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: chaser on October 29, 2021, 08:59:44 AM

Title: Upgrading to Global Address Book 2.01
Post by: chaser on October 29, 2021, 08:59:44 AM
Hi,

I recently tried upgrading from Global Address Book v1.11 to v2.01, but all the contacts disappear when I do that. If I revert back, they reappear. In the v2.01 config.inc.php file I've set the following to match the values in v1.11:

'name' => 'Global Addresses',
'user' => 'global_addressbook_user',

Can anyone tell me what I'm doing wrong?

Thanks
Title: Re: Upgrading to Global Address Book 2.01
Post by: JohnDoh on October 30, 2021, 05:46:14 AM
Check the users table in the database and see if there are 2 globaladdressbook users listed.
Title: Re: Upgrading to Global Address Book 2.01
Post by: chaser on October 31, 2021, 05:50:10 PM
Ah. I had the following 3 different users listed:

[global_addressbook_user]
_global_addressbook_user_
global_addressbook_user

I've updated the config.inc.php file to:

'user' => '[global_addressbook_user]',

which actually matched the username in the v1.11 config file (I had missed the square brackets when I had read it initially, duh) and that's fixed it! My contacts have re-appeared. Can I just delete the other two users from the table?

Edit 1: I've deleted the two unused global_addressbook_user entries from the table without any apparent issue!
Edit 2: I've corrected the 3 listed users in the table!

Thanks