Resolving the File Attachment Conflict in Roundcube
If you see the following error when setting up Roundcube’s Enigma plugin for encryption the following article should solve the issue.
Error:
PHP Error: Can use only one plugin for attachments/file uploads! Using 'filesystem_attachments', ignoring others. in /var/www/roundcube/plugins/filesystem_attachments/filesystem_attachments.php
Steps to Fix:
- Open the main Roundcube configuration file:
nano /var/www/roundcube/config/config.inc.php
- Locate the
$config['plugins']
array and removefilesystem_attachments
:$config['plugins'] = array('enigma', /* other plugins */);
- Save the file and exit.
- Clear Roundcube’s cache to ensure the changes are applied:
php /var/www/roundcube/bin/cleardbcache
- Restart the web server:
sudo systemctl restart apache2
Why This Happens
- The
filesystem_attachments
plugin and the Enigma plugin both attempt to manage file uploads, leading to a conflict. - By disabling the
filesystem_attachments
plugin, Enigma can properly handle attachments, such as encrypted keys or messages.
Alternative
If you absolutely need the filesystem_attachments
plugin:
- Review its documentation to see if you can configure it to coexist with the Enigma plugin.
- Alternatively, consider modifying one of the plugins to prioritize its behavior (this may require advanced customization).
0 Comments