daily-report.php via cronjob
/usr/local/libexec/piler/daily-report.php /var/www/html/piler
If i want to get my daily report via cronjob, i got the following error
Fatal error: Call to a member function get() on a non-object in /var/www/html/piler/model/stat/counter.php on line 12
This has to do with memcache, because mamcache is enable but only set in index.php
Comments (6)
-
repo owner -
reporter It works with the following warning PHP Warning: MemcachePool::get(): Invalid key in /var/www/html/piler/model/stat/counter.php on line 12
Thank you for the fast fixes for this very nice project Much better than benno ;-)
Regards Dieter
-
repo owner Please add the following line to util/daily-report.php:
Registry::set('counters', $counters);
you should place it around the following line:
Registry::set('health_smtp_servers', $health_smtp_servers);
Or you can get it from https://bitbucket.org/jsuto/piler/raw/aa402744a970734e547bd9bea6d6d2b9a99e12aa/util/daily-report.php
-
reporter Fine, it works without any errors or warnings
Thank you for the great work
You can close this.
-
repo owner - changed status to resolved
-
repo owner -
assigned issue to
-
assigned issue to
- Log in to comment
I added a patch to fix this. Please get the updated file at https://bitbucket.org/jsuto/piler/raw/ebbbb77fb62d915f7925f54f3d7b402488792041/util/daily-report.php