Webalizer reporting failed! : Undefined subroutine &htaccess_htpasswd

Hello,

In Virtualmin:

1) I created a VM. Then deleted it. Then enable "Admin->Clear Text" option. I created the VM again. Assigned it a private IP. Then convert it to a shared IP. I received the below error. I do not encounter this error if I do the same thing on another server that didn't have the "Admin->Clear Text" option enabled.

******************************
Updating IP address in virtual server server.domain.com

.. Webalizer reporting failed! : Undefined subroutine &htaccess_htpasswd::encrypt_password called at /usr/share/webmin/virtual-server/feature-webalizer.pl line 508.

Updating Webmin user ..
.. done

Saving server details ..
.. done

Re-loading Webmin ..
.. done
************************

Status: 
Closed (fixed)

Comments

This problem can occur if Webmin doesn't get restarted properly during the update.

Can you try restarting it, using this command:

/etc/init.d/webmin restart

After doing that, do you still have the problem you described above?

There is actually a bug in Virtualmin 3.88 that can cause this. The work-around is to disable password protection for the stats directory, at System Settings -> Server Templates -> Default Settings -> Apache website -> Password-protect statistics?.

The fix is to either wait for Virtulamin 3.89, or edit /usr/share/webmin/virtual-server/feature-webalizer.pl and after line 498 add the line :

&foreign_require("htaccess-htpasswd", "htaccess-lib.pl");

Then run /etc/webmin/restart

Thanks! This fixed the problem. When will 3.89 be out?

A couple more weeks most likely..

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

I really don't want to disable the password protection for the stats directory. Can you give me a description of which line to add below? I couldn't tell where line #498 is.

Also, in Webalizer, it is looking really weird at the very end. Any suggestion?

Top 2 of 2 Total Locations
# Hits Files kB F kB In kB Out Location
1 6381 75.68% 6170 75.44% 187791 91.61% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% United States
2 2050 24.32% 2009 24.56% 17191 8.39% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% Canada

The work-around till the next release is to replace the file /usr/share/webmin/virtual-server/feature-webalizer.pl (on Debian or Ubuntu) or /usr/libexec/webmin/virtual-server/feature-webalizer.pl (on Redhat or CentOS) with the one attached to this bug report, then run /etc/webmin/restart .

Thank you very much Jamie. That seems to fix the problem for new virtual server. For the existing servers, I am still seeing the weird and long display. I've tried disabling the Webalizer and enable it again. It still showing the same format. Any suggestion?

I'm not sure about that odd webalizer output - we don't really have control over it, as it is coming from webalizer.

Unless perhaps it is due to images not being disabled properly. Could you attach a screenshot to this bug report showing the problem?