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

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /libs/pChart2.1.3/class/pImage.class.php on line 93 #3474

Closed
mattab opened this issue Oct 23, 2012 · 1 comment
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Oct 23, 2012

The error.log on the demo is full of errors causing the server to slow down.


4447-       Warning:</strong> <i>imagecreatetruecolor() [&lt;a href=&#039;function.imagecreatetruecolor&#039;&gt;function.imagecreatetruecolor&lt;/a&gt;]: Invalid image dimensions</i> in <b>/home/piwik/www/demo.piwik.org/libs/pChart2.1.3/class/pImage.class.php</b> on line <b>93</b>
4723-<br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
4806-#0  Piwik_ErrorHandler(...) called at [:]<br />
4854-#1  imagecreatetruecolor(...) called at [/home/piwik/www/demo.piwik.org/libs/pChart2.1.3/class/pImage.class.php:93]<br />
4976-#2  pImage-&gt;pImage(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/StaticGraph.php:244]<br />
5091-#3  Piwik_ImageGraph_StaticGraph-&gt;initpImage(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/StaticGraph.php:264]<br />
5232-#4  Piwik_ImageGraph_StaticGraph-&gt;getTextWidthHeight(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/StaticGraph/Exception.php:39]<br />
5390-#5  Piwik_ImageGraph_StaticGraph_Exception-&gt;renderGraph(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/API.php:522]<br />
5534-#6  Piwik_ImageGraph_API-&gt;get(...) called at [:]<br />
5592-#7  call_user_func_array(...) called at [/home/piwik/www/demo.piwik.org/core/API/Proxy.php:190]<br />
5694-#8  Piwik_API_Proxy-&gt;call(...) called at [/home/piwik/www/demo.piwik.org/core/API/Request.php:128]<br />
5802-#9  Piwik_API_Request-&gt;process(...) called at [/home/piwik/www/demo.piwik.org/plugins/API/Controller.php:27]<br />
5920-#10  Piwik_API_Controller-&gt;index(...) called at [:]<br />
5981-#11  call_user_func_array(...) called at [/home/piwik/www/demo.piwik.org/core/FrontController.php:138]<br />
6090-#12  Piwik_FrontController-&gt;dispatch(...) called at [/home/piwik/www/demo.piwik.org/index.php:53]</div><br />
6203- </pre></div><br />


Another error is

4447-       Warning:</strong> <i>imagecreatetruecolor() [&lt;a href=&#039;function.imagecreatetruecolor&#039;&gt;function.imagecreatetruecolor&lt;/a&gt;]: Invalid image dimensions</i> in <b>/home/piwik/www/demo.piwik.org/libs/pChart2.1.3/class/pImage.class.php</b> on line <b>93</b>
4723-<br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
4806-#0  Piwik_ErrorHandler(...) called at [:]<br />
4854-#1  imagecreatetruecolor(...) called at [/home/piwik/www/demo.piwik.org/libs/pChart2.1.3/class/pImage.class.php:93]<br />
4976-#2  pImage-&gt;pImage(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/StaticGraph.php:244]<br />
5091-#3  Piwik_ImageGraph_StaticGraph-&gt;initpImage(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/StaticGraph.php:264]<br />
5232-#4  Piwik_ImageGraph_StaticGraph-&gt;getTextWidthHeight(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/StaticGraph/Exception.php:39]<br />
5390-#5  Piwik_ImageGraph_StaticGraph_Exception-&gt;renderGraph(...) called at [/home/piwik/www/demo.piwik.org/plugins/ImageGraph/API.php:522]<br />
5534-#6  Piwik_ImageGraph_API-&gt;get(...) called at [:]<br />
5592-#7  call_user_func_array(...) called at [/home/piwik/www/demo.piwik.org/core/API/Proxy.php:190]<br />
5694-#8  Piwik_API_Proxy-&gt;call(...) called at [/home/piwik/www/demo.piwik.org/core/API/Request.php:128]<br />
5802-#9  Piwik_API_Request-&gt;process(...) called at [/home/piwik/www/demo.piwik.org/plugins/API/Controller.php:27]<br />
5920-#10  Piwik_API_Controller-&gt;index(...) called at [:]<br />
5981-#11  call_user_func_array(...) called at [/home/piwik/www/demo.piwik.org/core/FrontController.php:138]<br />
6090-#12  Piwik_FrontController-&gt;dispatch(...) called at [/home/piwik/www/demo.piwik.org/index.php:53]</div><br />
6203- </pre></div><br />


It would be great to resolve these issues since they can cause performance issue on the demo.

@mattab
Copy link
Member Author

mattab commented Oct 24, 2012

(In [7303]) Fixes #3474

  • sometimes width or height are not defined, in particular when the API fails before the $width and $height are defined in line 216-217 of ImageGraph/API.php
    so we always check the error graph has a width/height set.

Ping Refs #3013

@mattab mattab added this to the 1.9.1 - Piwik 1.9.1 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. Critical Indicates the severity of an issue is very critical and the issue has a very high priority.
Projects
None yet
Development

No branches or pull requests

2 participants