Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function imagecreatefrompng when generating PDF #2577

Closed
mattab opened this issue Jul 20, 2011 · 7 comments
Closed

Call to undefined function imagecreatefrompng when generating PDF #2577

mattab opened this issue Jul 20, 2011 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Jul 20, 2011

See report in http://forum.piwik.org/read.php?2,79483

When generating PDF reports, if GD is not installed, the error is returned. Instead, we should show to the user a proper error message that suggests to install GD.

If this happens in the cron, we can make sure that the error returned as part of #2440

@robocoder
Copy link
Contributor

(In [5054]) refs #2577

@robocoder
Copy link
Contributor

tcpdf/tcpdf.php already has checks in some places for function_exists( some_gd_function ). This can probably be fixed upstream.

@robocoder
Copy link
Contributor

We already have an installation system check for gd, and warn when it's not present.

@mattab
Copy link
Member Author

mattab commented Sep 27, 2011

I disabled GD but pdf reports still worked.. works for me

@robocoder
Copy link
Contributor

Matt, I think you still have the 'imagick' extension. Looking at the code path, 'gd is the fallback if the 'imagick' extension isn't available.

@robocoder
Copy link
Contributor

Can we defer to 1.7 and update libs/tcpdf at the same time?

@mattab
Copy link
Member Author

mattab commented Jan 26, 2012

It works now, graphs are not displayed when no GD (but icons still display in the report which is nice)

@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
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants