Can't locate object method "remove_for_virtual_host" via package xy

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Hello,

i restored one cpanel account using WHM restore function. I seen green ok messages

But when i visit that cpanel domain it redirects me to the hostname of the server.

So i tried to mdiffy cpanel account changing its domain and then changing back to original if issue will be fixed, but i got these errors:

mydomain.com => deleted from myhostname.
LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for mydomainn.com's mail.: This configuration has been manually selected.
Horde user data updated.
Updating FTP passwords for juqyczgl FTP password files updated. FTP vhost passwords synced
Domain name changed
Updating /etc/domainips, /etc/pure-ftpd
Restarting apache
Click to close.
mydomainnn.com => deleted from myhostname.
LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for mydomain.com's mail.: This configuration has been manually selected.
Horde user data updated.
Updating FTP passwords for juqyczgl FTP password files updated. FTP vhost passwords synced
Domain name changed
Updating /etc/domainips, /etc/pure-ftpd
Restarting apache
Click to close.
cPanel AutoSSL queue: Can't locate object method "remove_for_virtual_host" via package "Cpanel::SSL::Auto::Provider::cPanel::Queue" at /usr/local/cpanel/Whostmgr/Accounts/Modify.pm line 1492.
Click to close.
cPanel AutoSSL queue: Can't locate object method "remove_for_virtual_host" via package "Cpanel::SSL::Auto::Provider::cPanel::Queue" at /usr/local/cpanel/Whostmgr/Accounts/Modify.pm line 1492.
Im receiving same error when i try to modify also other domain on another cpanel.

# ls -lht /usr/local/cpanel/Whostmgr/Accounts/
total 60K
drwxr-xr-x 6 root root 4.0K Aug 20 09:28 ./
drwxr-xr-x 2 root root 4.0K Aug 11 04:35 Remove/
drwxr-xr-x 34 root root 4.0K Aug 11 04:35 ../
drwxr-xr-x 2 root root 4.0K Aug 9 04:37 Create/
drwxr-xr-x 3 root root 4.0K Aug 9 04:37 Suspension/
-rw-r--r-- 1 root root 4.5K Aug 9 04:36 Tiny.pm
-rw-r--r-- 1 root root 7.2K Aug 9 04:36 Shell.pm
-rw-r--r-- 1 root root 4.0K Aug 9 04:35 NameConflict.pm
-rw-r--r-- 1 root root 3.3K Apr 29 04:36 Email.pm
-rw-r--r-- 1 root root 2.5K Jun 17 2015 CommandQueue.pm
-rw-r--r-- 1 root root 1.4K Jun 17 2015 Unsuspend.pm
-rw-r--r-- 1 root root 2.4K Jun 17 2015 Suspend.pm
drwxr-xr-x 2 root root 4.0K Jun 19 2014 Unsuspend/
(Modify.pm not there)

The error from cpanel error_log:
[2016-08-20 09:25:12 +0000] warn [xml-api] Could not open “.htaccess” for editing: No such file or directory at /usr/local/cpanel/Cpanel/StringFunc.pm line 124.
Cpanel::StringFunc::regsrep(".htaccess", "\\bgoogle.com\\b", "mydomain.net", 1) called at /usr/local/cpanel/Whostmgr/Accounts/Modify.pm line 1341
Whostmgr::Accounts::Modify::__ANON__() called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/5.22.1/File/Find.pm line 447
...
/usr/local/cpanel/scripts/upcp and /scripts/upcp --force not fixed it

Please which commands can i do to discover/fix the issue please?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
So i tried to mdiffy cpanel account changing its domain and then changing back to original if issue will be fixed, but i got these errors:
Hello,

This is addressed in cPanel 58.0.24 with the following resolution:

Fixed case CPANEL-8099: Fix removal of cPanel AutoSSL queue entry on domain rename.

You can review the full change log, information on updating cPanel/WHM, and information on the build/release process at:

58 Change Log - Change Logs - cPanel Documentation
How can I update cPanel & WHM?
Product Versions and the Release Process - cPanel Knowledge Base - cPanel Documentation

Thank you.