Welcome, Guest
Please Login or Register.
Lost Password?
Undefined subroutine &virtual_server::init_config (1 viewing)
Post Reply

TOPIC: Undefined subroutine &virtual_server::init_config

#14546
Murz (User)
Posts: 17
graphgraph
Undefined subroutine &virtual_server::init_config 2008/07/08 04:13  
After upgrade perl version from Debian 4.0 (perl v5.8.8) to Debian 5.0 (perl v5.10.0) I see this error in the many Virtualmin pages:
Code:

require virtual-server/virtual-server-lib.pl failed : Undefined subroutine &virtual_server::init_config called at /usr/share/webmin/virtual-server/virtual-server-lib.pl line 5.



This error shows on pages: Server Configuration (Edit Virtual Server, Change Domain Name, etc), Administration Options and Disable and Delete.

Other pages works good.

Anybody else see this error? Does this error depends on updated perl version or on something else? How can I fix it?
  The administrator has disabled public write access.
#14549
Murz (User)
Posts: 17
graphgraph
Re:Undefined subroutine &virtual_server::init_config 2008/07/08 05:06  
Another modules, that use function init_config() from webmin works normally, for example Firewall module:
/firewall/firewall-lib.pl starts with this code:
Code:

# firewall-lib.pl # Functions for parsing iptables-save format files # - help pages do '../web-lib.pl'; &init_config(); do '../ui-lib.pl';


Same as in virtual-server/virtual-server-lib.pl
Code:

# virtual-server-lib.pl # Common functions for Virtualmin do '../web-lib.pl'; &init_config(); do '../ui-lib.pl';



Post edited by: Murz, at: 2008/07/08 05:08
  The administrator has disabled public write access.
#14551
Murz (User)
Posts: 17
graphgraph
Re:Undefined subroutine &virtual_server::init_config 2008/07/08 05:21  
When I remove both virtualmin-htpasswd and virtualmin-mailman modules, virtual-server module goes to work without errors! And when I installs back any of this two modules, I see this error again.
  The administrator has disabled public write access.
#15764
212801 (User)
Posts: 1
graphgraph
Re:Undefined subroutine &virtual_server::init_config 2008/08/20 00:54  
I've got the same problem. After installing the mailman module I also got this error. Does anybody have an idea how to fix it, so the mailman module can be used?

Thanks
  The administrator has disabled public write access.
#15767
charlie (User)
Posts: 1
graphgraph
Re:Undefined subroutine &virtual_server::init_conf 2008/08/20 02:41  
same for virtualmin-svn and debian 5
  The administrator has disabled public write access.
#15770
andreychek (Moderator)
Posts: 581
graphgraph
Re:Undefined subroutine &virtual_server::init_conf 2008/08/20 06:00  
Well, if you guys don't get any thoughts here on what the problem might be -- it sounds a bit "bug-like" as Joe likes to say, I might recommend filing a bug report.

Prior to doing that, I would make sure you don't have more than one copy of Webmin running (ps auxw|grep miniserv|grep webmin) -- that can cause issues like you're describing.
-Eric
  The administrator has disabled public write access.
#15774
Joe (Admin)
Posts: 4082
graph
Re:Undefined subroutine &virtual_server::init_conf 2008/08/20 10:59  
The only time I've ever seen this error was with an SVN checkout that I didn't run the perl path correction on (and didn't have perl in the place the shebang line at the top of the lib was expecting). Which shouldn't be relevant to any install from deb or wbm package...unless the post install script failed to run for some reason.

How did you install the modules? Were there errors during installation of the modules?

I suspect always using the same install type for all modules will reduce the chances of anything going wrong during installation of other modules. For example, always use deb packages for installation of Webmin and the various modules on Debian/Ubuntu systems (we provide apt repositories), and RPM packages on Red Hat based systems (we provide yum repositories, too). But, if you installed Webmin using the tarball, you'll obviously need to use wbm packages.

So, this could very well be a bug in the installation process, or something else entirely.

What is the shebang line in some of the effected files? (e.g. the "#!/usr/..." line at the top of several of the files in the module directory) And what is the shebang of miniserv.pl in the Webmin executable directory? And, finally, what is in the perl-path file in /etc/webmin. I suspect one of those is confused somehow.

Oh, yeah, I can imagine one more scenario that could probably cause this issue:

You upgraded the system Perl and didn't restart Webmin afterward.
  The administrator has disabled public write access.
#15775
Joe (Admin)
Posts: 4082
graph
Re:Undefined subroutine &virtual_server::init_conf 2008/08/20 11:01  
Oh, and after scanning this thread again, I want to clarify that Perl version doesn't matter to Webmin. It is compatible all the way back to 5.6 (and maybe even 5.005_4), and Virtualmin is compatible all the way back to 5.8.1, at least, and we historically target 5.6. Perl backward compatibility is very nearly flawless, so having a newer version does not matter.
  The administrator has disabled public write access.
#15885
Minase (User)
Posts: 5
graphgraph
Re:Undefined subroutine &virtual_server::init_config 2008/08/25 00:16  
i do have the same problem

require virtual-server/virtual-server-lib.pl failed :

Undefined subroutine &virtual_server::init_config called at /var/webmin/webmin-1.430/virtual-server/virtual-server-lib.pl line 5.


and i did not do nothing wrong,it just pooped out of nowhere (after perl upgrade + some plugins installed for perl)
restarted webmin even the box and the same thing
  The administrator has disabled public write access.
#16240
Murz (User)
Posts: 17
graphgraph
Re:Undefined subroutine &virtual_server::init_config 2008/09/10 03:16  
This bug is present in new version of Virtualmin 3.61 too.
System is Debian Lenny AMD64
I have already installed 3.60 version (installed on fresh Debian system with install script as in manuals) and update it to 3.61 with Virtialmin update interface.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.