Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrading the OS we awstats throws an error about CleanFromTags #229

Open
alexanderharm opened this issue Mar 7, 2023 · 2 comments

Comments

@alexanderharm
Copy link

alexanderharm commented Mar 7, 2023

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.

@irb
Copy link

irb commented Mar 31, 2023

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

@bennettyip
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants