Features and Plugins Dav error

Any idea why this is happening?

Require virtualmin-dav-20110606/virtual_feature.pl failed : Undefined subroutine &virtualmin_dav_20110606::load_theme_library called at /usr/share/webmin/virtualmin-dav-20110606/virtual_feature.pl line 4.

Here are the first 4 lines of virtual_feature.pl :

Defines functions for this feature

require 'virtualmin-dav-lib.pl'; &load_theme_library();

I did a search for load_theme_library in virtualmin-dav-lib.pl and it trully doesn't exist...

Something interesting to note is that I have a virtualmin-dav and virtualmin-dav-20110606 folder in /usr/share/webmin/

I think what initially caused this issue is that I disabled the three Dav modules in Apache2, ran the virtualmin config refresh and then visited the Features and Plugins.. I prob should have visited Features and Plugins first to disable dav and then checked the modules in Apache..


P.S. Thx for letting me pester you guys so much.

Closed (fixed)


It looks like it's using the "virtualmin-dav-20110606" folder in your case... it's possible that's confusing it if what's in "virtualmin-dav" is a different version.

Do you know what the difference between the DAV plugin in those two folders is?

However, you may want to start by doing a Webmin restart -- if the old DAV folder were renamed and Webmin not restarted, it may still have the old plugin loaded into memory.

You can restart Webmin by running this command as root:

/etc/init.d/webmin restart

Hi Eric,

I think the 20110606 was when you helped me fix the apt issue. I renamed that folder to dav-20110606 and did a webmin restart. Now I get the following in the Plugins and Features:

Require virtualmin-dav/virtual_feature.pl failed : Undefined subroutine &virtualmin_dav::load_theme_library called at /usr/share/webmin/virtualmin-dav/virtual_feature.pl line 4.



I was able to fix it by moving all of the datestamped directories to another parent directory.

Something to note, the module.info was identical in both dav directories. When I moved the dav-20110606 into another parent directory /root/webmin, I recieved another error for another plugin-20110606. Could it be that webmin is just mass scanning every folder in /usr/share/webmin for modules and the datestamped ones are being brought in when they really shouldn't be? Bug?


Yes, Webmin will assume that any directory under /usr/share/webmin is a valid module - you should delete or move away any extra copies that you have created.

Ok thx for the confirmation.


Sorry, that one was my fault... when working on that server previously, rather than delete those directories outright, I renamed them.

Noted for future reference -- don't leave the renamed module directories within the Webmin hierarchy :-)

Automatically closed -- issue fixed for 2 weeks with no activity.