akoeb/amacube

Errors when running RC cleandb.sh

Closed this issue · 2 comments

there is an issue now with my rc cleandb.sh cron job:

[root@mail bin]# ./cleandb.sh
ERROR: [1062] Duplicate entry 'policy_user_' for key 'policy_idx_policy_name' (SQL Query: INSERT INTO policy (virus_lover,spam_lover,unchecked_lover,banned_files_lover,bad_header_lover,bypass_virus_checks,bypass_spam_checks,bypass_banned_checks,bypass_header_checks,spam_tag_level,spam_tag2_level,spam_tag3_level,spam_kill_level,spam_dsn_cutoff_level,spam_quarantine_cutoff_level,virus_quarantine_to,spam_quarantine_to,banned_quarantine_to,bad_header_quarantine_to,unchecked_quarantine_to,clean_quarantine_to,archive_quarantine_to,policy_name) VALUES ('N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '-999', '6', '12', '12', '20', '20', 'sql:', NULL, NULL, 'sql:', NULL, NULL, NULL, 'policy_user_'))
Fatal error: Call to a member function command() on null in /var/www/roundcubemail-1.1.1/plugins/amacube/amacube.php on line 500
[root@mail bin]#

what could that be caused by?

actually it seems any script which accesses the rc db throws an error when your plugin is enabled....i'm running rc v1.2rc

it's a shame. this plugin works fine but breaks any functions that right to / check rc mysql db. will discontinue its use now.