AWStats icon indicating copy to clipboard operation
AWStats copied to clipboard

After upgrading the OS we awstats throws an error about CleanFromTags

Open alexanderharm opened this issue 3 years ago • 2 comments

Describe the bug Updating the database fails with Undefined subroutine &main::CleanFromTags called at /server/service/awstats/wwwroot/cgi-bin/awstats.pl line 3912, <HISTORY> line 141199.

To Reproduce Run awstats to update database.

Expected behavior No error message.

Additional context The error occurs under latest 7.9. 7.8 seems to work fine.

alexanderharm avatar Mar 07 '23 16:03 alexanderharm

Same here. It also leaves behind a lockfile in /tmp. Downgrading to 7.8 resolved the problem.

irb avatar Mar 31 '23 21:03 irb

In /tools/ebmin/awstats/awstats-lib.pl file, there is a CleanFromTags subroutine.

sub CleanFromTags { my $stringtoclean=shift; $stringtoclean =~ s/$regclean1/ /g; # Replace or with space $stringtoclean =~ s/$regclean2//g; # Remove return $stringtoclean; }

I copyied and pasted the subroutine into the awstats.pl file. It could run without the error.

bennettyip avatar Dec 19 '23 09:12 bennettyip