priyadi / roundcube-converse.js-xmpp-plugin

XMPP plugin for Roundcube Webmail based on converse.js
48 stars 18 forks source link

I got error "Cannot redeclare class Auth_SASL" #31

Closed rstefko closed 10 years ago

rstefko commented 10 years ago

There should be "require_once 'Auth/SASL.php';" in XmppPrebind.php instead of just require statement.

markuman commented 10 years ago

Got the same and converse plugin still works. BUT, managesieve plugin failed hard when converse plugin is enabled.

PHP Fatal error:  Cannot redeclare class Auth_SASL in /srv/http/mail/program/lib/Auth/SASL.php on line 49
priyadi commented 10 years ago

Sorry for my late response.

This is regression introduced by last update. The problem is that both Roundcube and our prebind library ship Auth/SASL, and Roundcube autoloads it. This would make the plugin fails when Roundcube already autoloaded it.

I've committed the fix. It should be OK now.