Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Awstats can't follow internal links

Anonymous
2011-05-30
2012-10-11

  • Anonymous
    2011-05-30

    Upgrade from 6.95 to 7

    When on the awstats page, there are links to get the full listing of domains,
    Ips, etc.

    The generated links are wrong:
    domain.com.1012.alldomains.html
    should be
    awstats.domain.com.1012.alldomains.html (with "awstats." prefix)

     

  • Anonymous
    2011-06-08

    this is how i was able to fix it:

    --- awstats/tools/awstats_buildstaticpages.pl.orig 2011-06-08 14:20:19.000000000 +0200
    +++ awstats/tools/awstats_buildstaticpages.pl   2011-06-08 14:20:48.000000000 +0200
    @@ -448,7 +448,7 @@ for my $output (@OutputList) {
       my $command="$smallcommand -output=$output";
       print "Build $output page: $command\n";
       $retour=`$command  2>&1`;
    -  $OutputFile=($OutputDir?$OutputDir:"")."awstats.$OutputSuffix.$output.$StaticExt";
    +  $OutputFile=($OutputDir?$OutputDir:"")."$OutputSuffix.$output.$StaticExt";
       open("OUTPUT",">$OutputFile") || error("Couldn't open log file \"$OutputFile\" for writing : $!");
       print OUTPUT $retour;
       close("OUTPUT");
    
     
  • Frances Wand
    Frances Wand
    2011-07-26

    I have the same problem. Did that fix work for you? It still not working for
    me after removing "awstats." in $OutoutFile. Please advise how you resolve
    this. Thank you.

     
  • Paul Weston
    Paul Weston
    2011-09-06

    @webwand123

    Did you find an answer to the problem? I'm struggling with it too, and I'm not
    getting any response to my questions.

    Is it a newly introduced bug?

    Any help greatly appreciated.

    Paul

     
  • It could be useful for someone:

    You have to replace line 426 in tools/awstats_buildstaticpages.pl:

    my $smallcommand=""$Awstats" -config=$SiteConfig".($BuildPDF?" -buildpdf":"").($NoLoadPlugin?" -noloadplugin=$NoLoadPlugin":"")." -staticlinks".($OutputSuffix ne $SiteConfig?"=$OutputSuffix":"");
    

    by:

    my $smallcommand=""$Awstats" -config=$SiteConfig".($BuildPDF?" -buildpdf":"").($NoLoadPlugin?" -noloadplugin=$NoLoadPlugin":"")." -staticlinks".($OutputSuffix ne $SiteConfig?"=[b]awstats.[/b]$OutputSuffix":"");
    

    That's it...