Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cannot generate PDF reports on 1.8.3 (Imagick) #3322

Closed
oparoz opened this Issue · 5 comments

3 participants

Olivier Paroz Anthon Pang Matthieu Aubry
Olivier Paroz

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 [Imagick->clone(...) called at www/libs/tcpdf/tcpdf.php:7880#2 TCPDF->ImagePngAlpha(...) called at [TCPDF->Image(...) called at www/core/ReportRenderer/Pdf.php:158#4 Piwik_ReportRenderer_Pdf->renderFrontPage(...) called at [Piwik_PDFReports_API->generateReport(...) called at :#6 call_user_func_array(...) called at [Piwik_API_Proxy->call(...) called at www/core/API/Request.php:128#8 Piwik_API_Request->process(...) called at [Piwik_API_Controller->index(...) called at :#10 call_user_func_array(...) called at [Piwik_FrontController->dispatch(...) called at www/index.php:53
Keywords: pdf

Olivier Paroz

This is on PHP 5.4.5 with Imagick 3.1.0RC1

Olivier Paroz

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

Anthon Pang
Collaborator

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

Olivier Paroz

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.

Matthieu Aubry
Owner

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.