Roundcube stopped working - formbricks plugin
This morning Roundcube stopped working, the error in /var/cpanel/roundcub/log/error.log is as follows:
[16-Jan-2026 09:06:32 Europe/Amsterdam] PHP Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, null given in /usr/local/cpanel/base/3rdparty/roundcube/plugins/formbricks/formbricks.php:123
Stack trace:
#0 /usr/local/cpanel/base/3rdparty/roundcube/plugins/formbricks/formbricks.php(123): json_decode(NULL, true)
#1 /usr/local/cpanel/base/3rdparty/roundcube/plugins/formbricks/formbricks.php(89): formbricks->is_formbricks_enabled()
#2 /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube_plugin_api.php(520): formbricks->inject_formbricks(Array)
#3 /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcmail_output_html.php(831): rcube_plugin_api->exec_hook('render_page', Array)
#4 /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcmail_output_html.php(654): rcmail_output_html->parse('mail', false)
#5 /usr/local/cpanel/base/3rdparty/roundcube/program/include/rcmail.php(296): rcmail_output_html->send('mail')
#6 /usr/local/cpanel/base/3rdparty/roundcube/index.php(280): rcmail->action_handler()
#7 {main}
thrown in /usr/local/cpanel/base/3rdparty/roundcube/plugins/formbricks/formbricks.php on line 123
What could be the fix for this?
-
This solved the issue for us too. I did a chmod 000 on the pluggin to test and that worked.
Strange thing is: I have no logging for roundcube. It is via mysql and not sqlite, as there are no sqlite dbases in the /home/$user/etc/ folder.
Solved for now ...
0 -
You can check log_dir here;
$config['log_dir'] = '/var/cpanel/roundcube/log';
in /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php
0 -
Thanks for sharing that article!
0 -
Renaming the plugin directory worked for us, for now. If an update adds this back I hope it is resolved then.
mv /usr/local/cpanel/base/3rdparty/roundcube/plugins/formbricks /usr/local/cpanel/base/3rdparty/roundcube/plugins/formbricks.disabled
0 -
Only issue with renaming the plugin folder to formbricks.disabled is if routndcube does any sort of reinstall, it'll end up putting the folder back. Issue changing permissions is if the plugin gets a fixed update the upcp may not be able to apply the update. (presuming it's a script fix) The way I see it, the only viable fix is an updated script or an update that provides the missing json configuration so it doesn't get the error in the first place. For the record, QA failed on this one. No one tested it before release? Glaringly obvious this plugin breaks Roundcube. Makes me wonder what the development environment uses?
1
Please sign in to leave a comment.
Comments
6 comments