Configuring Cloudmin Information page generate error

i'm getting error:

Error - Perl execution failed

Undefined subroutine &virtual_server::master_admin called at /usr/libexec/webmin/virtual-server-theme/edit_right.cgi line 7.

after saving changes on "Configure this page" of "Cloudmin Information" page and try to re-open the configuration page again.

options that i changed are:

  • Uncheck Visible information: System
  • Default mode on left menu to Cloudmin
  • Show search box below left menu? to no
  • Apply to all users? to yes
  • Show Webmin tab on left menu? to Only for master administrator
Status: 
Active

Comments

Thanks for pointing this out - this will be fixed in the next theme package release.

can you give me a patch so i can fix my installation?

I can email you an updated package - which OS are you running your Cloudmin master on?

Actually, I have just released an updated theme package that includes this fix - you should see a prompt when logging into Cloudmin to install it, or you can SSH in as root and run yum install wbt-virtual-server-theme

i still get an error when accessing the page as system owner, it only show Error header without error message.

accessing as master admin work fine

Has the master admin granted system owners permission to use that page?

can you point out which permission i need to allow for system owner?

i couldn't find the permission you mentioned on system owner's Limits and restrictions, i tried to give all check marks but still getting error when trying to open Configure this page as system owner user.

another error that i found is (as master admin) when you edit Initial system information page content on Configure this page to Show URL with any URL, for example "https://www.google.com" or "http://www.virtualmin" then Cloudmin Information only show blank page, i suppose that it will show the web page supplied from the URL?

does this setting (changes by master admin) can be rolled to all system owners? it seems that each user have their own settings even though i choose Apply to all users? to yes

The root user should be able to click on "Configure this page", and change "Apply to all users?" to "No".

regarding the Apply to all users? i noticed that the system owner user have to logout and re-login to see the effect.

however i still can't get the Configure this page to work for system owner user

Odd, it works OK for me. Do you still see the same error message as soon as you click on the "Configure this page" link?

there no error message, it only show error title but the message part is blank.

another error that i found is (as master admin) when you edit Initial system information page content on Configure this page to Show URL with any URL, for example "https://www.google.com" or "http://www.virtualmin" then Cloudmin Information only show blank page, i suppose that it will show the web page supplied from the URL?

Can you try editing the file /etc/webmin/config and adding the line error_stack=1 at the end? Then re-try the "Configure this page" link as a system owner, and post the full error message that appears.

here is the error:

Call Stack Trace
File Line Function
/usr/libexec/webmin/virtual-server-theme/edit_right.cgi 7 WebminCore::error
(eval 36) 6 (eval)
/usr/libexec/webmin/miniserv.pl 2352 (eval)
/usr/libexec/webmin/miniserv.pl 909 miniserv::handle_request

Ok .. and can you also post the contents of the file /etc/webmin/virtual-server-theme/sections

global=1
novm2servers=
nowebmin=2
tab=vm2
nosearch=1
nosystem=
server=
list=0

Try changing global=1 to global=0

yes, that fix the problem. what does it do?

also the show URL on "Initial system information page content" option still doesn't work

The global setting in that file is what gets updated when you change "Apply to all users?" to "No" on the "Configure this page" page while logged in as root.

actually changing global=1 to global=0 doesn't really fix the error, because if i do set "Apply to all users?" to "Yes", system owner users will get the same error again

You should set "Apply to all users" to "No", which means that users are allowed to specify their own configs.

i set it to "yes" because i want to show the same information from an URL for all users. if this cause an error, then is it possible to remove the edit page link when master admin set the "Apply to all users" to "yes" on system owner account?

Good point - I'll fix that in the next release.