Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: localguru on April 28, 2010, 05:33:13 PM

Title: Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php
Post by: localguru on April 28, 2010, 05:33:13 PM
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:
Title: Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php
Post by: JohnDoh on April 29, 2010, 06:30:54 AM
what version of the plugin are you using?
Title: Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php
Post by: Tchyo on April 29, 2010, 06:32:37 AM
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.
Title: Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php
Post by: JohnDoh on April 29, 2010, 07:47:04 AM
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.
Title: Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php
Post by: localguru on April 29, 2010, 09:14:04 AM
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
Title: Sieverule plugin: Call to a member function connect() on a non-object in rcmail.php
Post by: localguru on April 29, 2010, 09:22:22 AM
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!