Theme Causing Error when using Cloudmin

After upgrading several packages today, including virtual-server-theme, I'm seeing this error upon logging into Virtualmin:

Undefined subroutine &server_manager::get_managed_server called at /usr/share/webmin/virtual-server-theme/right.cgi line 137

If I comment out lines 136-140 in right.cgi, everything works fine.

Looking in the Cloudmin code, it appears there is no function named "get_managed_server".

Status: 
Closed (fixed)

Comments

Which Cloudmin version are you running? If sounds like you may have a very old release .. and the theme assumes a more recent one.

Aha! You're right. I see this user has Cloudmin installed via the Webmin .wbm module, not a RPM/DEB package.

Which leads to a related question -- if I perform a search, I can find the "Upgate Webmin" screen, and I can use the "Update modules" tab to upgrade Cloudmin.

However, I can't find where that's actually located in the control panel.

How would a person navigate to that screen? (without using a search)

That page is actually disabled when using Virtualmin - normally it appears at Webmin Configuration -> Upgrade Webmin. But Virtualmin's package updates module supercedes it, so it is set to be invisible by the Virtualmin install script.

He would be better off setting up the proper YUM / APT repo for Cloudmin, and installing the latest module that way.

Okay, moving it to apt is certainly an option.

How would you recommend converting from a .wbm module to using the .deb package without losing any of the existing data?

What I'd recommend is :

1) Add the Cloudmin repo to /etc/apt/sources.list

2) Delete /usr/share/webmin/server-manager

3) apt-get install webmin-server-manager

This will preserve the configs in /etc/webmin/server-manager

The sources.list entry should be like :

deb http://$SERIAL:$KEY@cloudmin.virtualmin.com/debian binary/