Statistics page error
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)
-
repo owner -
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×pan=daily
-
repo owner The error message indicates you need the PHP GD module, please install it, after then you will have stats charts.
-
repo owner - changed status to resolved
-
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
-
repo owner Thanks, I added the required php modules to the docs.
-
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×pan=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×pan=daily
-
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.
- Log in to comment
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.