[FIX] Error messages on Spamassassin page in Plesk

Article ID: 1051 
Last Review: Oct,6 2008
Author: Oleg Beznosov
Last updated by: system APPLIES TO:
  • Plesk 7.5.6 for Windows

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


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields