Author Topic: help with Plugin Global Address Book  (Read 21817 times)

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
help with Plugin Global Address Book
« on: June 17, 2012, 04:12:05 PM »
Hello.  I am hoping some of you can double check my php settings and point out any mistakes I may have....  I am not a programmer and know little php unfortunately.  I'm trying to setup webmail for my volunteer group and they're all waiting patiently for me!

I've got RoundCube 0.7.2 installed and working fine.  We need a global address book to share our common email addresses, so I installed the JohnDoh/Roundcube-Plugin-Global-Address-Book.  I downloaded the readily available version from the https://github.com/JohnDoh/Roundcube-Plugin-Global-Address-Book site but I can't find the version info so I hope it is the current and matching version to my RC.

I've done all the suggested changes to the php files and they look right to me.  I have an admin address *****@saanichsar.ca to manage the global list.

Any ideas?
Thanks for any help
Jason

from the main.inc.php:
// ----------------------------------
// PLUGINS
// ----------------------------------

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = ('globaladdressbook/globaladdressbook');

from the config.inc.php:
<?php

/**
 * GlobalAddressbook configuration file
 */

// the name of the dummy which holds the global address book, if the user does not exist it will be created
// the name can contain the following macros that will be expanded as follows:
//      %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not)
//      %h is replaced with the imap host (from the session info)
// eg. to create one global address book per domain: global_addressbook@%d
$rcmail_config['globaladdressbook_user'] = '[global_addressbook_user]';

// make global address book read only
$rcmail_config['globaladdressbook_readonly'] = false;

// allow groups in global address book
$rcmail_config['globaladdressbook_groups'] = true;

// global address book admin user
// admin user(s) can always add/edit/delete entries, overrides readonly
// either a single username, an array of usernames, or a regular expression, see README for more info
$rcmail_config['globaladdressbook_admin'] = '*****@saanichsar.ca';

// show addresses from the global address book in the auto complete menu when composing an email
$rcmail_config['globaladdressbook_autocomplete'] = true;

?>

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: help with Plugin Global Address Book
« Reply #1 on: June 17, 2012, 04:17:03 PM »
The plugin name in the plugins array is incorrect it should be just be "globaladdressbook".

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #2 on: June 17, 2012, 04:45:23 PM »
Thanks.  I had that previously but it wasn't working either. I've changed it back.  Still does not work.  Do I need to do something within RoundCube?  I don't see anything related to a global address book in settings or address book.  do I need to create it still?  I tried creating a "global" group within the Personal Address book of the admin email, but that doesn't appear in the other email address addressbooks.

// ----------------------------------
// PLUGINS
// ----------------------------------

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = ('globaladdressbook');

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: help with Plugin Global Address Book
« Reply #3 on: June 17, 2012, 04:48:43 PM »
Whats in your error log?

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #4 on: June 17, 2012, 04:58:19 PM »
[17-Jun-2012 16:55:58 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (POST /email/?_task=login&_action=login)
[17-Jun-2012 16:55:59 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail)
[17-Jun-2012 16:56:00 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=list&_mbox=INBOX&_refresh=1&_remote=1&_unlock=loading1339966560581&_=1339966560584)
[17-Jun-2012 16:56:00 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=getunread&&_remote=1&_unlock=0&_=1339966560604)

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: help with Plugin Global Address Book
« Reply #5 on: June 17, 2012, 05:01:59 PM »
Check this line: $rcmail_config['globaladdressbook_user'] = '[global_addressbook_user]';

It should be:
$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%d]';  ---> %d is replaced with the domain part of the username which is how I use it myself.
 
or

$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%h]';

You have none of those :)

Wondering why didn't you use plugin_manager?
« Last Edit: June 17, 2012, 05:05:15 PM by Yoni »

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #6 on: June 17, 2012, 05:10:57 PM »
I've changed it to

$rcmail_config['globaladdressbook_user'] = '[global_addressbook_user@saanichsar.ca]';

correct?  still not working.  Still getting the same errors in the error log.

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: help with Plugin Global Address Book
« Reply #7 on: June 17, 2012, 05:14:29 PM »
Please, change it to this (copy and paste):

$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%d]';

Thanks :)

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #8 on: June 17, 2012, 05:25:58 PM »
Sorry still no worky.

error log now:

I see many lines with ... plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php  Any concerns?


[17-Jun-2012 16:55:58 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (POST /email/?_task=login&_action=login)
[17-Jun-2012 16:55:59 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail)
[17-Jun-2012 16:56:00 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=list&_mbox=INBOX&_refresh=1&_remote=1&_unlock=loading1339966560581&_=1339966560584)
[17-Jun-2012 16:56:00 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=getunread&&_remote=1&_unlock=0&_=1339966560604)
[17-Jun-2012 16:57:01 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=check-recent&_mbox=INBOX&_list=1&_quota=1&_remote=1&_unlock=0&_=1339966620611)
[17-Jun-2012 16:58:00 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=check-recent&_mbox=INBOX&_list=1&_quota=1&_remote=1&_unlock=0&_=1339966680613)
[17-Jun-2012 16:58:50 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=logout)
[17-Jun-2012 17:06:42 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (POST /email/?_task=login&_action=login)
[17-Jun-2012 17:06:43 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail)
[17-Jun-2012 17:06:44 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=list&_mbox=INBOX&_refresh=1&_remote=1&_unlock=loading1339967204754&_=1339967204757)
[17-Jun-2012 17:06:45 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=mail&_action=getunread&&_remote=1&_unlock=0&_=1339967204758)
[17-Jun-2012 17:06:49 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=addressbook)
[17-Jun-2012 17:06:50 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=addressbook&_action=list&_source=0&_remote=1&_unlock=loading1339967210532&_=1339967210535)
[17-Jun-2012 17:06:53 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=settings)
[17-Jun-2012 17:06:56 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=settings&_action=edit-prefs&_section=addressbook&_framed=1)
[17-Jun-2012 17:07:55 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=settings&_action=keep-alive&_remote=1&_unlock=0&_=1339967274851)
[17-Jun-2012 17:08:51 -0400]: PHP Error: Failed to load plugin file /home/users/web/b1935/ipg.saradmin/email/plugins/globaladdressbook/globaladdressbook/globaladdressbook/globaladdressbook.php in /hermes/bosweb/web193/b1935/ipg.saradmin/email/program/include/rcube_plugin_api.php on line 196 (GET /email/?_task=logout)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: help with Plugin Global Address Book
« Reply #9 on: June 17, 2012, 05:28:12 PM »
Those error should mean the your plugin line in your main.inc.php still looks like this:
Code: [Select]
$rcmail_config['plugins'] = ('globaladdressbook/globaladdressbook');
it should look like this:
Code: [Select]
$rcmail_config['plugins'] = ('globaladdressbook');

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #10 on: June 17, 2012, 05:36:46 PM »
Those error should mean the your plugin line in your main.inc.php still looks like this:
Code: [Select]
$rcmail_config['plugins'] = ('globaladdressbook/globaladdressbook');
it should look like this:
Code: [Select]
$rcmail_config['plugins'] = ('globaladdressbook');

Just checked - It is correct $rcmail_config['plugins'] = ('globaladdressbook');

Another note if it matters - when setting up Roundcube I had to change defaulthost to set the default host to imap.ipage.com in the config/main.inc file.  Would any changes have to be made in any other files such as globaladdressbook.php?

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: help with Plugin Global Address Book
« Reply #11 on: June 17, 2012, 05:45:49 PM »
It is not finding the plugin for whatever reason, either wrong named or wrong location or both.

Quote
Another note if it matters - when setting up Roundcube I had to change defaulthost to set the default host to imap.ipage.com in the config/main.inc file.  Would any changes have to be made in any other files such as globaladdressbook.php?

try this then:

$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%h]';

Good luck :)


Edited:


I noticed that the path is actually confusing:

.../plugins/globaladdressbook/globaladdressbook/globaladdressbook/

It is looking for the plugin 2 folders further down? Have you checked your plugin's path?

/plugins/globaladdressbook/<all globaladdressbook files>


Start from scratch. That might help clear up confusions...

1- upload globaladdressbook plugin to .../plugins/globaladdressbook/
2- register the plugin BEFORE any other plugin in your main.inc.php just to be sure there is not other plugin conflicting:
$rcmail_config['plugins'] = ('globaladdressbook','etc_etc');
3- Try $rcmail_config['globaladdressbook_user'] = '[global_addressbook@%h]';
4 - Try $rcmail_config['globaladdressbook_user'] = '[global_addressbook@%d]';





« Last Edit: June 17, 2012, 05:58:10 PM by Yoni »

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #12 on: June 17, 2012, 06:23:08 PM »

Start from scratch. That might help clear up confusions...

1- upload globaladdressbook plugin to .../plugins/globaladdressbook/
2- register the plugin BEFORE any other plugin in your main.inc.php just to be sure there is not other plugin conflicting:
$rcmail_config['plugins'] = ('globaladdressbook','etc_etc');
3- Try $rcmail_config['globaladdressbook_user'] = '[global_addressbook@%h]';
4 - Try $rcmail_config['globaladdressbook_user'] = '[global_addressbook@%d]';

And to double check before I test it all out... is this also correct? I notice the example uses array and I'm not sure if I need to use brackets ()

$rcmail_config['globaladdressbook_admin'] = '****@saanichsar.ca';

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: help with Plugin Global Address Book
« Reply #13 on: June 17, 2012, 06:28:52 PM »
You want to use array:
Either
$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%d]';
or
$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%h]';

Offline medik8ed

  • Jr. Member
  • **
  • Posts: 13
Re: help with Plugin Global Address Book
« Reply #14 on: June 17, 2012, 06:33:59 PM »
You want to use array:
Either
$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%d]';
or
$rcmail_config['globaladdressbook_user'] = '[global_addressbook@%h]';

I want to set up one email account to act as an admin.  From the readme file:
 * If you wish give admin rights to multiple users then enter the usernames in
   an array like: array('admin1@domain.com', 'admin2@domain.com')

This option is further down in the file.