Undefined subroutine &virtual_server::can_create_master_servers

the system after the update (apt-get upgrade)

https://virtualminaddress:10000/left.cgi?mode=virtualmin

Login: root
No virtual servers created.
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.590 Connection: close
Error - Perl execution failed

Undefined subroutine &virtual_server::can_create_master_servers called at /usr/share/webmin/virtual-server-theme/left.cgi line 324.


commandline

root@hostname:~# virtualmin delete-domain --domain example.net
Deleting virtual server example.net
Undefined subroutine &useradmin::passfiles_type called at /usr/share/webmin/useradmin/user-lib.pl line 104.


system information

root@hostname:~# cat /etc/debian_version
5.0.10

root@hostname:~# perl -v
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

root@hostname:~# dpkg -l | grep virtualmin
ii virtualmin-base 1.0-29
ii webmin-virtualmin-awstats 4.7
ii webmin-virtualmin-dav 3.5
ii webmin-virtualmin-htpasswd 2.5
ii webmin-virtualmin-mailman 6.1
ii webmin-virtualmin-svn 4.9
root@hostname:~# dpkg -l | grep webmin
ii webmin 1.590
ii webmin-security-updates 4.4
ii webmin-virtual-server 3.93.gpl
ii webmin-virtual-server-theme 8.5
ii webmin-virtualmin-awstats4.7
ii webmin-virtualmin-dav 3.5
ii webmin-virtualmin-htpasswd 2.5
ii webmin-virtualmin-mailman 6.1
ii webmin-virtualmin-svn 4.9

Howdy,

Note that Debian 5 has reached it’s end of life, and we’d highly recommend upgrading to a current distribution.

However, that’s not the cause of the problem you’re seeing there.

Try giving Webmin a restart, which you can do with this command:

/etc/init.d/webmin restart

After that, does that error go away?

-Eric

I restarted the machine
did not change
the same error

It was happen today after an update. Restarting the box didn’t fix the problem … I run CentOS…
Full error message is:
No virtual servers created.
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.590 Date: Sat, 25 Aug 2012 10:14:43 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed

Undefined subroutine &virtual_server::can_create_master_servers called at /usr/libexec/webmin/virtual-server-theme/left.cgi line 324.

Fixed based on http://www.virtualmin.com/node/8022 readings… Tks DavidLaw…

https://localhost:10000/virtual-server/remote.cgi

Module Index
Error
The Virtualmin Virtual Servers (GPL) module is not available on your system

downgrade version

/etc/webmin/config

os_type=

change

os_type=debian-linux

add

real_os_type=Debian Linux
real_os_version=5.0

/etc/init.d/webmin restart