NotPageList is malfunctioning after I upgraded from 6.95 to 7.0

Developers
2012-12-05
2012-12-05
  • Lifeboat Foundation

    After I upgraded from 6.95 to 7.0, the top ten pages started listing .png files, etc. I tried downgrading and the problem didn't go away. I put debug statements in awstats.pl and $NotPageList{png} has the correct value. Any hints of what type of debug statements I should add to figure out this problem?

    Eric Klien

     
    • Laurent Destailleur (Eldy)

      Can you try with version 7.1 beta and tell if it solve your problem ?
      http://www.awstats.org/

      Le 05/12/2012 11:09, Lifeboat Foundation a écrit :

      After I upgraded from 6.95 to 7.0, the top ten pages started listing
      .png files, etc. I tried downgrading and the problem didn't go away. I
      put debug statements in awstats.pl and $NotPageList{png} has the
      correct value. Any hints of what type of debug statements I should add
      to figure out this problem?

      Eric Klien


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/awstats/discussion/43430/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/prefs/

      --
      Eldy (Laurent Destailleur).

      EMail: eldy@destailleur.fr
      Web: http://www.destailleur.fr

      Dolibarr (Project leader): http://www.dolibarr.org
      To make a donation for Dolibarr project via Paypal: contact@destailleur.fr
      AWStats (Author) : http://awstats.sourceforge.net
      To make a donation for AWStats project via Paypal: contact@destailleur.fr
      AWBot (Author) : http://awbot.sourceforge.net
      CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

       
      • Lifeboat Foundation

        "Can you try with version 7.1 beta and tell if it solve your problem?"

        I tried and the problem is still there.

         
  • Lifeboat Foundation

    It seems that setting LevelForFileTypesDetection to 2 (from 0) stops the statistics from adding more .png hits to the top 10 page list although the old .png hits are still listed. (The apache log files are purged by awstats after processing them since my logs get pretty big.) This seems to be related to the bug documented at https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834

     
  • Lifeboat Foundation

    I cleaned up the stuff between BEGIN_SIDER and END_SIDER in the relevant .txt file and the problem seems to be solved. The fact that downgrading didn't clean up the mistake in the .txt file threw me off for a while when I tried to diagnose the problem.

     
  • Lifeboat Foundation

    A solution to the problem is to change the following in awstats.pl:

                           if ($LevelForFileTypesDetection){
                                   $datatoload{$filemime} = 1;
    
    to:
    
    #                       if ($LevelForFileTypesDetection)
    {                               $datatoload{$filemime} = 1;
    

    This still won't handle the .cur extension. You could handle it by adding it to MimeHashLib at lib/mime.pm or you could simply change ( $LevelForFileTypesDetection >= 2 || $MimeHashLib{$1} ) to ( $LevelForFileTypesDetection >= 0 || $MimeHashLib{$1} )

     
    Last edit: Lifeboat Foundation 2012-12-05

Log in to post a comment.