Roundcube Community Forum

 

Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php

Started by localguru, April 28, 2010, 05:33:13 PM

Previous topic - Next topic

localguru

Hi,

I'm using Roundcube 0.3.1-3~bpo50+1 on debian/lenny with cyrus 2.2.13 and php 5.2.6 and get this error:

[28-Apr-2010 22:55:29] PHP Fatal error:  Call to a member function connect() on a non-object in /usr/share/roundcube/program/include/rcmail.php on line 408

The "Advanced editor" is working and creating scripts in the users sieve spool under /var/spool/sieve/.

private $cache in /var/lib/roundcube/plugins/sieverules/rcube_sieve.php is set to false.

When I click on the "New filter" button I get the above error.

And ideas?

Ciao,
Marcus :confused:

JohnDoh

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Tchyo

It's only a quick fix solution, I guess, but I managed to solve the problem by adding this between lines 407 and 408.

if(!$this->imap) $this->imap_init();

Works like a charm now.

I was using the last version referenced in the plugin repository when I ran into this issue.

JohnDoh

well as it says on the webpage, the zip/tar.gz archives contain the version for the 0.4-beta release of RC and in the git Repo you'll find a version which works with the svn-trunk version of RC.

if you are running 0.3.1 or anything else then you need to look in the branches section in the repo to find an old version of the plugin which is compatible.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

localguru

Quote from: Tchyo;27148It's only a quick fix solution, I guess, but I managed to solve the problem by adding this between lines 407 and 408.

if(!$this->imap) $this->imap_init();

Works like a charm now.

I was using the last version referenced in the plugin repository when I ran into this issue.

That's working. Great! :D

localguru

Quote from: JohnDoh;27146what version of the plugin are you using?

I've downloaded the code directly from the GitHub repository yesterday. Last changelog entry is from "2010 04 24 (Add support for date extension)".

Ciao!