Author Topic: Installation of plugins fails in RC 0.7.2  (Read 6888 times)

Offline pauLee

  • Jr. Member
  • **
  • Posts: 29
Installation of plugins fails in RC 0.7.2
« on: April 24, 2012, 05:55:42 AM »
Hello,

I´am a bit helpless regarding some plugins ...

In my main.inc.php I have addded the following plugins:

$rcmail_config['plugins'] = array('archive', 'vcard_attachments', 'contextmenu', 'additional_message_headers');

The only plugin which works is "archive", all the others don´t work although they are in the plugin folder. Did I miss something?

I have this problem with RC 0.7.2 (and 0.8 beta).

Are all the other plugins not compatible to RC 0.7.2?

Cheers, Tom

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Installation of plugins fails in RC 0.7.2
« Reply #1 on: April 24, 2012, 12:31:44 PM »
I recommend you to add settings, qtip, and jqueryui plugins to that list, also make sure to register these three before all others in your main.inc.php configuration file. Many plugins have dependency on these plugins.

You may wanna try Plugin Manager from MyRoundcube plugins by Rosali...  it is awesome.

Offline pauLee

  • Jr. Member
  • **
  • Posts: 29
Re: Installation of plugins fails in RC 0.7.2
« Reply #2 on: April 24, 2012, 02:42:57 PM »
You may wanna try Plugin Manager from MyRoundcube plugins by Rosali...  it is awesome.
Do you know if the Plugin Manager works with RC 0.8 beta? I could find a note and I´am not able to install and activate.

I used that guide --> http://unlockforus.com/roundcube/plugins/installation
« Last Edit: April 24, 2012, 05:13:01 PM by pauLee »

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Installation of plugins fails in RC 0.7.2
« Reply #3 on: April 25, 2012, 03:14:55 AM »
Plugin Manager is currently developed for 0.7.x compatibility only. It is not compatible with 0.8 yet. Roundcube 0.8 is still in Beta and this is the main reason I believe Plugin Manager hasn't been updated to work with it yet.

For 0.7.x it should work perfectly. I hope it helped you solve your issue.

Offline pauLee

  • Jr. Member
  • **
  • Posts: 29
Re: Installation of plugins fails in RC 0.7.2
« Reply #4 on: April 25, 2012, 06:23:05 AM »
Ok, I have made a step backwards in my test environment to version RC 0.7.2.

I have the following plugins in the plugin folder to work with the Plugin Manager

1. qtip - 1.1 @version 20.04.2012
2. global_alias @version 1.3 - 20.04.2012
3. plugin_manager @version 2.8.1 - 21.04.2012

This is the line of my config/main.inc.php:

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('global_config', 'plugin_manager');

I have duplicated the /plugins/plugin_manager/config.inc.php.dist to /plugins/plugin_manager/config.inc.php


But the Plugin Manager will not work. What else I need to do?

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Installation of plugins fails in RC 0.7.2
« Reply #5 on: April 25, 2012, 06:41:16 AM »
What isn't working for you?  I just can't figure it out   :)

You mentioned you have 3 plugins in your plugins folder... Make sure all default plugins from roundcube install are also there.

../plugins/
default_plugins
plugin_manager
qtip
global_alias
jqueryui


Install Plugin Manager (download from here: http://unlockforus.com/download?dl_cat=4)

In your list of active plugins leave only plugin_manager since you do not have global_config plugin in your plugin's folder.

#../config/main.inc.php

$rcmail_config['plugins'] = array(
'plugin_manager'
);

Make sure you define an administrator account in your plugin_manager config.inc.php

/* Admin Account */
$rcmail_config['plugin_manager_admins'] = array('youremail@yourdomain.com', 'admin2@yourdomain.com');

Login with your administrator account credentials into your Roundcube.
Username: youremail@yourdomain.com
password: your-password

Browse to Settings >> Manage Plugins >> Have fun :)

That's all it takes to have it loaded... Unless we are looking at the wrong place...

« Last Edit: April 25, 2012, 06:57:36 AM by Yoni »

Offline pauLee

  • Jr. Member
  • **
  • Posts: 29
Re: Installation of plugins fails in RC 0.7.2
« Reply #6 on: April 26, 2012, 03:54:24 AM »
You mentioned you have 3 plugins in your plugins folder... Make sure all default plugins from roundcube install are also there.

../plugins/
default_plugins
plugin_manager
qtip
global_alias
jqueryui

Yes I have all that plugins and a lot of more in the plugin folder.

Quote
#../config/main.inc.php

$rcmail_config['plugins'] = array('plugin_manager');

This is the solution. In my array I had also "global_config" because that plugin was in the plugin folder ... I removed it from the array and now it works.

Thank you very much for your help!

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Installation of plugins fails in RC 0.7.2
« Reply #7 on: April 26, 2012, 04:22:40 AM »
Glad you figured it out  ;D

global_config configuration file will be empty by default so it will not load any plugin configuration. For a guide on how to effectively use global_config see here: http://unlockforus.com/roundcube/plugins/global_config

Basically, you register only global_plugin and plugin_manager in your .../config/main.inc.php; then you copy each plugin's config.inc.php context into global_config config.inc.php... You can now delete all those extra config.inc.php files from all your plugins. This reduces file stats big time.

Think about having 30 plugins enabled without global_config. Every time there is a request to your server it has to go over 30 config.inc.php files for each one of your plugins... On the other hand, there is only 1 request to config.inc.php if global_config is been used.

Rosali (the programmer) did a great job reducing file stats with this plugin. I wouldn't run my Roundcube install without it.

Good luck with your Roundcube webmail :)

Offline pauLee

  • Jr. Member
  • **
  • Posts: 29
Re: Installation of plugins fails in RC 0.7.2
« Reply #8 on: April 26, 2012, 04:52:31 AM »
Thank you, thank you thank you Yoni for your explanation - very usefull!  :)


Cheers, Tom

Offline dannoz

  • Newbie
  • *
  • Posts: 4
Re: Installation of plugins fails in RC 0.7.2
« Reply #9 on: May 18, 2012, 01:46:34 PM »
I have a vanilla RC install.  I downloaded plugin-manager, installed it into the plugins directory.  I chown apache.apache -R the plugin_manager directory.

When added to the plugin array in the main config I get the following in the error_log

Call to undefined method pugin-manager::require-plugin() in /var/.../plugin_manager.php on line 70

What am I doing wrong?

----

I just realized that 'yum install roundcubemail' installs an older version... updating now...
« Last Edit: May 19, 2012, 02:19:32 PM by dannoz »

Offline dannoz

  • Newbie
  • *
  • Posts: 4
Re: Installation of plugins fails in RC 0.7.2
« Reply #10 on: May 19, 2012, 02:55:47 PM »

$rcmail_config['plugin_manager_admins'] = array('youremail@yourdomain.com', 'admin2@yourdomain.com');

Login with your administrator account credentials into your Roundcube.
Username: youremail@yourdomain.com
password: your-password

--------------------

The way my server is setup... it only requires a 'username' not a 'username@domain.com' login.  Will this prevent me from using plugin_manager?