Statistics page error

Issue #166 resolved
fakegod created an issue

After install nothing showing in Monitor -> Statistics. Looks like crontab entry is incorrect, when I ran command from crontab manually it didn't complete: 30 6 * * * /usr/bin/php /usr/local/libexec/piler/generate_stats.php /var/www/piler. Changed it to: /usr/bin/php /usr/local/libexec/piler/generate_stats.php --webui="/var/www/piler". Still no stats image in piler.

Comments (8)

  1. Janos SUTO repo owner

    Thanks for noticing the cron job typo, I've fixed it.

    However it has nothing to do with the stat images, they are generated from a different source (metadata table). Please check your php error messages, and verify that you have php5-gd package installed.

  2. fakegod reporter

    Apache error log:

    [Tue Oct 01 11:15:05 2013] [error] [client 10.10.11.22] PHP Fatal error:  Call to undefined function imagecreatetruecolor() in /var/www/piler/system/helper/libchart/classes/view/plot/Plot.php on line 245, referer: http://piler.rb.tkb.lv/index.php?route=stat/stat&timespan=daily
    
  3. Janos SUTO repo owner

    The error message indicates you need the PHP GD module, please install it, after then you will have stats charts.

  4. fakegod reporter

    Thanks a lot! Maybe add complete package list in Documentation. Here is the list I needed on Ubuntu:

    tasksel install lamp-server
    apt-get -y install openssl libssl-dev sphinxsearch libtre-dev libzip2 libticonv3 sysstat catdoc libpoppler19 unrtf xlhtml php5-memcached php5-memcache php5-xcache clamav libpst4 libwrap0-dev libmysqlclient-dev php5-gd
    
  5. fakegod reporter

    Still I see a monthly graph only, daily one is empty. In error.log(maybe related):

    [Tue Oct 01 11:22:44 2013] [error] [client 10.10.11.22] PHP Notice:  Undefined variable: yMin in /var/www/piler/system/helper/libchart/classes/view/axis/Bound.php on line 109, referer: http://piler.rb.tkb.lv/index.php?route=stat/stat&timespan=daily
    [Tue Oct 01 11:22:44 2013] [error] [client 10.10.11.22] PHP Notice:  Undefined variable: yMax in /var/www/piler/system/helper/libchart/classes/view/axis/Bound.php on line 115, referer: http://piler.rb.tkb.lv/index.php?route=stat/stat&timespan=daily
    
  6. Janos SUTO repo owner

    Perhaps you need more data, ie. a longer period when you acquire emails. Let's return to the stat charts problem when the previous issues are solved, and you started archiving emails continuously.

  7. Log in to comment