Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#3322 closed Bug (fixed)

Cannot generate PDF reports on 1.8.3 (Imagick)

Reported by: interfasys Owned by:
Priority: normal Milestone:
Component: Core Keywords: pdf
Cc: Sensitive: no

Description

When trying to download a PDF report, I get this:

Strict Notice: Imagick::clone method is deprecated and it's use should be avoided in www/libs/tcpdf/tcpdf.php on line 7880

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [:]#1 Imagick->clone(...) called at [www/libs/tcpdf/tcpdf.php:7880]#2 TCPDF->ImagePngAlpha(...) called at [www/libs/tcpdf/tcpdf.php:7421]#3 TCPDF->Image(...) called at [www/core/ReportRenderer/Pdf.php:158]#4 Piwik_ReportRenderer_Pdf->renderFrontPage(...) called at [www/plugins/PDFReports/API.php:444]#5 Piwik_PDFReports_API->generateReport(...) called at [:]#6 call_user_func_array(...) called at [www/core/API/Proxy.php:190]#7 Piwik_API_Proxy->call(...) called at [www/core/API/Request.php:128]#8 Piwik_API_Request->process(...) called at [www/plugins/API/Controller.php:27]#9 Piwik_API_Controller->index(...) called at [:]#10 call_user_func_array(...) called at [www/core/FrontController.php:138]#11 Piwik_FrontController->dispatch(...) called at [www/index.php:53]

Change History (6)

comment:1 Changed 20 months ago by interfasys

This is on PHP 5.4.5 with Imagick 3.1.0RC1

comment:2 Changed 20 months ago by interfasys

If I email the report, then I do not have the problem, although the logo is in black and white.

comment:3 Changed 20 months ago by vipsoft (robocoder)

We have another ticket to update the tcpdf library. This is probably fixed upstream.

comment:4 Changed 20 months ago by interfasys

You're right, it has been fixed upstream. I've replaced the library with the latest version and it worked, although the logo was still B&W.

comment:5 Changed 20 months ago by matt (mattab)

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

(In [6786]) Fixes #3322 hopefully that was the only notice

comment:6 Changed 20 months ago by matt (mattab)

  • Priority changed from major to normal
Note: See TracTickets for help on using tickets.