An error occurred while processing this directive

From CPanelDirect

Jump to: navigation, search

The problem. Cpanel shows a strange error like it is having major internal problems, like:

[an error occurred while processing this directive]

or

Unable to understand response from admin bin

It may also look like this in the error_log, or on screen of cpanel.

isdedicatedip() requires one argument (this probably means a domain is missing from httpd.conf) 
at /usr/local/cpanel/Cpanel/DIp.pm  line 38 Cpanel::DIp::isdedicatedip(undef) 
called at /usr/local/cpanel/Cpanel/ExpVar.pm line 186 Cpanel::ExpVar::expvar('$hasdedicatedip') called at cpanel.pl line 1763  
main::execiftag('<cpanelif $hasdedicatedip') called at cpanel.pl 
line 4362 main::ifresult('$hasdedicatedip') called at /usr/local/cpanel/Cpanel/Branding.pm line 757   
Cpanel::Branding::api2_applist('nvarglist', ) called at (eval 124) 
line 1 eval '$dataref = [Cpanel::Branding::api2_applist(%CFG)];' called at cpanel.pl line 4638 main::api2_exec
('Branding', 'applist', 'HASH(0x9911010)', 'HASH(0x9163e88)') called at cpanel.pl 
line 1280 main::cpexectag('<?cp Branding::applist([div id="%" class="itembox"]^J [div id="%...') called at cpanel.pl line 4437
 main::dotag(undef) called at cpanel.pl line 4326 
main::cpanel_parseblock('SCALAR(0x978982c)') called at cpanel.pl 
[an error occurred while processing this directive]

Additionally it may show

Unable to understand response from admin

Fixing the Error

This is a very easy fix. As root in SSH run

touch /var/cpanel/skipparentcheck

Or select

Allow cpanel and admin binaries to be run from other applications besides the cpanel server (cpsrvd).

In WHM->Tweak Settings

and the problem is resolved.

Personal tools