Roundcube Community Forum

Release Support => Requests => Topic started by: hiteck on October 12, 2010, 12:11:00 PM

Title: Error with plugin virtuser_query
Post by: hiteck on October 12, 2010, 12:11:00 PM
Hi all!
I setup this $rcmail_config['plugins'] = array('virtuser_query');

I retrieve this error:
[Tue Oct 12 18:07:57 2010] [error] [client *.*.*.*] PHP Fatal error:  Cannot redeclare class virtuser_query in /var/www/webmail/plugins/virtuser_query/virtuser_query.php on line 70

Then the script fall!

I got postfix-dovecot-spamassassin-postfixadmin correctly installed and obv roundcube with mysql fault!

Any suggestion?
Tx a lot!
Title: Plugin
Post by: JohnDoh on October 12, 2010, 12:58:33 PM
can you compare your copy of the file with the one here /trunk/plugins/virtuser_query/virtuser_query.php ? Roundcube Webmail (http://trac.roundcube.net/browser/trunk/plugins/virtuser_query/virtuser_query.php), sounds like something has just gone a bit wrong.
Title: Plugin
Post by: hiteck on October 13, 2010, 05:51:39 AM
I changed with the linked version but the error is still the same but on line 116... the end of the script!

[13-ott-2010 11:45:29] PHP Fatal error:  Cannot redeclare class virtuser_query in /var/www/webmail/plugins/virtuser_query/virtuser_query.php on line 116

Please can u tell me the correct use of
Quote$rcmail_config['virtuser_query'] = array('email' => '', 'user' => '', 'host' => '');

because in v 0.3.1 i got
Quote$rcmail_config['virtuser_query'] = 'SELECT password FROM postfixadmin.mailbox WHERE username = %u AND active = 1';

tx for advice!
Title: Plugin
Post by: alec on October 13, 2010, 07:09:37 AM

$rcmail_config['virtuser_query'] = array(
    'email' => 'SELECT password FROM postfixadmin.mailbox WHERE username = %u AND active = 1',
    'user' => '',
    'host' => ''
);

However old syntax is still supported.
Title: Plugin
Post by: hiteck on October 13, 2010, 10:46:37 AM
Error still remaine!
PHP Fatal error: Cannot redeclare class virtuser_query in /var/www/webmail/plugins/virtuser_query/virtuser_query.php on line 116

there are no errors if i disable the plugin ... but then i can't login!
Please give me the right input ;)

ADDE: the error is the same for all the plugins added in array!!!