Symptoms
The following error message is displayed on the Spamassassin page in Plesk:SpamAssassin() constructor failed: Action features failed: Object reference not set to an instance of an object.
---------------------- Debug Info -------------------------------
0: C:\\Program Files\\SWsoft\\Plesk\\admin\\htdocs\\server\\spamassassin.php:12 psaerror(string "SpamAssassin() constructor failed: Action features failed: Object reference not set to an instance of an object.")
Resolution
Such error may occur if the configuration file of %plesk_bin%\spammng.exe tool located in %plesk_bin%spammng.exe.config is incorrect Content of the configuration file needs to be replaced with the following code (notepad.exe can be used to change the file)<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="components" type="PleskService.ComponentSectionHandler, PleskService" />
</configSections>
<components>
<component name="SpamFilter" type="SpamAssassin.StandaloneSpamAssassinComponent, SpamAssassin" />
<!--
<component name="SpamFilter" type="SpamAssassin.MerakSpamAssassinComponent, SpamAssassinMerak" />
-->
</components>
</configuration>
Keywords: SpamAssassin error constructor failed Object reference not set to an instance of an object