Fatal errors in WHM after adding IP, WHM unusable

Ioan Sameli

Member
Jan 20, 2015
11
0
1
Shibuya, Tokyo, Japan
cPanel Access Level
Root Administrator
I've recently added an IP to my server, and since I get the following error on many of WHM pages:

whm-poops-itself.png

This happens on any page that attempts to show IP addresses, such as the "List Accounts" or "Create a New Account" page. It's highly problematic since, I basically can't do anything with WHM anymore.

What can I do to fix it? Can I manually edit some config files to remove the problematic IP?

- - - Updated - - -

Here's a copy / paste of the error message in the image above, if it's usedful:
Code:
A fatal error or timeout occurred while processing this directive.
Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
 at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
	Cpanel::NAT::Object::load_file(Cpanel::NAT::Object=HASH(0x5abb240)) called at /usr/local/cpanel/Cpanel/NAT/Object.pm line 27
	Cpanel::NAT::Object::new("Cpanel::NAT::Object") called at /usr/local/cpanel/Cpanel/NAT.pm line 20
	Cpanel::NAT::cpnat() called at /usr/local/cpanel/Cpanel/NAT.pm line 29
	Cpanel::NAT::get_public_ip("10.0.0.6") called at /usr/local/cpanel/Cpanel/SPF.pm line 99
	Cpanel::SPF::make_spf_string() called at whostmgr/bin/whostmgr5.pl line 1894
	main::_createacct_data() called at whostmgr/bin/whostmgr5.pl line 2046
	main::createacct() called at whostmgr/bin/whostmgr5.pl line 256
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

This can happen if /var/cpanel/cpnat is not syntactically correct. Try running the following command and let us know if it helps:

Code:
/scripts/build_cpnat
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I am happy to see that resolved the issue. Thank you for updating us with the outcome.