Knowledgebase: Errors
Directive Processing Error
Posted by on 14 June 2012 01:33 PM

You receive an email stating:

Error: An Error Occurred While Processing This Directive

 

This is the most generic error message in cPanel. You might see this when a user account loads the cPanel main screen, or you might see it when performing any particular function in WHM. Fortunately, it's probably the easiest to diagnose and fix.

  1. Look at the logs

    You'll need to login to the server as root via SSH. You'll need to scan the cPanel error log for errors. You can usually use 'tail' to get the most recent error.

    tail -n 20 /usr/local/cpanel/logs/error_log

     

  2. You'll be looking for a line similar to:

    Can't locate Class/Std.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.7/x86_64-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/x86_64-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Lang/Cache/Utils.pm line 11

     

  3. That first bit, Can't Locate Class/Std.pm is the key; It's missing the 'Class::Std Perl module'

  4. Now you type:

    /scripts/perlinstaller Class::Std

     

    You can also use WHM to install Perl Modules, by going to Software and then Install a Perl Module.

    Once it's completed, then try your cPanel/WHM functions again. If you still receive the error, then you'll need to look for other Perl modules in the cPanel error_log and reinstall those too.

  5. Lather, rinse, repeat

(3 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion