Webmin Update 1.810 on 08/10/2016 causing PERL issues with Bind

Good Day,

Today I received an update to Webmin. After installing I am receiving perl errors when changing DNS records. I was able to add name.domain.tld but it doesnt actually resolve. I tried to remove it and receive the following error:

Error - Perl execution failed

Can't use an undefined value as an ARRAY reference at records-lib.pl line 972.

Also when looking at DNS if I click on "ALL" to see all records I get this error now:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.810 Date: Wed, 10 Aug 2016 15:28:38 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Error - Perl execution failed Can't use an undefined value as an ARRAY reference at /usr/share/webmin/bind8/edit_recs.cgi line 149.

LINE 149 READS: my @hmap = @{$hmap{$in{'type'}}};

These issues happened immediately after the upgrade. I am running on ubuntu 14.04 LTS and webmin 1.810, virtualmin 5.04 and authentic theme 18.10. This is a 4 week old box with no alterations but a redirect for webmail and some ssl config. Unfortunately for a paid pro account I find every update has broken something causing hours of research. I'm quickly coming to the realization that virtualmin is not a product for production use as much as I want it to be :(

After some research I see updates to webmin have caused these type of issues in the past but this issue has crippled DNS! Please figure this out and possibly retract this update before damaging others...



Title: Webmin Update 1.810 on 08/10/2016 causing issues » Webmin Update 1.810 on 08/10/2016 causing PERL issues with Bind
Body: View changes

Does this only happen if you click on ALL DNS records? You should still be able to edit records of some other type..

did update last night and got same error this morning. please let me know if you have a fix.

Joe's picture
Submitted by Joe on Thu, 08/11/2016 - 00:23 Pro Licensee

This one is my fault. I recently converted the BIND module to include "use strict;" and "use warnings;" which helps us find and avoid some kinds of bugs, but apparently introduced a new one.

There will be a new release shortly with this patch, assuming it corrects the problem.

Joe's picture
Submitted by Joe on Thu, 08/11/2016 - 14:41 Pro Licensee

Assigned: Unassigned »
unborn's picture
Submitted by unborn on Thu, 08/11/2016 - 15:51 Pro Licensee

...hi guys.. This maybe be helpful to someone perhaps, I dont know but I just updated my install (running on debian) and was able to create subdomain and domain and it all works (same version of virtualmin, webmin. Basically it did not gave me any error and domain is pointing properly as it supposed to do.

Yes, this bug only seems to happen when using the Webmin BIND module directly.

The patch mentioned above does not seem to solve this error. I'm still having Error - Perl execution failed when editing spf records.

We've just released a BIND module update that fixes this and the other errors. You should be prompted to install it when logging into webmin within the next few hours.


Can you advise when you will be posting a fix for this for Ubuntu 16.04.


The fix should be available for all operating systems already, and you should be prompted to install it when logging into Webmin or Virtualmin.

Me too I still didn't receive an update for this on my server Centos 64bit 6.8.

I have just checked all three of my servers and no updates are found.

Do you have a downloadable fix that can be installed?

Sorry, found the update on http://www.webmin.com/updates.html and installed, however when selecting any slave zone I still get: Can't use an undefined value as a symbol reference at records-lib.pl line 111.

I also updated to 1.81.0 and still get the error when adding new virtual servers. It appears as the master tries to update bind on an associated slave and create the slave zone.

Adding slave zone on dns2.itbuilder.co.uk .. .. BIND DNS domain failed! : Can't use string ("dns2.itbuilder.co.uk") as an ARRAY ref while "strict refs" in use at /usr/libexec/webmin/bind8/bind8-lib.pl line 2670..

Netiquity - what do you mean by "selecting a slave zone"? Just clicking on it from the zones list, or when showing records?

So I am a little confused. It doesn't appear that this update shows up if you've installed from rpm ---


yes, if I go to Servers > Bind DNS Server and then click on any slave zone in the list then I get:

Error - Perl execution failed Can't use an undefined value as a symbol reference at records-lib.pl line 111.

If I click on any master zone then it is fine.

Are you using binary format for slave zone files?

For some reason for the newest version, it does like to add the port 10000 when you click on the server. Perhaps it is causing the issues with the dns records copying to the slave servers.


FYI, we just released an update to the BIND module for the Can't use an undefined value as a symbol reference error.

Hi !! Same problem here. Is it fix? I have got 2 servers with same error, on running centos 5 and one running centos 6. Both don't find any update available and no button "Upgrade Webmin" available, Virtualmin installed. Thanks.

You can go to Webmin -> Webmin Configuration -> Upgrade Webmin -> Update Modules, and force an update there.

Sorry but Upgrade Webmin module isn't available. Virtualmin is installed there. I can only click on Update Modules but not force update. I can only Install from file or Url, Clone, Remove and Export modules. Thanks.

Joe's picture
Submitted by Joe on Thu, 09/08/2016 - 14:22 Pro Licensee

I'm not sure why you wouldn't be able to update your system; all of mine offered to update automatically when the new module rolled out. Is your server able to ping webmin.com?

But, you can get a direct link to the updated module here: http://webmin.com/updates/bind8-1.810-3.wbm.gz

That can be installed in the Webmin->Webmin Configuration->Webmin Modules page.

I'll see if Jamie can roll a devel package that we can roll into our Virtualmin.com repos, just so that a fresh install doesn't have this bug for the few hours it takes to pick up the update.

I'm putting out a 1.813 devel version of Webmin now that includes this (and other) fixes.

Hello, many thanks for your attention but currently I don't see any update available on my systems. Can I update the module manually using link above? Or is better to wait for the update? Thanks.

Many thanks !!!! It's working now..

Hi, After upgrde bind module i sill have an error : Can't use an undefined value as an ARRAY reference at ./bind8-lib.pl line 617.

That message show when i try edit zone options in slave zone

That's a separate bug :-( It will be fixed in the next Webmin release though.

Another bug what i saw is in generate records i dont see any previously filed rows but when i lookup into generated record i can see them .

I was used #32 solution and it is solving the issue with line 972. When it will be available in the new package? As I see it started about 3 months ago.