Roundcube Community Forum

 

Problem installing plugin

Started by schnux, February 04, 2010, 08:42:20 AM

Previous topic - Next topic

schnux

Hi at all,

I suppose it's a quite stupid simple problem but I just can't get it to work.

I've downloaded the plugin contextmenu.tar-gz, and unpacked it into /plugins/
so that it looks like:

/plugins# ls -al contextmenu/
total 68
drwxr-x---  4 vsftpd www-data  4096 Nov 12 09:22 .
drwxr-x--- 23 vsftpd www-data  4096 Feb  4 14:14 ..
-rwxr-x---  1 vsftpd www-data  1466 Oct 29 08:55 CHANGELOG
-rwxr-x---  1 vsftpd www-data  1940 Oct  6 12:44 README
-rwxr-x---  1 vsftpd www-data 13367 Oct  4 18:32 contextmenu.js
-rwxr-x---  1 vsftpd www-data 10819 Nov  8 12:35 contextmenu.php
-rwxr-x---  1 vsftpd www-data 10901 Nov 12 09:22 jquery.contextMenu.js
-rwxr-x---  1 vsftpd www-data  1171 Sep 16 22:32 jquery.mousewheel.js
drwxr-x---  2 vsftpd www-data  4096 Nov  8 19:14 localization
drwxr-x---  3 vsftpd www-data  4096 Jun  9  2009 skins


and changed the main.inc.php to:

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

Now. I open my roundcube login page and the whole page is blank white.
Apache Error log sais:
PHP Fatal error:  Call to undefined method contextmenu::local_skin_path() in /home/www/mail/plugins/contextmenu/contextmenu.php on line 59

contextmenu.php, line 59:
$this->include_stylesheet($this->local_skin_path() . '/contextmenu.css');

The file contextmenu.css is in /plugins/contextmenu/skins/default/

Thanks a lot for some help :-)

schnux

additional information:
I changed the Line to the full path :

$this->include_stylesheet('/home/www/mail/plugins/contextmenu/skins/default/contextmenu.css');
Now Roundcoube works again, but the contextmenu is totally wrong (just appeares all the time transparent in the upper left corner and doesnt work), that's not really a good solution ;-)

schnux

My Roundcube Version: 0.3-stable

schnux

Ok it was just a version mismatch. I just installed Roundcube 0.3.1 and it works fine now :-)