Opened 2 years ago

Closed 2 years ago

#2818 closed Bug (fixed)

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

Reported by: matt Owned by:
Priority: major Milestone: 1.7 Piwik 1.7
Component: Core Keywords:
Cc: Sensitive: no

Description

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

Change History (2)

comment:1 Changed 2 years ago by matt (mattab)

(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) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /tcpdf.php on line 7225
Refs #2818

comment:2 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.