When a scheduled task fails, the archive.php should report the error #2818

mattab opened this Issue Dec 8, 2011 · 2 comments

1 participant

Piwik Open Source Analytics member

We have been days without noticing that there was an error in the cron script archive.php

When a scheduled task fails, for example PDF generation returning a PHP warning, the error is not reported upstream in archive.php and then in the output (and emailed if setup in cron).

We should make sure that, when an error is triggered in the scheduled tasks (Exception or random php warning), the piwik SU is notified by email that this failed

Piwik Open Source Analytics member

(In [5540]) Fixes tcpdf (will report upstream), regression when generating pdf reports containing images that tcpdf was trying to record in piwik tmp folder rather than :
Warning: fopen(/path/piwik/tmp/tcpdf/img_2c44a2e1eb91042bd785a17a4f185524) href='function.fopen'>function.fopen</a>: failed to open stream: No such file or directory in /tcpdf.php on line 7225
Refs #2818

Piwik Open Source Analytics member

(In [5571]) Fixes #2818 - writing errors to php://stderr

@mattab mattab added this to the 1.7 Piwik 1.7 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment