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 featurerequire '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..
~Jeremy
P.S. Thx for letting me pester you guys so much.
Comments
Submitted by andreychek on Sat, 06/11/2011 - 10:11 Comment #1
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
Submitted by xtremeservices on Sat, 06/11/2011 - 10:17 Comment #2
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.
~Jeremy
Submitted by xtremeservices on Sat, 06/11/2011 - 11:00 Comment #3
Update.
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?
~Jeremy
Submitted by JamieCameron on Sat, 06/11/2011 - 12:16 Comment #4
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.
Submitted by xtremeservices on Sat, 06/11/2011 - 12:22 Comment #5
Ok thx for the confirmation.
~Jeremy
Submitted by andreychek on Sat, 06/11/2011 - 12:34 Comment #6
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 :-)
Submitted by Issues on Sat, 06/25/2011 - 16:51 Comment #7
Automatically closed -- issue fixed for 2 weeks with no activity.