I had the same problem because was stupid enough not check if the plugin version was compatible with imscp 1.2.2
After getting the a.m. error I was not able to deactivate or uninstall the plugin.
Now we have updated the system and imscp 1.2.9 is installed but the plugin still shows an error and cannot be deactivated or uninstalled.
When I installed the plugin on i-mscp 1.2.2 the error was not there right from the beginning but after saving the configuration file and updating the plugin.
I tried to make a fresh upload of the plugin ... unfortunately to no avail.
What I did was (now on i-mscp 1.2.9):
Deleting the plugin
Deleting the plugin in the database
After a fresh upload everything seems fine until I click on the green button to install the plugin then it says
Plugin::SpamAssassin::_updateSpamassassinRules: can't resolve "config" to address at /usr/lib/perl5/Net/DNS/Resolver/Base.pm line 776.
Now I am stuck and any help would be much appreciated, thanks!