Resolving the File Attachment Conflict in Roundcube
Resolving the File Attachment Conflict in Roundcube
Introduction
If you see the following error when setting up Roundcube’s Enigma plugin for encryption the following article should solve the issue.
Error:
1
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:
1
/var/www/roundcube/config/config.inc.php
- Locate the
$config['plugins']
array and remove:1
filesystem_attachments: $config['plugins'] = array('enigma', /* other plugins */);
- Save the file and exit.
- Clear Roundcube’s cache to ensure the changes are applied:
1
php /var/www/roundcube/bin/cleardbcache
- Restart the web server:
1
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).
Last updated: $(date ‘+%B %Y’)
This post is licensed under CC BY 4.0 by the author.