Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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 · 1 comment

2 participants

@mattab
Owner

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
Owner

(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
@JulienMoumne JulienMoumne was assigned by mattab
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.