CSF Internal Server Error signal: 9

Post Reply
drkmitchell
Junior Member
Posts: 1
Joined: 11 Aug 2016, 16:04

CSF Internal Server Error signal: 9

Post by drkmitchell »

Hello, anyone knows what is this happening?

tail -f /usr/local/cpanel/logs/error_log

"trim_html" is not exported by the Cpanel::StringFunc::Trim module
Can't continue after import errors at /usr/local/cpanel/Whostmgr/HTMLInterface/Output.pm line 8.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/HTMLInterface/Output.pm line 8.
Compilation failed in require at /usr/local/cpanel/Whostmgr/HTMLInterface/Exec.pm line 12.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/HTMLInterface/Exec.pm line 12.
Compilation failed in require at /usr/local/cpanel/Whostmgr/HTMLInterface.pm line 14.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/HTMLInterface.pm line 14.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi line 24.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi line 24.
Internal Server Error: "GET /cpsess8541524684/cgi/addon_csf.cgi HTTP/1.1" 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi) with exit signal: 9
adenizc
Junior Member
Posts: 1
Joined: 13 Sep 2016, 18:57

Re: CSF Internal Server Error signal: 9

Post by adenizc »

Hello,

I had same problem. I have solved with below changes.

close some lines in
/usr/local/cpanel/Whostmgr/HTMLInterface/Output.pm

Code: Select all

package Whostmgr::HTMLInterface::Output;

# cpanel - Whostmgr/HTMLInterface/Output.pm              Copyright(c) 2009 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

#deniz closed 13.09.2016 #use Cpanel::StringFunc::Trim qw/trim_html/; 

sub print2anyoutput {
    my $data = shift;
    if ( ref $data eq 'GLOB' ) { die "GLOB passed to print2anyoutput"; }
    #deniz closed 13.09.2016#if ( -t STDOUT || !defined $ENV{'GATEWAY_INTERFACE'} || $ENV{'GATEWAY_INTERFACE'} !~ /CGI/i ) { 
    #deniz closed 13.09.2016#    $data = Cpanel::StringFunc::Trim::trim_html($data); 
    #deniz closed 13.09.2016#} 
    print $data;
}

1;
Post Reply