Undefined subroutine is_valid_ipv4 when deleting addon domain

dolphyn

Well-Known Member
Nov 27, 2001
69
0
306
cPanel Access Level
Root Administrator
FYI ... When deleting an addon domain, I received the following error message:
(XID djj3u8) Undefined subroutine &Cpanel::Validate::IP::is_valid_ipv4 called at /usr/local/cpanel/Cpanel/SPF.pm line 117.

But I think the addon domain deleted okay, since I was able to set it up again under a new account.
CPanel v92.0.9
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,337
2,243
363
cPanel Access Level
Root Administrator
Hey there! If you were able to recreate the same domain on the system that would indicate it was completely removed. If that didn't happen, you would have received an error about remnants of the domain existing on the server.

I just deleted an addon domain on my personal machine which is also using version 92.0.9 and I didn't see that error. It may be a good idea to check the cPanel logs at /usr/local/cpanel/logs/error_log around the time you performed that work to see if there are any additional errors that would give you more details about why that error may have been shown.

Alternatively, if you can create and remove an addon domain and you reliably get that error, we'd be happy to take a look at the system if you submit a ticket to our team.